[02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:48]accept exits with 7 [02:59:48]New connection [02:59:48]New thread 3067559268 created [02:59:48]Thread 3067415908 joined [02:59:48]Waiting for new connection... [02:59:48] Sock 7.Parse request [02:59:48]Sock 7.Check first char [02:59:48]Sock 7.First char is OK [02:59:48]request: POST /json_proto HTTP/1.0 [02:59:48]Method: POST [02:59:48]URL: /json_proto [02:59:48]Method is POST - this is cgi request [02:59:48]url: /json_proto [02:59:48]query_string will be loaded in cgi processing [02:59:48]execute_cgi json_proto POST (null) [02:59:48]execute_cgi path=json_proto method=POST [02:59:48]POST find Content-Length [02:59:48]Host: 172.17.39.68:8080 [02:59:48]Content-Length: 833 [02:59:48]Content-Type: application/json [02:59:48] [02:59:48]POST finish read [02:59:48]Found Content-Length = 833 [02:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214154", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:48]execute_script... [02:59:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214154", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:48]POST & json_proto [02:59:48]process_json_proto [02:59:48]json parsed OK: [02:59:48]protocol is kg_v1.0 [02:59:48]action value=close_receipt [02:59:48]process_action close_receipt [02:59:48]cmd_close_receipt [02:59:48]MH_GetDate [02:59:48]Write to MH i2c: F0 00 00 17 03 09 [02:59:48]Write i2c OK [02:59:48]MH_I2C_Read... [02:59:48]Read from MH i2c: F0 [02:59:48]MH_I2C_Read... [02:59:48]Read from MH i2c: F0 09 00 [02:59:48]MH_I2C_Read... [02:59:48]Read from MH i2c: F0 09 00 17 03 00 A4 90 94 66 EC 7F 94 66 A5 [02:59:48]GetLastDocTimeStamp 1721012215 [02:59:48]current date 1721012388 [02:59:48]FM_GetShiftState [02:59:48]SAM_PROTO_GetShiftState [02:59:48]wFMCommunicate request_size=4 [02:59:48]MH_SAM_APDU [02:59:48]CAPDU: 80 13 01 00 [02:59:48]Write to MH i2c: E2 08 00 18 03 80 13 01 00 00 00 00 00 98 [02:59:48]Write i2c OK [02:59:48]MH_I2C_Read... [02:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:48]Read from MH i2c: E2 [02:59:48]MH_I2C_Read... [02:59:48]Read from MH i2c: E2 0E 00 [02:59:48]MH_I2C_Read... [02:59:48]Read from MH i2c: E2 0E 00 18 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8B [02:59:48]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [02:59:48]wFMCommunicate OK [02:59:48]SAM_PROTO_GetShiftState done [02:59:48]FM_GetShiftState done [02:59:48]opened in 1721001862 [02:59:48]opened+sec_in_day 1721088262 [02:59:48]quantity*price = 4000 [02:59:48]sum+1 = 4001 [02:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 13 15.07.2024 02:59 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31572 ФПД: 205501396514084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025949&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31572&fm=205501396514084&tin=02508201610067®Number=0000000000098025&sum=4000 0 [02:59:49]StoreToDocumentArchive [02:59:49]shift 370 fd 31572 [02:59:49]save to /storage/0370/doc_00031572 [02:59:49]save last doc name /storage/0370/doc_00031572 to /storage/kkm_last_doc_name [02:59:49]save OK [02:59:49]Clear old archive folders... [02:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=271 [02:59:49]tlvbuf is 012789C0 [02:59:49]SAM_PROTO_ClearQueue [02:59:49]wFMCommunicate request_size=4 [02:59:49]MH_SAM_APDU [02:59:49]CAPDU: 80 09 00 00 [02:59:49]Write to MH i2c: E2 08 00 25 03 80 09 00 00 00 00 00 00 9A [02:59:49]Write i2c OK [02:59:49]MH_I2C_Read... [02:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:49]Read from MH i2c: E2 [02:59:49]MH_I2C_Read... [02:59:49]Read from MH i2c: E2 03 00 [02:59:49]MH_I2C_Read... [02:59:49]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [02:59:49]RAPDU: 90 00 [02:59:49]wFMCommunicate OK [02:59:49]SAM_PROTO_ClearQueue done [02:59:49]KKMCreateOFDPacket [02:59:49]OFDProtocolAddRootSTLVToBuf [02:59:49]FM_MakeSignedData [02:59:49]FM_MakeSignedData [02:59:49]SAM_PROTO_SignData [02:59:49]wFMCommunicate request_size=4 [02:59:49]MH_SAM_APDU [02:59:49]CAPDU: 80 0D 01 02 [02:59:49]Write to MH i2c: E2 08 00 26 03 80 0D 01 02 00 00 00 00 A2 [02:59:49]Write i2c OK [02:59:49]MH_I2C_Read... [02:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:49]Read from MH i2c: E2 [02:59:49]MH_I2C_Read... [02:59:49]Read from MH i2c: E2 03 00 [02:59:49]MH_I2C_Read... [02:59:49]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [02:59:49]RAPDU: 90 00 [02:59:49]wFMCommunicate OK [02:59:49]wFMCommunicate request_size=255 [02:59:49]MH_SAM_APDU [02:59:49]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 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A5 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [02:59:49]Write to MH i2c: E2 02 01 27 03 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 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A5 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 35 [02:59:49]Write i2c OK [02:59:49]MH_I2C_Read... [02:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:50]Read from MH i2c: E2 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 03 00 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [02:59:50]RAPDU: 90 00 [02:59:50]wFMCommunicate OK [02:59:50]wFMCommunicate request_size=30 [02:59:50]MH_SAM_APDU [02:59:50]CAPDU: 80 0D 02 02 19 30 39 36 35 33 38 39 10 04 04 00 54 7B 00 00 35 04 06 00 BA E7 05 BD 75 24 [02:59:50]Write to MH i2c: E2 21 00 28 03 80 0D 02 02 19 00 30 39 36 35 33 38 39 10 04 04 00 54 7B 00 00 35 04 06 00 BA E7 05 BD 75 24 00 00 71 [02:59:50]Write i2c OK [02:59:50]MH_I2C_Read... [02:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:50]Read from MH i2c: E2 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 03 00 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [02:59:50]RAPDU: 90 00 [02:59:50]wFMCommunicate OK [02:59:50]wFMCommunicate request_size=4 [02:59:50]MH_SAM_APDU [02:59:50]CAPDU: 80 0D 03 02 [02:59:50]Write to MH i2c: E2 08 00 29 03 80 0D 03 02 00 00 00 00 A7 [02:59:50]Write i2c OK [02:59:50]MH_I2C_Read... [02:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:50]Read from MH i2c: E2 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 0B 00 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 0B 00 29 03 00 3E C5 5A 7D FE A9 01 4C 90 00 76 [02:59:50]RAPDU: 3E C5 5A 7D FE A9 01 4C 90 00 [02:59:50]wFMCommunicate OK [02:59:50]SAM_PROTO_SignData done [02:59:50]FM_MakeSignedData done [02:59:50]CreateOFDProtocolMessage [02:59:50]wFMCommunicate request_size=4 [02:59:50]MH_SAM_APDU [02:59:50]CAPDU: 80 11 00 00 [02:59:50]Write to MH i2c: E2 08 00 2A 03 80 11 00 00 00 00 00 00 A7 [02:59:50]Write i2c OK [02:59:50]MH_I2C_Read... [02:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:50]Read from MH i2c: E2 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 17 00 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: E2 17 00 2A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 02 [02:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:59:50]wFMCommunicate OK [02:59:50]CreateOFDProtocolMessage done [02:59:50]OFDSenderStorePacket 31572 [02:59:50]StoreOFDPacket docnum=31572 [02:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 0B 7C 1B 01 A4 77 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 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A5 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7B 00 00 35 04 06 00 BA E7 05 BD 75 24 3E C5 5A 7D FE A9 01 4C [02:59:50]CheckFolder [02:59:50]dirname=/storage/ofd_packets [02:59:50]CheckFolder done [02:59:50]ProducePacketName [02:59:50]name=ofd_packets/00031572 [02:59:50]NVStorageSaveData ofd_packets/00031572 [02:59:50]File name is /storage/ofd_packets/00031572 [02:59:50]Write 321 bytes [02:59:50]NVStorageSaveData done [02:59:50]OFDSenderStorePacket done [02:59:50]KKMCreateOFDPacket done [02:59:50]NVStorageSaveData kkm_last_timestamp [02:59:50]File name is /storage/kkm_last_timestamp [02:59:50]Write 4 bytes [02:59:50]NVStorageSaveData done [02:59:50]ExternCall_PrintAddStr [02:59:50]wPrintStart [02:59:50]Write to MH i2c: 01 00 00 2B 03 2E [02:59:50]Write i2c OK [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: 01 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: 01 07 00 [02:59:50]MH_I2C_Read... [02:59:50]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 FF 0F 43 [02:59:50]RasterBufferAndPrint [02:59:50]line Счет N : (3)214154 [02:59:50]line ИНН: 02508201610067 [02:59:50]line Контрольно-Кассовый Чек [02:59:50]line ПРОДАЖА [02:59:50]line Товар: 4700000160211 [02:59:50]line Вода Легенда 0,5л [02:59:50]line 1.000 * 40.00 [02:59:50]line = 40.00 [02:59:50]line НДС 12% НСП 1% [02:59:50]line > о реализуемом товаре [02:59:50]line ИТОГО: 40.00 [02:59:50]line НСП 1% : 0.35 [02:59:50]line НДС 12% : 4.25 [02:59:50]line Наличными: 0.00 [02:59:50]line Безнал.: 40.00 [02:59:50]line Место: АЗС № 140 "Партнер Нефть" [02:59:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:59:50]line СНО: Общий режим [02:59:50]line Чек 13 15.07.2024 02:59 [02:59:50]line Смена: 370 ФФД: 1.0 [02:59:50]line ЗНМ: 0300000189 [02:59:50]line РНМ: 0000000000098025 [02:59:50]line Версия ККМ: 001 [02:59:50]line Платежная система: АКБ Кыргызстан [02:59:50]line ФМ: 0000000000965389 [02:59:50]line ФД: 31572 [02:59:50]line ФПД: 205501396514084 [02:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025949&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31572&fm=205501396514084&tin=02508201610067®Number=0000000000098025&sum=4000 [02:59:50]line 0 [02:59:50]OFD Sender: Processing packet 31572 [packets to send 5, broken 4] [02:59:50]ProducePacketName [02:59:50]name=ofd_packets/00031572 [02:59:50]OFD Sender: To server: pG, [02:59:50]CommunicateWithHost lk.salyk.kg:30040 [02:59:50]ConnectInit lk.salyk.kg [02:59:50]written 0, free lines is 4095 [02:59:50]Connected sock=6 [02:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 0B 7C 1B 01 A4 77 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 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A5 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7B 00 00 35 04 06 00 BA E7 05 BD 75 24 3E C5 5A 7D FE A9 01 4C [02:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 19 71 47 00 8C 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7B 00 00 F4 03 04 00 B3 3C 94 66 B6 04 01 00 00 30 9C D3 BA B9 65 9B 34 [02:59:51]CommunicateWithHost err = 0 [02:59:51]CheckOFDResponse [02:59:51]1017 (14) - 77093643461234 [02:59:51]1041 (16) - 0000000000965389 [02:59:51]1040 (4) - 31572 [02:59:51]1012 (4) - 14.07.2024 21:01 [02:59:51]1206 (1) - 0 [02:59:51]OFD Sender: Remove packet 31572 [02:59:51]ProducePacketName [02:59:51]name=ofd_packets/00031572 [02:59:51]NVStorageDeleteData [02:59:51]Write to MH i2c: 01 00 00 55 03 58 [02:59:51]Write i2c OK [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: 01 [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: 01 07 00 [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 E3 0C 4E [02:59:51]RasterBufferAndPrint [02:59:51]line [02:59:51]line [02:59:51]line [02:59:51]line [02:59:51]line [02:59:51]written 0, free lines is 3305 [02:59:51]MH_Cut [02:59:51]Write to MH i2c: D1 01 00 5C 03 01 31 [02:59:51]Write i2c OK [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: D1 [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: D1 01 00 [02:59:51]MH_I2C_Read... [02:59:51]Read from MH i2c: D1 01 00 5C 03 00 30 [02:59:51]Write to MH i2c: 01 00 00 5D 03 60 [02:59:51]Write i2c OK [02:59:51]MH_I2C_Read... [02:59:51]OFD Sender: No OFD packet to send [02:59:51]*** Cut start [02:59:51]*** Partial cut [02:59:51]*** CUTSNS_PIN = 1 [02:59:52]*** CUTSNS_PIN = 0 [02:59:52]*** Brake cut motor [02:59:52]Read from MH i2c: 01 [02:59:52]MH_I2C_Read... [02:59:52]*** Stop cut motor [02:59:52]*** Cut end [02:59:52]Read from MH i2c: 01 07 00 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [02:59:52]process_action close_receipt done [02:59:52]requested_data is exist [02:59:52]produce_requested_data [02:59:52]requested_item fm.sn is exist - process it [02:59:52]wFMCommunicate request_size=4 [02:59:52]MH_SAM_APDU [02:59:52]CAPDU: 80 11 00 00 [02:59:52]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [02:59:52]Write i2c OK [02:59:52]MH_I2C_Read... [02:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:52]Read from MH i2c: E2 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 17 00 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 36 [02:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:59:52]wFMCommunicate OK [02:59:52]requested_item fd.num is exist - process it [02:59:52]SAM_PROTO_GetFieldsCounters [02:59:52]wFMCommunicate request_size=4 [02:59:52]MH_SAM_APDU [02:59:52]CAPDU: 80 13 00 00 [02:59:52]Write to MH i2c: E2 08 00 5F 03 80 13 00 00 00 00 00 00 DE [02:59:52]Write i2c OK [02:59:52]MH_I2C_Read... [02:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:52]Read from MH i2c: E2 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 62 00 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 62 00 5F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 54 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [02:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 54 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:59:52]wFMCommunicate OK [02:59:52]SAM_PROTO_GetFieldsCounters done [02:59:52]requested_item shift.num is exist - process it [02:59:52]requested_item shift.opened is exist - process it [02:59:52]req_shift_opened [02:59:52]FM_GetShiftState [02:59:52]SAM_PROTO_GetShiftState [02:59:52]wFMCommunicate request_size=4 [02:59:52]MH_SAM_APDU [02:59:52]CAPDU: 80 13 01 00 [02:59:52]Write to MH i2c: E2 08 00 60 03 80 13 01 00 00 00 00 00 E0 [02:59:52]Write i2c OK [02:59:52]MH_I2C_Read... [02:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:52]Read from MH i2c: E2 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 0E 00 [02:59:52]MH_I2C_Read... [02:59:52]Read from MH i2c: E2 0E 00 60 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 D3 [02:59:52]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [02:59:52]wFMCommunicate OK [02:59:52]SAM_PROTO_GetShiftState done [02:59:52]FM_GetShiftState done [02:59:52]req_shift_opened done [02:59:52]requested_item shift.open_date is exist - process it [02:59:52]req_shift_open_date [02:59:52]req_shift_open_date done [02:59:52]produce_requested_data done [02:59:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31572,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [02:59:52]process_action_free close_receipt [02:59:52]json_value_free [02:59:52]json_value_free done [02:59:52]process_json_proto returns [02:59:52]Send response to host [02:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31572,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [02:59:52]free response buf [02:59:52]execute_script done [02:59:52]execute_script returns [02:59:52]free content buf [02:59:52]Sock 7.Close socket [02:59:52]Sock 7.Thread stoped [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:10]accept exits with 5 [03:00:10]New connection [03:00:10]New thread 3067415908 created [03:00:10]Thread 3067559268 joined [03:00:10]Waiting for new connection... [03:00:10] Sock 5.Parse request [03:00:10]Sock 5.Check first char [03:00:10]Sock 5.First char is OK [03:00:10]request: POST /json_proto HTTP/1.0 [03:00:10]Method: POST [03:00:10]URL: /json_proto [03:00:10]Method is POST - this is cgi request [03:00:10]url: /json_proto [03:00:10]query_string will be loaded in cgi processing [03:00:10]execute_cgi json_proto POST (null) [03:00:10]execute_cgi path=json_proto method=POST [03:00:10]POST find Content-Length [03:00:10]Host: 172.17.39.68:8080 [03:00:10]Content-Length: 628 [03:00:10]Content-Type: application/json [03:00:10] [03:00:10]POST finish read [03:00:10]Found Content-Length = 628 [03:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214155", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [03:00:10]execute_script... [03:00: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)214155", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [03:00:10]POST & json_proto [03:00:10]process_json_proto [03:00:10]json parsed OK: [03:00:10]protocol is kg_v1.0 [03:00:10]action value=close_receipt [03:00:10]process_action close_receipt [03:00:10]cmd_close_receipt [03:00:10]MH_GetDate [03:00:10]Write to MH i2c: F0 00 00 61 03 53 [03:00:10]Write i2c OK [03:00:10]MH_I2C_Read... [03:00:10]Read from MH i2c: F0 [03:00:10]MH_I2C_Read... [03:00:10]Read from MH i2c: F0 09 00 [03:00:10]MH_I2C_Read... [03:00:10]Read from MH i2c: F0 09 00 61 03 00 BB 90 94 66 EC 7F 94 66 06 [03:00:10]GetLastDocTimeStamp 1721012389 [03:00:10]current date 1721012411 [03:00:10]FM_GetShiftState [03:00:10]SAM_PROTO_GetShiftState [03:00:10]wFMCommunicate request_size=4 [03:00:10]MH_SAM_APDU [03:00:10]CAPDU: 80 13 01 00 [03:00:10]Write to MH i2c: E2 08 00 62 03 80 13 01 00 00 00 00 00 E2 [03:00:10]Write i2c OK [03:00:10]MH_I2C_Read... [03:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:10]Read from MH i2c: E2 [03:00:10]MH_I2C_Read... [03:00:10]Read from MH i2c: E2 0E 00 [03:00:10]MH_I2C_Read... [03:00:10]Read from MH i2c: E2 0E 00 62 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 D5 [03:00:10]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [03:00:10]wFMCommunicate OK [03:00:10]SAM_PROTO_GetShiftState done [03:00:10]FM_GetShiftState done [03:00:10]opened in 1721001862 [03:00:10]opened+sec_in_day 1721088262 [03:00:10]quantity*price = 13000 [03:00:10]sum+1 = 13001 [03:00:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 14 15.07.2024 03:00 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31573 ФПД: 149651990125983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T030011&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31573&fm=149651990125983&tin=02508201610067®Number=0000000000098025&sum=13000 0 [03:00:11]StoreToDocumentArchive [03:00:11]shift 370 fd 31573 [03:00:11]save to /storage/0370/doc_00031573 [03:00:11]save last doc name /storage/0370/doc_00031573 to /storage/kkm_last_doc_name [03:00:11]save OK [03:00:11]Clear old archive folders... [03:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [03:00:11]tlvbuf is 012756F0 [03:00:11]SAM_PROTO_ClearQueue [03:00:11]wFMCommunicate request_size=4 [03:00:11]MH_SAM_APDU [03:00:11]CAPDU: 80 09 00 00 [03:00:11]Write to MH i2c: E2 08 00 6F 03 80 09 00 00 00 00 00 00 E4 [03:00:11]Write i2c OK [03:00:11]MH_I2C_Read... [03:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:00:11]Read from MH i2c: E2 [03:00:11]MH_I2C_Read... [03:00:11]Read from MH i2c: E2 03 00 [03:00:11]MH_I2C_Read... [03:00:11]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [03:00:11]RAPDU: 90 00 [03:00:11]wFMCommunicate OK [03:00:11]SAM_PROTO_ClearQueue done [03:00:11]KKMCreateOFDPacket [03:00:11]OFDProtocolAddRootSTLVToBuf [03:00:11]FM_MakeSignedData [03:00:11]FM_MakeSignedData [03:00:11]SAM_PROTO_SignData [03:00:11]wFMCommunicate request_size=4 [03:00:11]MH_SAM_APDU [03:00:11]CAPDU: 80 0D 01 02 [03:00:11]Write to MH i2c: E2 08 00 70 03 80 0D 01 02 00 00 00 00 EC [03:00:11]Write i2c OK [03:00:11]MH_I2C_Read... [03:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:00:12]Read from MH i2c: E2 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 70 03 00 90 00 E7 [03:00:12]RAPDU: 90 00 [03:00:12]wFMCommunicate OK [03:00:12]wFMCommunicate request_size=255 [03:00:12]MH_SAM_APDU [03:00:12]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 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 0E 00 00 00 F4 03 04 00 BB 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [03:00:12]Write to MH i2c: E2 02 01 71 03 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 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 0E 00 00 00 F4 03 04 00 BB 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 CC [03:00:12]Write i2c OK [03:00:12]MH_I2C_Read... [03:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:12]Read from MH i2c: E2 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [03:00:12]RAPDU: 90 00 [03:00:12]wFMCommunicate OK [03:00:12]wFMCommunicate request_size=35 [03:00:12]MH_SAM_APDU [03:00:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7B 00 00 35 04 06 00 88 1B 91 B6 1D 9F [03:00:12]Write to MH i2c: E2 26 00 72 03 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7B 00 00 35 04 06 00 88 1B 91 B6 1D 9F 00 00 60 [03:00:12]Write i2c OK [03:00:12]MH_I2C_Read... [03:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:12]Read from MH i2c: E2 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [03:00:12]RAPDU: 90 00 [03:00:12]wFMCommunicate OK [03:00:12]wFMCommunicate request_size=4 [03:00:12]MH_SAM_APDU [03:00:12]CAPDU: 80 0D 03 02 [03:00:12]Write to MH i2c: E2 08 00 73 03 80 0D 03 02 00 00 00 00 F1 [03:00:12]Write i2c OK [03:00:12]MH_I2C_Read... [03:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:00:12]Read from MH i2c: E2 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 0B 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 0B 00 73 03 00 48 54 43 07 72 0F FF C0 90 00 18 [03:00:12]RAPDU: 48 54 43 07 72 0F FF C0 90 00 [03:00:12]wFMCommunicate OK [03:00:12]SAM_PROTO_SignData done [03:00:12]FM_MakeSignedData done [03:00:12]CreateOFDProtocolMessage [03:00:12]wFMCommunicate request_size=4 [03:00:12]MH_SAM_APDU [03:00:12]CAPDU: 80 11 00 00 [03:00:12]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [03:00:12]Write i2c OK [03:00:12]MH_I2C_Read... [03:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:12]Read from MH i2c: E2 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 17 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4C [03:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:00:12]wFMCommunicate OK [03:00:12]CreateOFDProtocolMessage done [03:00:12]OFDSenderStorePacket 31573 [03:00:12]StoreOFDPacket docnum=31573 [03:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 02 C3 20 01 3A 5C 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 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 0E 00 00 00 F4 03 04 00 BB 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7B 00 00 35 04 06 00 88 1B 91 B6 1D 9F 48 54 43 07 72 0F FF C0 [03:00:12]CheckFolder [03:00:12]dirname=/storage/ofd_packets [03:00:12]CheckFolder done [03:00:12]ProducePacketName [03:00:12]name=ofd_packets/00031573 [03:00:12]NVStorageSaveData ofd_packets/00031573 [03:00:12]File name is /storage/ofd_packets/00031573 [03:00:12]Write 326 bytes [03:00:12]NVStorageSaveData done [03:00:12]OFDSenderStorePacket done [03:00:12]KKMCreateOFDPacket done [03:00:12]NVStorageSaveData kkm_last_timestamp [03:00:12]File name is /storage/kkm_last_timestamp [03:00:12]Write 4 bytes [03:00:12]NVStorageSaveData done [03:00:12]ExternCall_PrintAddStr [03:00:12]wPrintStart [03:00:12]Write to MH i2c: 01 00 00 75 03 78 [03:00:12]Write i2c OK [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: 01 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: 01 07 00 [03:00:12]MH_I2C_Read... [03:00:12]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 FF 0F 8D [03:00:12]RasterBufferAndPrint [03:00:12]line Счет N : (3)214155 [03:00:12]line ИНН: 02508201610067 [03:00:12]line Контрольно-Кассовый Чек [03:00:12]line ПРОДАЖА [03:00:12]line Товар: 2000036230011 [03:00:12]line Кофе Латте XL(GABB TRADE) [03:00:12]line 1.000 * 130.00 [03:00:12]line = 130.00 [03:00:12]line НДС 12% НСП 1% [03:00:12]line > о реализуемом товаре [03:00:12]line ИТОГО: 130.00 [03:00:12]line НСП 1% : 1.15 [03:00:12]line НДС 12% : 13.80 [03:00:12]line Наличными: 130.00 [03:00:12]line Безнал.: 0.00 [03:00:12]line Место: АЗС № 140 "Партнер Нефть" [03:00:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:00:12]line СНО: Общий режим [03:00:12]line Чек 14 15.07.2024 03:00 [03:00:12]line Смена: 370 ФФД: 1.0 [03:00:12]line ЗНМ: 0300000189 [03:00:12]line РНМ: 0000000000098025 [03:00:12]line Версия ККМ: 001 [03:00:12]line ФМ: 0000000000965389 [03:00:12]line ФД: 31573 [03:00:12]line ФПД: 149651990125983 [03:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T030011&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31573&fm=149651990125983&tin=02508201610067®Number=0000000000098025&sum=13000 [03:00:12]line 0 [03:00:12]OFD Sender: Processing packet 31573 [packets to send 5, broken 4] [03:00:12]ProducePacketName [03:00:12]name=ofd_packets/00031573 [03:00:12]OFD Sender: To server: pG, [03:00:12]CommunicateWithHost lk.salyk.kg:30040 [03:00:12]ConnectInit lk.salyk.kg [03:00:12]written 0, free lines is 4095 [03:00:12]Connected sock=7 [03:00:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 02 C3 20 01 3A 5C 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 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 0E 00 00 00 F4 03 04 00 BB 90 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7B 00 00 35 04 06 00 88 1B 91 B6 1D 9F 48 54 43 07 72 0F FF C0 [03:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C6 31 47 00 E3 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7B 00 00 F4 03 04 00 C9 3C 94 66 B6 04 01 00 00 71 1A E2 A5 C1 AE 5B 0B [03:00:13]CommunicateWithHost err = 0 [03:00:13]CheckOFDResponse [03:00:13]1017 (14) - 77093643461234 [03:00:13]1041 (16) - 0000000000965389 [03:00:13]1040 (4) - 31573 [03:00:13]1012 (4) - 14.07.2024 21:02 [03:00:13]1206 (1) - 0 [03:00:13]OFD Sender: Remove packet 31573 [03:00:13]ProducePacketName [03:00:13]name=ofd_packets/00031573 [03:00:13]NVStorageDeleteData [03:00:13]Write to MH i2c: 01 00 00 9D 03 A0 [03:00:13]Write i2c OK [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: 01 [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: 01 07 00 [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FE 0C B1 [03:00:13]RasterBufferAndPrint [03:00:13]line [03:00:13]line [03:00:13]line [03:00:13]line [03:00:13]line [03:00:13]written 0, free lines is 3332 [03:00:13]MH_Cut [03:00:13]Write to MH i2c: D1 01 00 A4 03 01 79 [03:00:13]Write i2c OK [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: D1 [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: D1 01 00 [03:00:13]MH_I2C_Read... [03:00:13]Read from MH i2c: D1 01 00 A4 03 00 78 [03:00:13]Write to MH i2c: 01 00 00 A5 03 A8 [03:00:13]Write i2c OK [03:00:13]MH_I2C_Read... [03:00:13]OFD Sender: No OFD packet to send [03:00:13]*** Cut start [03:00:13]*** Partial cut [03:00:13]*** CUTSNS_PIN = 1 [03:00:13]*** CUTSNS_PIN = 0 [03:00:14]*** Brake cut motor [03:00:14]Read from MH i2c: 01 [03:00:14]MH_I2C_Read... [03:00:14]*** Stop cut motor [03:00:14]*** Cut end [03:00:14]Read from MH i2c: 01 07 00 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [03:00:14]process_action close_receipt done [03:00:14]requested_data is exist [03:00:14]produce_requested_data [03:00:14]requested_item fm.sn is exist - process it [03:00:14]wFMCommunicate request_size=4 [03:00:14]MH_SAM_APDU [03:00:14]CAPDU: 80 11 00 00 [03:00:14]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [03:00:14]Write i2c OK [03:00:14]MH_I2C_Read... [03:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:14]Read from MH i2c: E2 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 17 00 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7E [03:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:00:14]wFMCommunicate OK [03:00:14]requested_item fd.num is exist - process it [03:00:14]SAM_PROTO_GetFieldsCounters [03:00:14]wFMCommunicate request_size=4 [03:00:14]MH_SAM_APDU [03:00:14]CAPDU: 80 13 00 00 [03:00:14]Write to MH i2c: E2 08 00 A7 03 80 13 00 00 00 00 00 00 26 [03:00:14]Write i2c OK [03:00:14]MH_I2C_Read... [03:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:00:14]Read from MH i2c: E2 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 62 00 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 62 00 A7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 55 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [03:00:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 55 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:00:14]wFMCommunicate OK [03:00:14]SAM_PROTO_GetFieldsCounters done [03:00:14]requested_item shift.num is exist - process it [03:00:14]requested_item shift.opened is exist - process it [03:00:14]req_shift_opened [03:00:14]FM_GetShiftState [03:00:14]SAM_PROTO_GetShiftState [03:00:14]wFMCommunicate request_size=4 [03:00:14]MH_SAM_APDU [03:00:14]CAPDU: 80 13 01 00 [03:00:14]Write to MH i2c: E2 08 00 A8 03 80 13 01 00 00 00 00 00 28 [03:00:14]Write i2c OK [03:00:14]MH_I2C_Read... [03:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:14]Read from MH i2c: E2 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 0E 00 [03:00:14]MH_I2C_Read... [03:00:14]Read from MH i2c: E2 0E 00 A8 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 1B [03:00:14]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [03:00:14]wFMCommunicate OK [03:00:14]SAM_PROTO_GetShiftState done [03:00:14]FM_GetShiftState done [03:00:14]req_shift_opened done [03:00:14]requested_item shift.open_date is exist - process it [03:00:14]req_shift_open_date [03:00:14]req_shift_open_date done [03:00:14]produce_requested_data done [03:00:14]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31573,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [03:00:14]process_action_free close_receipt [03:00:14]json_value_free [03:00:14]json_value_free done [03:00:14]process_json_proto returns [03:00:14]Send response to host [03:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31573,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [03:00:14]free response buf [03:00:14]execute_script done [03:00:14]execute_script returns [03:00:14]free content buf [03:00:14]Sock 5.Close socket [03:00:14]Sock 5.Thread stoped [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]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:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30: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:47]accept exits with 6 [03:32:47]New connection [03:32:47]New thread 3067559268 created [03:32:47]Thread 3067415908 joined [03:32:47]Waiting for new connection... [03:32:47] Sock 6.Parse request [03:32:47]Sock 6.Check first char [03:32:47]Sock 6.First char is OK [03:32:47]request: POST /json_proto HTTP/1.0 [03:32:47]Method: POST [03:32:47]URL: /json_proto [03:32:47]Method is POST - this is cgi request [03:32:47]url: /json_proto [03:32:47]query_string will be loaded in cgi processing [03:32:47]execute_cgi json_proto POST (null) [03:32:47]execute_cgi path=json_proto method=POST [03:32:47]POST find Content-Length [03:32:47]Host: 172.17.39.68:8080 [03:32:47]Content-Length: 782 [03:32:47]Content-Type: application/json [03:32:47] [03:32:47]POST finish read [03:32:47]Found Content-Length = 782 [03:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214156", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:47]execute_script... [03:32: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)214156", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:47]POST & json_proto [03:32:47]process_json_proto [03:32:47]json parsed OK: [03:32:47]protocol is kg_v1.0 [03:32:47]action value=close_receipt [03:32:47]process_action close_receipt [03:32:47]cmd_close_receipt [03:32:47]MH_GetDate [03:32:47]Write to MH i2c: F0 00 00 A9 03 9B [03:32:47]Write i2c OK [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: F0 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: F0 09 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: F0 09 00 A9 03 00 60 98 94 66 EC 7F 94 66 FB [03:32:47]GetLastDocTimeStamp 1721012411 [03:32:47]current date 1721014368 [03:32:47]FM_GetShiftState [03:32:47]SAM_PROTO_GetShiftState [03:32:47]wFMCommunicate request_size=4 [03:32:47]MH_SAM_APDU [03:32:47]CAPDU: 80 13 01 00 [03:32:47]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [03:32:47]Write i2c OK [03:32:47]MH_I2C_Read... [03:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:47]Read from MH i2c: E2 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 0E 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 1D [03:32:47]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [03:32:47]wFMCommunicate OK [03:32:47]SAM_PROTO_GetShiftState done [03:32:47]FM_GetShiftState done [03:32:47]opened in 1721001862 [03:32:47]opened+sec_in_day 1721088262 [03:32:47]quantity*price = 14000 [03:32:47]sum+1 = 14001 [03:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 15 15.07.2024 03:32 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31574 ФПД: 231826793128042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T033248&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31574&fm=231826793128042&tin=02508201610067®Number=0000000000098025&sum=14000 0 [03:32:48]StoreToDocumentArchive [03:32:48]shift 370 fd 31574 [03:32:48]save to /storage/0370/doc_00031574 [03:32:48]save last doc name /storage/0370/doc_00031574 to /storage/kkm_last_doc_name [03:32:48]save OK [03:32:48]Clear old archive folders... [03:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=273 [03:32:48]tlvbuf is 012648A0 [03:32:48]SAM_PROTO_ClearQueue [03:32:48]wFMCommunicate request_size=4 [03:32:48]MH_SAM_APDU [03:32:48]CAPDU: 80 09 00 00 [03:32:48]Write to MH i2c: E2 08 00 B7 03 80 09 00 00 00 00 00 00 2C [03:32:48]Write i2c OK [03:32:48]MH_I2C_Read... [03:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:32:48]Read from MH i2c: E2 [03:32:48]MH_I2C_Read... [03:32:48]Read from MH i2c: E2 03 00 [03:32:48]MH_I2C_Read... [03:32:48]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [03:32:48]RAPDU: 90 00 [03:32:48]wFMCommunicate OK [03:32:48]SAM_PROTO_ClearQueue done [03:32:48]KKMCreateOFDPacket [03:32:48]OFDProtocolAddRootSTLVToBuf [03:32:48]FM_MakeSignedData [03:32:48]FM_MakeSignedData [03:32:48]SAM_PROTO_SignData [03:32:48]wFMCommunicate request_size=4 [03:32:48]MH_SAM_APDU [03:32:48]CAPDU: 80 0D 01 02 [03:32:48]Write to MH i2c: E2 08 00 B8 03 80 0D 01 02 00 00 00 00 34 [03:32:48]Write i2c OK [03:32:48]MH_I2C_Read... [03:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:32:49]Read from MH i2c: E2 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [03:32:49]RAPDU: 90 00 [03:32:49]wFMCommunicate OK [03:32:49]wFMCommunicate request_size=255 [03:32:49]MH_SAM_APDU [03:32:49]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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 60 98 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [03:32:49]Write to MH i2c: E2 02 01 B9 03 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 60 98 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 9C [03:32:49]Write i2c OK [03:32:49]MH_I2C_Read... [03:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:49]Read from MH i2c: E2 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [03:32:49]RAPDU: 90 00 [03:32:49]wFMCommunicate OK [03:32:49]wFMCommunicate request_size=32 [03:32:49]MH_SAM_APDU [03:32:49]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7B 00 00 35 04 06 00 D2 D8 61 A7 60 6A [03:32:49]Write to MH i2c: E2 23 00 BA 03 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7B 00 00 35 04 06 00 D2 D8 61 A7 60 6A 00 00 E9 [03:32:49]Write i2c OK [03:32:49]MH_I2C_Read... [03:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:49]Read from MH i2c: E2 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [03:32:49]RAPDU: 90 00 [03:32:49]wFMCommunicate OK [03:32:49]wFMCommunicate request_size=4 [03:32:49]MH_SAM_APDU [03:32:49]CAPDU: 80 0D 03 02 [03:32:49]Write to MH i2c: E2 08 00 BB 03 80 0D 03 02 00 00 00 00 39 [03:32:49]Write i2c OK [03:32:49]MH_I2C_Read... [03:32:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:32:49]Read from MH i2c: E2 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 0B 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 0B 00 BB 03 00 DB 86 19 72 2D D4 E5 7D 90 00 89 [03:32:49]RAPDU: DB 86 19 72 2D D4 E5 7D 90 00 [03:32:49]wFMCommunicate OK [03:32:49]SAM_PROTO_SignData done [03:32:49]FM_MakeSignedData done [03:32:49]CreateOFDProtocolMessage [03:32:49]wFMCommunicate request_size=4 [03:32:49]MH_SAM_APDU [03:32:49]CAPDU: 80 11 00 00 [03:32:49]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [03:32:49]Write i2c OK [03:32:49]MH_I2C_Read... [03:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:49]Read from MH i2c: E2 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 17 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 94 [03:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:32:49]wFMCommunicate OK [03:32:49]CreateOFDProtocolMessage done [03:32:49]OFDSenderStorePacket 31574 [03:32:49]StoreOFDPacket docnum=31574 [03:32:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 CC 5C 1D 01 62 FD 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 60 98 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7B 00 00 35 04 06 00 D2 D8 61 A7 60 6A DB 86 19 72 2D D4 E5 7D [03:32:49]CheckFolder [03:32:49]dirname=/storage/ofd_packets [03:32:49]CheckFolder done [03:32:49]ProducePacketName [03:32:49]name=ofd_packets/00031574 [03:32:49]NVStorageSaveData ofd_packets/00031574 [03:32:49]File name is /storage/ofd_packets/00031574 [03:32:49]Write 323 bytes [03:32:49]NVStorageSaveData done [03:32:49]OFDSenderStorePacket done [03:32:49]KKMCreateOFDPacket done [03:32:49]NVStorageSaveData kkm_last_timestamp [03:32:49]File name is /storage/kkm_last_timestamp [03:32:49]Write 4 bytes [03:32:49]NVStorageSaveData done [03:32:49]ExternCall_PrintAddStr [03:32:49]wPrintStart [03:32:49]Write to MH i2c: 01 00 00 BD 03 C0 [03:32:49]Write i2c OK [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: 01 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: 01 07 00 [03:32:49]MH_I2C_Read... [03:32:49]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [03:32:49]RasterBufferAndPrint [03:32:49]line Счет N : (3)214156 [03:32:49]line ИНН: 02508201610067 [03:32:49]line Контрольно-Кассовый Чек [03:32:49]line ПРОДАЖА [03:32:49]line Товар: 48743570 [03:32:49]line Сигареты Winston XStyle Blue [03:32:49]line 1.000 * 140.00 [03:32:49]line = 140.00 [03:32:49]line НДС 12% НСП 1% [03:32:49]line > о реализуемом товаре [03:32:49]line ИТОГО: 140.00 [03:32:49]line НСП 1% : 1.24 [03:32:49]line НДС 12% : 14.87 [03:32:49]line Наличными: 0.00 [03:32:49]line Безнал.: 140.00 [03:32:49]line Место: АЗС № 140 "Партнер Нефть" [03:32:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:32:49]line СНО: Общий режим [03:32:49]line Чек 15 15.07.2024 03:32 [03:32:49]line Смена: 370 ФФД: 1.0 [03:32:49]line ЗНМ: 0300000189 [03:32:49]line РНМ: 0000000000098025 [03:32:49]line Версия ККМ: 001 [03:32:49]line Платежная система: O! деньги [03:32:49]line ФМ: 0000000000965389 [03:32:49]line ФД: 31574 [03:32:49]line ФПД: 231826793128042 [03:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T033248&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31574&fm=231826793128042&tin=02508201610067®Number=0000000000098025&sum=14000 [03:32:49]line 0 [03:32:49]OFD Sender: Processing packet 31574 [packets to send 5, broken 4] [03:32:49]ProducePacketName [03:32:49]name=ofd_packets/00031574 [03:32:49]OFD Sender: To server: pG, [03:32:49]CommunicateWithHost lk.salyk.kg:30040 [03:32:49]ConnectInit lk.salyk.kg [03:32:49]written 0, free lines is 4095 [03:32:49]Connected sock=7 [03:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 CC 5C 1D 01 62 FD 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 60 98 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7B 00 00 35 04 06 00 D2 D8 61 A7 60 6A DB 86 19 72 2D D4 E5 7D [03:32:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 53 89 47 00 8F 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 39 36 35 33 38 39 10 04 04 00 56 7B 00 00 F4 03 04 00 6E 44 94 66 B6 04 01 00 00 84 2B C0 05 27 97 B4 73 [03:32:50]CommunicateWithHost err = 0 [03:32:50]CheckOFDResponse [03:32:50]1017 (14) - 77093643461234 [03:32:50]1041 (16) - 0000000000965389 [03:32:50]1040 (4) - 31574 [03:32:50]1012 (4) - 14.07.2024 21:34 [03:32:50]1206 (1) - 0 [03:32:50]OFD Sender: Remove packet 31574 [03:32:50]ProducePacketName [03:32:50]name=ofd_packets/00031574 [03:32:50]NVStorageDeleteData [03:32:50]Write to MH i2c: 01 00 00 E7 03 EA [03:32:50]Write i2c OK [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: 01 [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: 01 07 00 [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 ED 0C EA [03:32:50]RasterBufferAndPrint [03:32:50]line [03:32:50]line [03:32:50]line [03:32:50]line [03:32:50]line [03:32:50]written 0, free lines is 3315 [03:32:50]MH_Cut [03:32:50]Write to MH i2c: D1 01 00 EE 03 01 C3 [03:32:50]Write i2c OK [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: D1 [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: D1 01 00 [03:32:50]MH_I2C_Read... [03:32:50]Read from MH i2c: D1 01 00 EE 03 00 C2 [03:32:50]Write to MH i2c: 01 00 00 EF 03 F2 [03:32:50]Write i2c OK [03:32:50]MH_I2C_Read... [03:32:50]OFD Sender: No OFD packet to send [03:32:51]*** Cut start [03:32:51]*** Partial cut [03:32:51]*** CUTSNS_PIN = 1 [03:32:51]*** CUTSNS_PIN = 0 [03:32:51]*** Brake cut motor [03:32:51]Read from MH i2c: 01 [03:32:51]MH_I2C_Read... [03:32:51]*** Stop cut motor [03:32:51]*** Cut end [03:32:51]Read from MH i2c: 01 07 00 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [03:32:51]process_action close_receipt done [03:32:51]requested_data is exist [03:32:51]produce_requested_data [03:32:51]requested_item fm.sn is exist - process it [03:32:51]wFMCommunicate request_size=4 [03:32:51]MH_SAM_APDU [03:32:51]CAPDU: 80 11 00 00 [03:32:51]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [03:32:51]Write i2c OK [03:32:51]MH_I2C_Read... [03:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:51]Read from MH i2c: E2 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 17 00 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C8 [03:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:32:51]wFMCommunicate OK [03:32:51]requested_item fd.num is exist - process it [03:32:51]SAM_PROTO_GetFieldsCounters [03:32:51]wFMCommunicate request_size=4 [03:32:51]MH_SAM_APDU [03:32:51]CAPDU: 80 13 00 00 [03:32:51]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [03:32:51]Write i2c OK [03:32:51]MH_I2C_Read... [03:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:32:51]Read from MH i2c: E2 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 62 00 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 56 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [03:32:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 56 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:32:51]wFMCommunicate OK [03:32:51]SAM_PROTO_GetFieldsCounters done [03:32:51]requested_item shift.num is exist - process it [03:32:51]requested_item shift.opened is exist - process it [03:32:51]req_shift_opened [03:32:51]FM_GetShiftState [03:32:51]SAM_PROTO_GetShiftState [03:32:51]wFMCommunicate request_size=4 [03:32:51]MH_SAM_APDU [03:32:51]CAPDU: 80 13 01 00 [03:32:51]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [03:32:51]Write i2c OK [03:32:51]MH_I2C_Read... [03:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:51]Read from MH i2c: E2 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 0E 00 [03:32:51]MH_I2C_Read... [03:32:51]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 65 [03:32:51]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [03:32:51]wFMCommunicate OK [03:32:51]SAM_PROTO_GetShiftState done [03:32:51]FM_GetShiftState done [03:32:51]req_shift_opened done [03:32:51]requested_item shift.open_date is exist - process it [03:32:51]req_shift_open_date [03:32:51]req_shift_open_date done [03:32:51]produce_requested_data done [03:32:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31574,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [03:32:51]process_action_free close_receipt [03:32:51]json_value_free [03:32:51]json_value_free done [03:32:51]process_json_proto returns [03:32:51]Send response to host [03:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31574,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [03:32:51]free response buf [03:32:51]execute_script done [03:32:51]execute_script returns [03:32:51]free content buf [03:32:51]Sock 6.Close socket [03:32:51]Sock 6.Thread stoped [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:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:37]accept exits with 5 [04:09:37]New connection [04:09:37]New thread 3067415908 created [04:09:37]Thread 3067559268 joined [04:09:37]Waiting for new connection... [04:09:37] Sock 5.Parse request [04:09:37]Sock 5.Check first char [04:09:37]Sock 5.First char is OK [04:09:37]request: POST /json_proto HTTP/1.0 [04:09:37]Method: POST [04:09:37]URL: /json_proto [04:09:37]Method is POST - this is cgi request [04:09:37]url: /json_proto [04:09:37]query_string will be loaded in cgi processing [04:09:37]execute_cgi json_proto POST (null) [04:09:37]execute_cgi path=json_proto method=POST [04:09:37]POST find Content-Length [04:09:37]Host: 172.17.39.68:8080 [04:09:37]Content-Length: 638 [04:09:37]Content-Type: application/json [04:09:37] [04:09:37]POST finish read [04:09:37]Found Content-Length = 638 [04:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214157", "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" ] } } [04:09:37]execute_script... [04:09: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)214157", "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" ] } } [04:09:37]POST & json_proto [04:09:37]process_json_proto [04:09:37]json parsed OK: [04:09:37]protocol is kg_v1.0 [04:09:37]action value=close_receipt [04:09:37]process_action close_receipt [04:09:37]cmd_close_receipt [04:09:37]MH_GetDate [04:09:37]Write to MH i2c: F0 00 00 F3 03 E5 [04:09:37]Write i2c OK [04:09:37]MH_I2C_Read... [04:09:37]Read from MH i2c: F0 [04:09:37]MH_I2C_Read... [04:09:37]Read from MH i2c: F0 09 00 [04:09:37]MH_I2C_Read... [04:09:37]Read from MH i2c: F0 09 00 F3 03 00 02 A1 94 66 EC 7F 94 66 F0 [04:09:37]GetLastDocTimeStamp 1721014368 [04:09:37]current date 1721016578 [04:09:37]FM_GetShiftState [04:09:37]SAM_PROTO_GetShiftState [04:09:37]wFMCommunicate request_size=4 [04:09:37]MH_SAM_APDU [04:09:37]CAPDU: 80 13 01 00 [04:09:37]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [04:09:37]Write i2c OK [04:09:37]MH_I2C_Read... [04:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:37]Read from MH i2c: E2 [04:09:37]MH_I2C_Read... [04:09:37]Read from MH i2c: E2 0E 00 [04:09:37]MH_I2C_Read... [04:09:37]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 67 [04:09:37]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:09:37]wFMCommunicate OK [04:09:37]SAM_PROTO_GetShiftState done [04:09:37]FM_GetShiftState done [04:09:37]opened in 1721001862 [04:09:37]opened+sec_in_day 1721088262 [04:09:37]quantity*price = 7000 [04:09:37]sum+1 = 7001 [04:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 16 15.07.2024 04:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31575 ФПД: 23863776690078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T040938&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31575&fm=23863776690078&tin=02508201610067®Number=0000000000098025&sum=7000 0 [04:09:38]StoreToDocumentArchive [04:09:38]shift 370 fd 31575 [04:09:38]save to /storage/0370/doc_00031575 [04:09:38]save last doc name /storage/0370/doc_00031575 to /storage/kkm_last_doc_name [04:09:38]save OK [04:09:38]Clear old archive folders... [04:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [04:09:38]tlvbuf is 0122E680 [04:09:38]SAM_PROTO_ClearQueue [04:09:38]wFMCommunicate request_size=4 [04:09:38]MH_SAM_APDU [04:09:38]CAPDU: 80 09 00 00 [04:09:38]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [04:09:38]Write i2c OK [04:09:38]MH_I2C_Read... [04:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:09:38]Read from MH i2c: E2 [04:09:38]MH_I2C_Read... [04:09:38]Read from MH i2c: E2 03 00 [04:09:38]MH_I2C_Read... [04:09:38]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [04:09:38]RAPDU: 90 00 [04:09:38]wFMCommunicate OK [04:09:38]SAM_PROTO_ClearQueue done [04:09:38]KKMCreateOFDPacket [04:09:38]OFDProtocolAddRootSTLVToBuf [04:09:38]FM_MakeSignedData [04:09:38]FM_MakeSignedData [04:09:38]SAM_PROTO_SignData [04:09:38]wFMCommunicate request_size=4 [04:09:38]MH_SAM_APDU [04:09:38]CAPDU: 80 0D 01 02 [04:09:38]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [04:09:38]Write i2c OK [04:09:38]MH_I2C_Read... [04:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:09:38]Read from MH i2c: E2 [04:09:38]MH_I2C_Read... [04:09:38]Read from MH i2c: E2 03 00 [04:09:38]MH_I2C_Read... [04:09:38]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [04:09:38]RAPDU: 90 00 [04:09:38]wFMCommunicate OK [04:09:38]wFMCommunicate request_size=255 [04:09:38]MH_SAM_APDU [04:09:38]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 10 00 00 00 F4 03 04 00 02 A1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [04:09:38]Write to MH i2c: E2 02 01 03 04 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 10 00 00 00 F4 03 04 00 02 A1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 B9 [04:09:38]Write i2c OK [04:09:38]MH_I2C_Read... [04:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:39]Read from MH i2c: E2 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 03 00 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [04:09:39]RAPDU: 90 00 [04:09:39]wFMCommunicate OK [04:09:39]wFMCommunicate request_size=32 [04:09:39]MH_SAM_APDU [04:09:39]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7B 00 00 35 04 06 00 15 B4 37 EE BF 9E [04:09:39]Write to MH i2c: E2 23 00 04 04 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7B 00 00 35 04 06 00 15 B4 37 EE BF 9E 00 00 04 [04:09:39]Write i2c OK [04:09:39]MH_I2C_Read... [04:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:39]Read from MH i2c: E2 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 03 00 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [04:09:39]RAPDU: 90 00 [04:09:39]wFMCommunicate OK [04:09:39]wFMCommunicate request_size=4 [04:09:39]MH_SAM_APDU [04:09:39]CAPDU: 80 0D 03 02 [04:09:39]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [04:09:39]Write i2c OK [04:09:39]MH_I2C_Read... [04:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:09:39]Read from MH i2c: E2 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 0B 00 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 0B 00 05 04 00 7C 98 33 7B A2 BA F3 CA 90 00 60 [04:09:39]RAPDU: 7C 98 33 7B A2 BA F3 CA 90 00 [04:09:39]wFMCommunicate OK [04:09:39]SAM_PROTO_SignData done [04:09:39]FM_MakeSignedData done [04:09:39]CreateOFDProtocolMessage [04:09:39]wFMCommunicate request_size=4 [04:09:39]MH_SAM_APDU [04:09:39]CAPDU: 80 11 00 00 [04:09:39]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [04:09:39]Write i2c OK [04:09:39]MH_I2C_Read... [04:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:39]Read from MH i2c: E2 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 17 00 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DF [04:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:09:39]wFMCommunicate OK [04:09:39]CreateOFDProtocolMessage done [04:09:39]OFDSenderStorePacket 31575 [04:09:39]StoreOFDPacket docnum=31575 [04:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 45 2C 1D 01 86 3A 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 10 00 00 00 F4 03 04 00 02 A1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7B 00 00 35 04 06 00 15 B4 37 EE BF 9E 7C 98 33 7B A2 BA F3 CA [04:09:39]CheckFolder [04:09:39]dirname=/storage/ofd_packets [04:09:39]CheckFolder done [04:09:39]ProducePacketName [04:09:39]name=ofd_packets/00031575 [04:09:39]NVStorageSaveData ofd_packets/00031575 [04:09:39]File name is /storage/ofd_packets/00031575 [04:09:39]Write 323 bytes [04:09:39]NVStorageSaveData done [04:09:39]OFDSenderStorePacket done [04:09:39]KKMCreateOFDPacket done [04:09:39]NVStorageSaveData kkm_last_timestamp [04:09:39]File name is /storage/kkm_last_timestamp [04:09:39]Write 4 bytes [04:09:39]NVStorageSaveData done [04:09:39]ExternCall_PrintAddStr [04:09:39]wPrintStart [04:09:39]Write to MH i2c: 01 00 00 07 04 0B [04:09:39]Write i2c OK [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: 01 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: 01 07 00 [04:09:39]MH_I2C_Read... [04:09:39]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [04:09:39]RasterBufferAndPrint [04:09:39]line Счет N : (3)214157 [04:09:39]line ИНН: 02508201610067 [04:09:39]line Контрольно-Кассовый Чек [04:09:39]line ПРОДАЖА [04:09:39]line Товар: 4700002082931 [04:09:39]line Водка Хорошая 0,1л [04:09:39]line 1.000 * 70.00 [04:09:39]line = 70.00 [04:09:39]line НДС 12% НСП 1% [04:09:39]line > о реализуемом товаре [04:09:39]line ИТОГО: 70.00 [04:09:39]line НСП 1% : 0.62 [04:09:39]line НДС 12% : 7.43 [04:09:39]line Наличными: 70.00 [04:09:39]line Безнал.: 0.00 [04:09:39]line Место: АЗС № 140 "Партнер Нефть" [04:09:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:09:39]line СНО: Общий режим [04:09:39]line Чек 16 15.07.2024 04:09 [04:09:39]line Смена: 370 ФФД: 1.0 [04:09:39]line ЗНМ: 0300000189 [04:09:39]line РНМ: 0000000000098025 [04:09:39]line Версия ККМ: 001 [04:09:39]line ФМ: 0000000000965389 [04:09:39]line ФД: 31575 [04:09:39]line ФПД: 23863776690078 [04:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T040938&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31575&fm=23863776690078&tin=02508201610067®Number=0000000000098025&sum=7000 [04:09:39]line 0 [04:09:39]OFD Sender: Processing packet 31575 [packets to send 5, broken 4] [04:09:39]ProducePacketName [04:09:39]name=ofd_packets/00031575 [04:09:39]OFD Sender: To server: pG, [04:09:39]CommunicateWithHost lk.salyk.kg:30040 [04:09:39]ConnectInit lk.salyk.kg [04:09:39]written 0, free lines is 4095 [04:09:39]Connected sock=7 [04:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 45 2C 1D 01 86 3A 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 10 00 00 00 F4 03 04 00 02 A1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7B 00 00 35 04 06 00 15 B4 37 EE BF 9E 7C 98 33 7B A2 BA F3 CA [04:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 84 97 47 00 F6 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7B 00 00 F4 03 04 00 10 4D 94 66 B6 04 01 00 00 8C 11 12 21 E4 E4 09 49 [04:09:39]CommunicateWithHost err = 0 [04:09:39]CheckOFDResponse [04:09:39]1017 (14) - 77093643461234 [04:09:39]1041 (16) - 0000000000965389 [04:09:39]1040 (4) - 31575 [04:09:39]1012 (4) - 14.07.2024 22:11 [04:09:39]1206 (1) - 0 [04:09:39]OFD Sender: Remove packet 31575 [04:09:39]ProducePacketName [04:09:39]name=ofd_packets/00031575 [04:09:39]NVStorageDeleteData [04:09:40]Write to MH i2c: 01 00 00 2F 04 33 [04:09:40]Write i2c OK [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: 01 [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: 01 07 00 [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 F3 0C 39 [04:09:40]RasterBufferAndPrint [04:09:40]line [04:09:40]line [04:09:40]line [04:09:40]line [04:09:40]line [04:09:40]written 0, free lines is 3323 [04:09:40]MH_Cut [04:09:40]Write to MH i2c: D1 01 00 36 04 01 0C [04:09:40]Write i2c OK [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: D1 [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: D1 01 00 [04:09:40]MH_I2C_Read... [04:09:40]Read from MH i2c: D1 01 00 36 04 00 0B [04:09:40]Write to MH i2c: 01 00 00 37 04 3B [04:09:40]Write i2c OK [04:09:40]MH_I2C_Read... [04:09:40]OFD Sender: No OFD packet to send [04:09:40]*** Cut start [04:09:40]*** Partial cut [04:09:40]*** CUTSNS_PIN = 1 [04:09:40]*** CUTSNS_PIN = 0 [04:09:41]*** Brake cut motor [04:09:41]Read from MH i2c: 01 [04:09:41]MH_I2C_Read... [04:09:41]*** Stop cut motor [04:09:41]*** Cut end [04:09:41]Read from MH i2c: 01 07 00 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 FF 0F 50 [04:09:41]process_action close_receipt done [04:09:41]requested_data is exist [04:09:41]produce_requested_data [04:09:41]requested_item fm.sn is exist - process it [04:09:41]wFMCommunicate request_size=4 [04:09:41]MH_SAM_APDU [04:09:41]CAPDU: 80 11 00 00 [04:09:41]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [04:09:41]Write i2c OK [04:09:41]MH_I2C_Read... [04:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:41]Read from MH i2c: E2 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 17 00 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 11 [04:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:09:41]wFMCommunicate OK [04:09:41]requested_item fd.num is exist - process it [04:09:41]SAM_PROTO_GetFieldsCounters [04:09:41]wFMCommunicate request_size=4 [04:09:41]MH_SAM_APDU [04:09:41]CAPDU: 80 13 00 00 [04:09:41]Write to MH i2c: E2 08 00 39 04 80 13 00 00 00 00 00 00 B9 [04:09:41]Write i2c OK [04:09:41]MH_I2C_Read... [04:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:41]Read from MH i2c: E2 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 62 00 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 62 00 39 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 57 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [04:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 57 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:09:41]wFMCommunicate OK [04:09:41]SAM_PROTO_GetFieldsCounters done [04:09:41]requested_item shift.num is exist - process it [04:09:41]requested_item shift.opened is exist - process it [04:09:41]req_shift_opened [04:09:41]FM_GetShiftState [04:09:41]SAM_PROTO_GetShiftState [04:09:41]wFMCommunicate request_size=4 [04:09:41]MH_SAM_APDU [04:09:41]CAPDU: 80 13 01 00 [04:09:41]Write to MH i2c: E2 08 00 3A 04 80 13 01 00 00 00 00 00 BB [04:09:41]Write i2c OK [04:09:41]MH_I2C_Read... [04:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:41]Read from MH i2c: E2 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 0E 00 [04:09:41]MH_I2C_Read... [04:09:41]Read from MH i2c: E2 0E 00 3A 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 AE [04:09:41]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:09:41]wFMCommunicate OK [04:09:41]SAM_PROTO_GetShiftState done [04:09:41]FM_GetShiftState done [04:09:41]req_shift_opened done [04:09:41]requested_item shift.open_date is exist - process it [04:09:41]req_shift_open_date [04:09:41]req_shift_open_date done [04:09:41]produce_requested_data done [04:09:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31575,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:09:41]process_action_free close_receipt [04:09:41]json_value_free [04:09:41]json_value_free done [04:09:41]process_json_proto returns [04:09:41]Send response to host [04:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31575,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:09:41]free response buf [04:09:41]execute_script done [04:09:41]execute_script returns [04:09:41]free content buf [04:09:41]Sock 5.Close socket [04:09:41]Sock 5.Thread stoped [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14: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:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:42]accept exits with 6 [04:23:42]New connection [04:23:42]New thread 3067559268 created [04:23:42]Thread 3067415908 joined [04:23:42]Waiting for new connection... [04:23:42] Sock 6.Parse request [04:23:42]Sock 6.Check first char [04:23:42]Sock 6.First char is OK [04:23:42]request: POST /json_proto HTTP/1.0 [04:23:42]Method: POST [04:23:42]URL: /json_proto [04:23:42]Method is POST - this is cgi request [04:23:42]url: /json_proto [04:23:42]query_string will be loaded in cgi processing [04:23:42]execute_cgi json_proto POST (null) [04:23:42]execute_cgi path=json_proto method=POST [04:23:42]POST find Content-Length [04:23:42]Host: 172.17.39.68:8080 [04:23:42]Content-Length: 822 [04:23:42]Content-Type: application/json [04:23:42] [04:23:42]POST finish read [04:23:42]Found Content-Length = 822 [04:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214158", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:42]execute_script... [04:23: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)214158", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:42]POST & json_proto [04:23:42]process_json_proto [04:23:42]json parsed OK: [04:23:42]protocol is kg_v1.0 [04:23:42]action value=close_receipt [04:23:42]process_action close_receipt [04:23:42]cmd_close_receipt [04:23:42]MH_GetDate [04:23:42]Write to MH i2c: F0 00 00 3B 04 2E [04:23:42]Write i2c OK [04:23:42]MH_I2C_Read... [04:23:42]Read from MH i2c: F0 [04:23:42]MH_I2C_Read... [04:23:42]Read from MH i2c: F0 09 00 [04:23:42]MH_I2C_Read... [04:23:42]Read from MH i2c: F0 09 00 3B 04 00 4F A4 94 66 EC 7F 94 66 89 [04:23:42]GetLastDocTimeStamp 1721016578 [04:23:42]current date 1721017423 [04:23:42]FM_GetShiftState [04:23:42]SAM_PROTO_GetShiftState [04:23:42]wFMCommunicate request_size=4 [04:23:42]MH_SAM_APDU [04:23:42]CAPDU: 80 13 01 00 [04:23:42]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [04:23:42]Write i2c OK [04:23:42]MH_I2C_Read... [04:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:42]Read from MH i2c: E2 [04:23:42]MH_I2C_Read... [04:23:42]Read from MH i2c: E2 0E 00 [04:23:42]MH_I2C_Read... [04:23:42]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B0 [04:23:42]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:23:42]wFMCommunicate OK [04:23:42]SAM_PROTO_GetShiftState done [04:23:42]FM_GetShiftState done [04:23:42]opened in 1721001862 [04:23:42]opened+sec_in_day 1721088262 [04:23:42]quantity*price = 14000 [04:23:42]sum+1 = 14001 [04:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 17 15.07.2024 04:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31576 ФПД: 120540826667241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042343&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31576&fm=120540826667241&tin=02508201610067®Number=0000000000098025&sum=14000 0 [04:23:43]StoreToDocumentArchive [04:23:43]shift 370 fd 31576 [04:23:43]save to /storage/0370/doc_00031576 [04:23:43]save last doc name /storage/0370/doc_00031576 to /storage/kkm_last_doc_name [04:23:43]save OK [04:23:43]Clear old archive folders... [04:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=273 [04:23:43]tlvbuf is 01277C50 [04:23:43]SAM_PROTO_ClearQueue [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 09 00 00 [04:23:43]Write to MH i2c: E2 08 00 49 04 80 09 00 00 00 00 00 00 BF [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_ClearQueue done [04:23:43]KKMCreateOFDPacket [04:23:43]OFDProtocolAddRootSTLVToBuf [04:23:43]FM_MakeSignedData [04:23:43]FM_MakeSignedData [04:23:43]SAM_PROTO_SignData [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 0D 01 02 [04:23:43]Write to MH i2c: E2 08 00 4A 04 80 0D 01 02 00 00 00 00 C7 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]wFMCommunicate request_size=255 [04:23:43]MH_SAM_APDU [04:23:43]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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4F A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [04:23:43]Write to MH i2c: E2 02 01 4B 04 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4F A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 2C [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]wFMCommunicate request_size=32 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7B 00 00 35 04 06 00 6D A1 99 27 88 E9 [04:23:44]Write to MH i2c: E2 23 00 4C 04 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7B 00 00 35 04 06 00 6D A1 99 27 88 E9 00 00 41 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [04:23:44]RAPDU: 90 00 [04:23:44]wFMCommunicate OK [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 0D 03 02 [04:23:44]Write to MH i2c: E2 08 00 4D 04 80 0D 03 02 00 00 00 00 CC [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 0B 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 0B 00 4D 04 00 65 02 54 0F EF A3 B6 23 90 00 02 [04:23:44]RAPDU: 65 02 54 0F EF A3 B6 23 90 00 [04:23:44]wFMCommunicate OK [04:23:44]SAM_PROTO_SignData done [04:23:44]FM_MakeSignedData done [04:23:44]CreateOFDProtocolMessage [04:23:44]wFMCommunicate request_size=4 [04:23:44]MH_SAM_APDU [04:23:44]CAPDU: 80 11 00 00 [04:23:44]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:44]Read from MH i2c: E2 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 17 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 27 [04:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:23:44]wFMCommunicate OK [04:23:44]CreateOFDProtocolMessage done [04:23:44]OFDSenderStorePacket 31576 [04:23:44]StoreOFDPacket docnum=31576 [04:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 3F 2B 1D 01 D0 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 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4F A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7B 00 00 35 04 06 00 6D A1 99 27 88 E9 65 02 54 0F EF A3 B6 23 [04:23:44]CheckFolder [04:23:44]dirname=/storage/ofd_packets [04:23:44]CheckFolder done [04:23:44]ProducePacketName [04:23:44]name=ofd_packets/00031576 [04:23:44]NVStorageSaveData ofd_packets/00031576 [04:23:44]File name is /storage/ofd_packets/00031576 [04:23:44]Write 323 bytes [04:23:44]NVStorageSaveData done [04:23:44]OFDSenderStorePacket done [04:23:44]KKMCreateOFDPacket done [04:23:44]NVStorageSaveData kkm_last_timestamp [04:23:44]File name is /storage/kkm_last_timestamp [04:23:44]Write 4 bytes [04:23:44]NVStorageSaveData done [04:23:44]ExternCall_PrintAddStr [04:23:44]wPrintStart [04:23:44]Write to MH i2c: 01 00 00 4F 04 53 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 FF 0F 68 [04:23:44]RasterBufferAndPrint [04:23:44]line Счет N : (3)214158 [04:23:44]line ИНН: 02508201610067 [04:23:44]line Контрольно-Кассовый Чек [04:23:44]line ПРОДАЖА [04:23:44]line Товар: 48743570 [04:23:44]line Сигареты Winston XStyle Blue [04:23:44]line 1.000 * 140.00 [04:23:44]line = 140.00 [04:23:44]line НДС 12% НСП 1% [04:23:44]line > о реализуемом товаре [04:23:44]line ИТОГО: 140.00 [04:23:44]line НСП 1% : 1.24 [04:23:44]line НДС 12% : 14.87 [04:23:44]line Наличными: 0.00 [04:23:44]line Безнал.: 140.00 [04:23:44]line Место: АЗС № 140 "Партнер Нефть" [04:23:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:23:44]line СНО: Общий режим [04:23:44]line Чек 17 15.07.2024 04:23 [04:23:44]line Смена: 370 ФФД: 1.0 [04:23:44]line ЗНМ: 0300000189 [04:23:44]line РНМ: 0000000000098025 [04:23:44]line Версия ККМ: 001 [04:23:44]line Платежная система: АКБ Кыргызстан [04:23:44]line ФМ: 0000000000965389 [04:23:44]line ФД: 31576 [04:23:44]line ФПД: 120540826667241 [04:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042343&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31576&fm=120540826667241&tin=02508201610067®Number=0000000000098025&sum=14000 [04:23:44]OFD Sender: Processing packet 31576 [packets to send 5, broken 4] [04:23:44]ProducePacketName [04:23:44]name=ofd_packets/00031576 [04:23:44]OFD Sender: To server: pG, [04:23:44]CommunicateWithHost lk.salyk.kg:30040 [04:23:44]ConnectInit lk.salyk.kg [04:23:44]line 0 [04:23:44]written 0, free lines is 4095 [04:23:44]Connected sock=7 [04:23:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 3F 2B 1D 01 D0 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 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4F A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7B 00 00 35 04 06 00 6D A1 99 27 88 E9 65 02 54 0F EF A3 B6 23 [04:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B0 27 47 00 0E 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7B 00 00 F4 03 04 00 5D 50 94 66 B6 04 01 00 00 33 54 1D 63 B4 AA 8D 6C [04:23:44]CommunicateWithHost err = 0 [04:23:44]CheckOFDResponse [04:23:44]1017 (14) - 77093643461234 [04:23:44]1041 (16) - 0000000000965389 [04:23:44]1040 (4) - 31576 [04:23:44]1012 (4) - 14.07.2024 22:25 [04:23:44]1206 (1) - 0 [04:23:44]OFD Sender: Remove packet 31576 [04:23:44]ProducePacketName [04:23:44]name=ofd_packets/00031576 [04:23:44]NVStorageDeleteData [04:23:45]Write to MH i2c: 01 00 00 79 04 7D [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 07 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 C9 0C 59 [04:23:45]RasterBufferAndPrint [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]line [04:23:45]written 0, free lines is 3280 [04:23:45]MH_Cut [04:23:45]Write to MH i2c: D1 01 00 80 04 01 56 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: D1 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: D1 01 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: D1 01 00 80 04 00 55 [04:23:45]Write to MH i2c: 01 00 00 81 04 85 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]OFD Sender: No OFD packet to send [04:23:45]*** Cut start [04:23:45]*** Partial cut [04:23:45]*** CUTSNS_PIN = 1 [04:23:45]*** CUTSNS_PIN = 0 [04:23:46]*** Brake cut motor [04:23:46]Read from MH i2c: 01 [04:23:46]MH_I2C_Read... [04:23:46]*** Stop cut motor [04:23:46]*** Cut end [04:23:46]Read from MH i2c: 01 07 00 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 FF 0F 9A [04:23:46]process_action close_receipt done [04:23:46]requested_data is exist [04:23:46]produce_requested_data [04:23:46]requested_item fm.sn is exist - process it [04:23:46]wFMCommunicate request_size=4 [04:23:46]MH_SAM_APDU [04:23:46]CAPDU: 80 11 00 00 [04:23:46]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [04:23:46]Write i2c OK [04:23:46]MH_I2C_Read... [04:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:46]Read from MH i2c: E2 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 17 00 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5B [04:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:23:46]wFMCommunicate OK [04:23:46]requested_item fd.num is exist - process it [04:23:46]SAM_PROTO_GetFieldsCounters [04:23:46]wFMCommunicate request_size=4 [04:23:46]MH_SAM_APDU [04:23:46]CAPDU: 80 13 00 00 [04:23:46]Write to MH i2c: E2 08 00 83 04 80 13 00 00 00 00 00 00 03 [04:23:46]Write i2c OK [04:23:46]MH_I2C_Read... [04:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:46]Read from MH i2c: E2 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 62 00 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 62 00 83 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 58 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [04:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 58 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:46]wFMCommunicate OK [04:23:46]SAM_PROTO_GetFieldsCounters done [04:23:46]requested_item shift.num is exist - process it [04:23:46]requested_item shift.opened is exist - process it [04:23:46]req_shift_opened [04:23:46]FM_GetShiftState [04:23:46]SAM_PROTO_GetShiftState [04:23:46]wFMCommunicate request_size=4 [04:23:46]MH_SAM_APDU [04:23:46]CAPDU: 80 13 01 00 [04:23:46]Write to MH i2c: E2 08 00 84 04 80 13 01 00 00 00 00 00 05 [04:23:46]Write i2c OK [04:23:46]MH_I2C_Read... [04:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:46]Read from MH i2c: E2 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 0E 00 [04:23:46]MH_I2C_Read... [04:23:46]Read from MH i2c: E2 0E 00 84 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F8 [04:23:46]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:23:46]wFMCommunicate OK [04:23:46]SAM_PROTO_GetShiftState done [04:23:46]FM_GetShiftState done [04:23:46]req_shift_opened done [04:23:46]requested_item shift.open_date is exist - process it [04:23:46]req_shift_open_date [04:23:46]req_shift_open_date done [04:23:46]produce_requested_data done [04:23:46]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31576,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:23:46]process_action_free close_receipt [04:23:46]json_value_free [04:23:46]json_value_free done [04:23:46]process_json_proto returns [04:23:46]Send response to host [04:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31576,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:23:46]free response buf [04:23:46]execute_script done [04:23:46]execute_script returns [04:23:46]free content buf [04:23:46]Sock 6.Close socket [04:23:46]Sock 6.Thread stoped [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:28]accept exits with 5 [04:25:28]New connection [04:25:28]New thread 3067415908 created [04:25:28]Thread 3067559268 joined [04:25:28]Waiting for new connection... [04:25:28] Sock 5.Parse request [04:25:28]Sock 5.Check first char [04:25:28]Sock 5.First char is OK [04:25:28]request: POST /json_proto HTTP/1.0 [04:25:28]Method: POST [04:25:28]URL: /json_proto [04:25:28]Method is POST - this is cgi request [04:25:28]url: /json_proto [04:25:28]query_string will be loaded in cgi processing [04:25:28]execute_cgi json_proto POST (null) [04:25:28]execute_cgi path=json_proto method=POST [04:25:28]POST find Content-Length [04:25:28]Host: 172.17.39.68:8080 [04:25:28]Content-Length: 866 [04:25:28]Content-Type: application/json [04:25:28] [04:25:28]POST finish read [04:25:28]Found Content-Length = 866 [04:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214159", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:28]execute_script... [04:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214159", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:28]POST & json_proto [04:25:28]process_json_proto [04:25:28]json parsed OK: [04:25:28]protocol is kg_v1.0 [04:25:28]action value=close_receipt [04:25:28]process_action close_receipt [04:25:28]cmd_close_receipt [04:25:28]MH_GetDate [04:25:28]Write to MH i2c: F0 00 00 85 04 78 [04:25:28]Write i2c OK [04:25:28]MH_I2C_Read... [04:25:28]Read from MH i2c: F0 [04:25:28]MH_I2C_Read... [04:25:28]Read from MH i2c: F0 09 00 [04:25:28]MH_I2C_Read... [04:25:28]Read from MH i2c: F0 09 00 85 04 00 B9 A4 94 66 EC 7F 94 66 3D [04:25:28]GetLastDocTimeStamp 1721017423 [04:25:28]current date 1721017529 [04:25:28]FM_GetShiftState [04:25:28]SAM_PROTO_GetShiftState [04:25:28]wFMCommunicate request_size=4 [04:25:28]MH_SAM_APDU [04:25:28]CAPDU: 80 13 01 00 [04:25:28]Write to MH i2c: E2 08 00 86 04 80 13 01 00 00 00 00 00 07 [04:25:28]Write i2c OK [04:25:28]MH_I2C_Read... [04:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:28]Read from MH i2c: E2 [04:25:28]MH_I2C_Read... [04:25:28]Read from MH i2c: E2 0E 00 [04:25:28]MH_I2C_Read... [04:25:28]Read from MH i2c: E2 0E 00 86 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FA [04:25:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:25:28]wFMCommunicate OK [04:25:28]SAM_PROTO_GetShiftState done [04:25:28]FM_GetShiftState done [04:25:28]opened in 1721001862 [04:25:28]opened+sec_in_day 1721088262 [04:25:28]quantity*price = 17600 [04:25:28]sum+1 = 17601 [04:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 176.00 НСП 1% : 1.56 НДС 12% : 18.69 Наличными: 0.00 Безнал.: 176.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 18 15.07.2024 04:25 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31577 ФПД: 18303454324741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042529&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31577&fm=18303454324741&tin=02508201610067®Number=0000000000098025&sum=17600 0 [04:25:29]StoreToDocumentArchive [04:25:29]shift 370 fd 31577 [04:25:29]save to /storage/0370/doc_00031577 [04:25:29]save last doc name /storage/0370/doc_00031577 to /storage/kkm_last_doc_name [04:25:29]save OK [04:25:29]Clear old archive folders... [04:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=289 [04:25:29]tlvbuf is 0122FC90 [04:25:29]SAM_PROTO_ClearQueue [04:25:29]wFMCommunicate request_size=4 [04:25:29]MH_SAM_APDU [04:25:29]CAPDU: 80 09 00 00 [04:25:29]Write to MH i2c: E2 08 00 93 04 80 09 00 00 00 00 00 00 09 [04:25:29]Write i2c OK [04:25:29]MH_I2C_Read... [04:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:29]Read from MH i2c: E2 [04:25:29]MH_I2C_Read... [04:25:29]Read from MH i2c: E2 03 00 [04:25:29]MH_I2C_Read... [04:25:29]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [04:25:29]RAPDU: 90 00 [04:25:29]wFMCommunicate OK [04:25:29]SAM_PROTO_ClearQueue done [04:25:29]KKMCreateOFDPacket [04:25:29]OFDProtocolAddRootSTLVToBuf [04:25:29]FM_MakeSignedData [04:25:29]FM_MakeSignedData [04:25:29]SAM_PROTO_SignData [04:25:29]wFMCommunicate request_size=4 [04:25:29]MH_SAM_APDU [04:25:29]CAPDU: 80 0D 01 02 [04:25:29]Write to MH i2c: E2 08 00 94 04 80 0D 01 02 00 00 00 00 11 [04:25:29]Write i2c OK [04:25:29]MH_I2C_Read... [04:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:29]Read from MH i2c: E2 [04:25:29]MH_I2C_Read... [04:25:29]Read from MH i2c: E2 03 00 [04:25:29]MH_I2C_Read... [04:25:29]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [04:25:29]RAPDU: 90 00 [04:25:29]wFMCommunicate OK [04:25:29]wFMCommunicate request_size=255 [04:25:29]MH_SAM_APDU [04:25:29]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [04:25:29]Write to MH i2c: E2 02 01 95 04 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 A7 [04:25:29]Write i2c OK [04:25:29]MH_I2C_Read... [04:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:30]Read from MH i2c: E2 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 03 00 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [04:25:30]RAPDU: 90 00 [04:25:30]wFMCommunicate OK [04:25:30]wFMCommunicate request_size=48 [04:25:30]MH_SAM_APDU [04:25:30]CAPDU: 80 0D 02 02 2B 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7B 00 00 35 04 06 00 10 A5 9A E4 A8 05 [04:25:30]Write to MH i2c: E2 33 00 96 04 80 0D 02 02 2B 00 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7B 00 00 35 04 06 00 10 A5 9A E4 A8 05 00 00 CA [04:25:30]Write i2c OK [04:25:30]MH_I2C_Read... [04:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:30]Read from MH i2c: E2 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 03 00 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [04:25:30]RAPDU: 90 00 [04:25:30]wFMCommunicate OK [04:25:30]wFMCommunicate request_size=4 [04:25:30]MH_SAM_APDU [04:25:30]CAPDU: 80 0D 03 02 [04:25:30]Write to MH i2c: E2 08 00 97 04 80 0D 03 02 00 00 00 00 16 [04:25:30]Write i2c OK [04:25:30]MH_I2C_Read... [04:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:30]Read from MH i2c: E2 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 0B 00 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 0B 00 97 04 00 BA 0B 54 2A F7 50 CF F1 90 00 61 [04:25:30]RAPDU: BA 0B 54 2A F7 50 CF F1 90 00 [04:25:30]wFMCommunicate OK [04:25:30]SAM_PROTO_SignData done [04:25:30]FM_MakeSignedData done [04:25:30]CreateOFDProtocolMessage [04:25:30]wFMCommunicate request_size=4 [04:25:30]MH_SAM_APDU [04:25:30]CAPDU: 80 11 00 00 [04:25:30]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [04:25:30]Write i2c OK [04:25:30]MH_I2C_Read... [04:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:30]Read from MH i2c: E2 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 17 00 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 71 [04:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:25:30]wFMCommunicate OK [04:25:30]CreateOFDProtocolMessage done [04:25:30]OFDSenderStorePacket 31577 [04:25:30]StoreOFDPacket docnum=31577 [04:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 01 00 00 32 DD 2D 01 19 A7 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7B 00 00 35 04 06 00 10 A5 9A E4 A8 05 BA 0B 54 2A F7 50 CF F1 [04:25:30]CheckFolder [04:25:30]dirname=/storage/ofd_packets [04:25:30]CheckFolder done [04:25:30]ProducePacketName [04:25:30]name=ofd_packets/00031577 [04:25:30]NVStorageSaveData ofd_packets/00031577 [04:25:30]File name is /storage/ofd_packets/00031577 [04:25:30]Write 339 bytes [04:25:30]NVStorageSaveData done [04:25:30]OFDSenderStorePacket done [04:25:30]KKMCreateOFDPacket done [04:25:30]NVStorageSaveData kkm_last_timestamp [04:25:30]File name is /storage/kkm_last_timestamp [04:25:30]Write 4 bytes [04:25:30]NVStorageSaveData done [04:25:30]ExternCall_PrintAddStr [04:25:30]wPrintStart [04:25:30]Write to MH i2c: 01 00 00 99 04 9D [04:25:30]Write i2c OK [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: 01 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: 01 07 00 [04:25:30]MH_I2C_Read... [04:25:30]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 FF 0F B2 [04:25:30]RasterBufferAndPrint [04:25:30]line Счет N : (3)214159 [04:25:30]line ИНН: 02508201610067 [04:25:30]line Контрольно-Кассовый Чек [04:25:30]line ПРОДАЖА [04:25:30]line Товар: 4700000481514 [04:25:30]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [04:25:30]line 1.000 * 176.00 [04:25:30]line = 176.00 [04:25:30]line НДС 12% НСП 1% [04:25:30]line > о реализуемом товаре [04:25:30]line ИТОГО: 176.00 [04:25:30]line НСП 1% : 1.56 [04:25:30]line НДС 12% : 18.69 [04:25:30]line Наличными: 0.00 [04:25:30]line Безнал.: 176.00 [04:25:30]line Место: АЗС № 140 "Партнер Нефть" [04:25:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:25:30]line СНО: Общий режим [04:25:30]line Чек 18 15.07.2024 04:25 [04:25:30]line Смена: 370 ФФД: 1.0 [04:25:30]line ЗНМ: 0300000189 [04:25:30]line РНМ: 0000000000098025 [04:25:30]line Версия ККМ: 001 [04:25:30]line Платежная система: АКБ Кыргызстан [04:25:30]line ФМ: 0000000000965389 [04:25:30]line ФД: 31577 [04:25:30]line ФПД: 18303454324741 [04:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042529&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31577&fm=18303454324741&tin=02508201610067®Number=0000000000098025&sum=17600 [04:25:30]line 0 [04:25:30]OFD Sender: Processing packet 31577 [packets to send 5, broken 4] [04:25:30]ProducePacketName [04:25:30]name=ofd_packets/00031577 [04:25:30]OFD Sender: To server: pG, [04:25:30]CommunicateWithHost lk.salyk.kg:30040 [04:25:30]ConnectInit lk.salyk.kg [04:25:30]written 0, free lines is 4095 [04:25:30]Connected sock=7 [04:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 01 00 00 32 DD 2D 01 19 A7 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 A4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7B 00 00 35 04 06 00 10 A5 9A E4 A8 05 BA 0B 54 2A F7 50 CF F1 [04:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 84 E3 47 00 20 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7B 00 00 F4 03 04 00 C7 50 94 66 B6 04 01 00 00 04 B8 68 AF 0D 0F 40 49 [04:25:30]CommunicateWithHost err = 0 [04:25:30]CheckOFDResponse [04:25:30]1017 (14) - 77093643461234 [04:25:30]1041 (16) - 0000000000965389 [04:25:30]1040 (4) - 31577 [04:25:30]1012 (4) - 14.07.2024 22:27 [04:25:30]1206 (1) - 0 [04:25:30]OFD Sender: Remove packet 31577 [04:25:30]ProducePacketName [04:25:30]name=ofd_packets/00031577 [04:25:30]NVStorageDeleteData [04:25:31]Write to MH i2c: 01 00 00 C4 04 C8 [04:25:31]Write i2c OK [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: 01 [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: 01 07 00 [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 BA 0C 95 [04:25:31]RasterBufferAndPrint [04:25:31]line [04:25:31]line [04:25:31]line [04:25:31]line [04:25:31]line [04:25:31]written 0, free lines is 3265 [04:25:31]MH_Cut [04:25:31]Write to MH i2c: D1 01 00 CB 04 01 A1 [04:25:31]Write i2c OK [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: D1 [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: D1 01 00 [04:25:31]MH_I2C_Read... [04:25:31]Read from MH i2c: D1 01 00 CB 04 00 A0 [04:25:31]Write to MH i2c: 01 00 00 CC 04 D0 [04:25:31]Write i2c OK [04:25:31]MH_I2C_Read... [04:25:31]OFD Sender: No OFD packet to send [04:25:31]*** Cut start [04:25:31]*** Partial cut [04:25:31]*** CUTSNS_PIN = 1 [04:25:31]*** CUTSNS_PIN = 0 [04:25:32]*** Brake cut motor [04:25:32]Read from MH i2c: 01 [04:25:32]MH_I2C_Read... [04:25:32]*** Stop cut motor [04:25:32]*** Cut end [04:25:32]Read from MH i2c: 01 07 00 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [04:25:32]process_action close_receipt done [04:25:32]requested_data is exist [04:25:32]produce_requested_data [04:25:32]requested_item fm.sn is exist - process it [04:25:32]wFMCommunicate request_size=4 [04:25:32]MH_SAM_APDU [04:25:32]CAPDU: 80 11 00 00 [04:25:32]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [04:25:32]Write i2c OK [04:25:32]MH_I2C_Read... [04:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:32]Read from MH i2c: E2 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 17 00 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A6 [04:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:25:32]wFMCommunicate OK [04:25:32]requested_item fd.num is exist - process it [04:25:32]SAM_PROTO_GetFieldsCounters [04:25:32]wFMCommunicate request_size=4 [04:25:32]MH_SAM_APDU [04:25:32]CAPDU: 80 13 00 00 [04:25:32]Write to MH i2c: E2 08 00 CE 04 80 13 00 00 00 00 00 00 4E [04:25:32]Write i2c OK [04:25:32]MH_I2C_Read... [04:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:32]Read from MH i2c: E2 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 62 00 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 62 00 CE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 59 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [04:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 59 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:25:32]wFMCommunicate OK [04:25:32]SAM_PROTO_GetFieldsCounters done [04:25:32]requested_item shift.num is exist - process it [04:25:32]requested_item shift.opened is exist - process it [04:25:32]req_shift_opened [04:25:32]FM_GetShiftState [04:25:32]SAM_PROTO_GetShiftState [04:25:32]wFMCommunicate request_size=4 [04:25:32]MH_SAM_APDU [04:25:32]CAPDU: 80 13 01 00 [04:25:32]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [04:25:32]Write i2c OK [04:25:32]MH_I2C_Read... [04:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:32]Read from MH i2c: E2 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 0E 00 [04:25:32]MH_I2C_Read... [04:25:32]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 43 [04:25:32]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:25:32]wFMCommunicate OK [04:25:32]SAM_PROTO_GetShiftState done [04:25:32]FM_GetShiftState done [04:25:32]req_shift_opened done [04:25:32]requested_item shift.open_date is exist - process it [04:25:32]req_shift_open_date [04:25:32]req_shift_open_date done [04:25:32]produce_requested_data done [04:25:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31577,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:25:32]process_action_free close_receipt [04:25:32]json_value_free [04:25:32]json_value_free done [04:25:32]process_json_proto returns [04:25:32]Send response to host [04:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31577,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:25:32]free response buf [04:25:32]execute_script done [04:25:32]execute_script returns [04:25:32]free content buf [04:25:32]Sock 5.Close socket [04:25:32]Sock 5.Thread stoped [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:27]accept exits with 6 [04:28:27]New connection [04:28:27]New thread 3067559268 created [04:28:27]Thread 3067415908 joined [04:28:27]Waiting for new connection... [04:28:27] Sock 6.Parse request [04:28:27]Sock 6.Check first char [04:28:27]Sock 6.First char is OK [04:28:27]request: POST /json_proto HTTP/1.0 [04:28:27]Method: POST [04:28:27]URL: /json_proto [04:28:27]Method is POST - this is cgi request [04:28:27]url: /json_proto [04:28:27]query_string will be loaded in cgi processing [04:28:27]execute_cgi json_proto POST (null) [04:28:27]execute_cgi path=json_proto method=POST [04:28:27]POST find Content-Length [04:28:27]Host: 172.17.39.68:8080 [04:28:27]Content-Length: 654 [04:28:27]Content-Type: application/json [04:28:27] [04:28:27]POST finish read [04:28:27]Found Content-Length = 654 [04:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214160", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [04:28:27]execute_script... [04:28:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214160", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [04:28:27]POST & json_proto [04:28:27]process_json_proto [04:28:27]json parsed OK: [04:28:27]protocol is kg_v1.0 [04:28:27]action value=close_receipt [04:28:27]process_action close_receipt [04:28:27]cmd_close_receipt [04:28:27]MH_GetDate [04:28:27]Write to MH i2c: F0 00 00 D0 04 C3 [04:28:27]Write i2c OK [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 09 00 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 09 00 D0 04 00 6C A5 94 66 EC 7F 94 66 3C [04:28:27]GetLastDocTimeStamp 1721017529 [04:28:27]current date 1721017708 [04:28:27]FM_GetShiftState [04:28:27]SAM_PROTO_GetShiftState [04:28:27]wFMCommunicate request_size=4 [04:28:27]MH_SAM_APDU [04:28:27]CAPDU: 80 13 01 00 [04:28:27]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [04:28:27]Write i2c OK [04:28:27]MH_I2C_Read... [04:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:27]Read from MH i2c: E2 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: E2 0E 00 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 45 [04:28:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:28:27]wFMCommunicate OK [04:28:27]SAM_PROTO_GetShiftState done [04:28:27]FM_GetShiftState done [04:28:27]opened in 1721001862 [04:28:27]opened+sec_in_day 1721088262 [04:28:27]quantity*price = 9500 [04:28:27]sum+1 = 9501 [04:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 19 15.07.2024 04:28 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31578 ФПД: 273737920381991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042828&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31578&fm=273737920381991&tin=02508201610067®Number=0000000000098025&sum=9500 0 [04:28:28]StoreToDocumentArchive [04:28:28]shift 370 fd 31578 [04:28:28]save to /storage/0370/doc_00031578 [04:28:28]save last doc name /storage/0370/doc_00031578 to /storage/kkm_last_doc_name [04:28:28]save OK [04:28:28]Clear old archive folders... [04:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=293 [04:28:28]tlvbuf is 01267330 [04:28:28]SAM_PROTO_ClearQueue [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 09 00 00 [04:28:28]Write to MH i2c: E2 08 00 DE 04 80 09 00 00 00 00 00 00 54 [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]SAM_PROTO_ClearQueue done [04:28:28]KKMCreateOFDPacket [04:28:28]OFDProtocolAddRootSTLVToBuf [04:28:28]FM_MakeSignedData [04:28:28]FM_MakeSignedData [04:28:28]SAM_PROTO_SignData [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 0D 01 02 [04:28:28]Write to MH i2c: E2 08 00 DF 04 80 0D 01 02 00 00 00 00 5C [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]wFMCommunicate request_size=255 [04:28:28]MH_SAM_APDU [04:28: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 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 13 00 00 00 F4 03 04 00 6C A5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [04:28:28]Write to MH i2c: E2 02 01 E0 04 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 13 00 00 00 F4 03 04 00 6C A5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 8D [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:29]Read from MH i2c: E2 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 03 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [04:28:29]RAPDU: 90 00 [04:28:29]wFMCommunicate OK [04:28:29]wFMCommunicate request_size=52 [04:28:29]MH_SAM_APDU [04:28:29]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7B 00 00 35 04 06 00 F8 F6 93 81 84 27 [04:28:29]Write to MH i2c: E2 37 00 E1 04 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7B 00 00 35 04 06 00 F8 F6 93 81 84 27 00 00 AB [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:29]Read from MH i2c: E2 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 03 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [04:28:29]RAPDU: 90 00 [04:28:29]wFMCommunicate OK [04:28:29]wFMCommunicate request_size=4 [04:28:29]MH_SAM_APDU [04:28:29]CAPDU: 80 0D 03 02 [04:28:29]Write to MH i2c: E2 08 00 E2 04 80 0D 03 02 00 00 00 00 61 [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:29]Read from MH i2c: E2 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 0B 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 0B 00 E2 04 00 B8 AE 10 34 3A E9 13 A2 90 00 E4 [04:28:29]RAPDU: B8 AE 10 34 3A E9 13 A2 90 00 [04:28:29]wFMCommunicate OK [04:28:29]SAM_PROTO_SignData done [04:28:29]FM_MakeSignedData done [04:28:29]CreateOFDProtocolMessage [04:28:29]wFMCommunicate request_size=4 [04:28:29]MH_SAM_APDU [04:28:29]CAPDU: 80 11 00 00 [04:28:29]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:29]Read from MH i2c: E2 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 17 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BC [04:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:28:29]wFMCommunicate OK [04:28:29]CreateOFDProtocolMessage done [04:28:29]OFDSenderStorePacket 31578 [04:28:29]StoreOFDPacket docnum=31578 [04:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 F5 A2 31 01 90 6A 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 13 00 00 00 F4 03 04 00 6C A5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7B 00 00 35 04 06 00 F8 F6 93 81 84 27 B8 AE 10 34 3A E9 13 A2 [04:28:29]CheckFolder [04:28:29]dirname=/storage/ofd_packets [04:28:29]CheckFolder done [04:28:29]ProducePacketName [04:28:29]name=ofd_packets/00031578 [04:28:29]NVStorageSaveData ofd_packets/00031578 [04:28:29]File name is /storage/ofd_packets/00031578 [04:28:29]Write 343 bytes [04:28:29]NVStorageSaveData done [04:28:29]OFDSenderStorePacket done [04:28:29]KKMCreateOFDPacket done [04:28:29]NVStorageSaveData kkm_last_timestamp [04:28:29]File name is /storage/kkm_last_timestamp [04:28:29]Write 4 bytes [04:28:29]NVStorageSaveData done [04:28:29]ExternCall_PrintAddStr [04:28:29]wPrintStart [04:28:29]Write to MH i2c: 01 00 00 E4 04 E8 [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 07 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [04:28:29]RasterBufferAndPrint [04:28:29]line Счет N : (3)214160 [04:28:29]line ИНН: 02508201610067 [04:28:29]line Контрольно-Кассовый Чек [04:28:29]line ПРОДАЖА [04:28:29]line Товар: 4700000480050 [04:28:29]line Напиток Nitro Energy эн green ж/б 0,45л [04:28:29]line 1.000 * 95.00 [04:28:29]line = 95.00 [04:28:29]line НДС 12% НСП 1% [04:28:29]line > о реализуемом товаре [04:28:29]line ИТОГО: 95.00 [04:28:29]line НСП 1% : 0.84 [04:28:29]line НДС 12% : 10.09 [04:28:29]line Наличными: 95.00 [04:28:29]line Безнал.: 0.00 [04:28:29]line Место: АЗС № 140 "Партнер Нефть" [04:28:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:28:29]line СНО: Общий режим [04:28:29]line Чек 19 15.07.2024 04:28 [04:28:29]line Смена: 370 ФФД: 1.0 [04:28:29]line ЗНМ: 0300000189 [04:28:29]line РНМ: 0000000000098025 [04:28:29]line Версия ККМ: 001 [04:28:29]line ФМ: 0000000000965389 [04:28:29]line ФД: 31578 [04:28:29]line ФПД: 273737920381991 [04:28:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T042828&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31578&fm=273737920381991&tin=02508201610067®Number=0000000000098025&sum=9500 [04:28:29]line 0 [04:28:29]OFD Sender: Processing packet 31578 [packets to send 5, broken 4] [04:28:29]ProducePacketName [04:28:29]name=ofd_packets/00031578 [04:28:29]OFD Sender: To server: pG, [04:28:29]CommunicateWithHost lk.salyk.kg:30040 [04:28:29]ConnectInit lk.salyk.kg [04:28:29]written 0, free lines is 4095 [04:28:29]Connected sock=7 [04:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 F5 A2 31 01 90 6A 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 13 00 00 00 F4 03 04 00 6C A5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7B 00 00 35 04 06 00 F8 F6 93 81 84 27 B8 AE 10 34 3A E9 13 A2 [04:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5F AB 47 00 94 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7B 00 00 F4 03 04 00 7A 51 94 66 B6 04 01 00 00 34 A4 FE 30 6E 2D 98 84 [04:28:29]CommunicateWithHost err = 0 [04:28:29]CheckOFDResponse [04:28:29]1017 (14) - 77093643461234 [04:28:29]1041 (16) - 0000000000965389 [04:28:29]1040 (4) - 31578 [04:28:29]1012 (4) - 14.07.2024 22:30 [04:28:29]1206 (1) - 0 [04:28:29]OFD Sender: Remove packet 31578 [04:28:29]ProducePacketName [04:28:29]name=ofd_packets/00031578 [04:28:29]NVStorageDeleteData [04:28:30]Write to MH i2c: 01 00 00 0D 05 12 [04:28:30]Write i2c OK [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: 01 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: 01 07 00 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 EC 0C 11 [04:28:30]RasterBufferAndPrint [04:28:30]line [04:28:30]line [04:28:30]line [04:28:30]line [04:28:30]line [04:28:30]written 0, free lines is 3314 [04:28:30]MH_Cut [04:28:30]Write to MH i2c: D1 01 00 14 05 01 EB [04:28:30]Write i2c OK [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: D1 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: D1 01 00 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: D1 01 00 14 05 00 EA [04:28:30]Write to MH i2c: 01 00 00 15 05 1A [04:28:30]Write i2c OK [04:28:30]MH_I2C_Read... [04:28:30]OFD Sender: No OFD packet to send [04:28:30]*** Cut start [04:28:30]*** Partial cut [04:28:30]*** CUTSNS_PIN = 1 [04:28:30]*** CUTSNS_PIN = 0 [04:28:31]*** Brake cut motor [04:28:31]Read from MH i2c: 01 [04:28:31]MH_I2C_Read... [04:28:31]*** Stop cut motor [04:28:31]*** Cut end [04:28:31]Read from MH i2c: 01 07 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 FF 0F 2F [04:28:31]process_action close_receipt done [04:28:31]requested_data is exist [04:28:31]produce_requested_data [04:28:31]requested_item fm.sn is exist - process it [04:28:31]wFMCommunicate request_size=4 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 11 00 00 [04:28:31]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:31]Read from MH i2c: E2 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 17 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F0 [04:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:28:31]wFMCommunicate OK [04:28:31]requested_item fd.num is exist - process it [04:28:31]SAM_PROTO_GetFieldsCounters [04:28:31]wFMCommunicate request_size=4 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 13 00 00 [04:28:31]Write to MH i2c: E2 08 00 17 05 80 13 00 00 00 00 00 00 98 [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:31]Read from MH i2c: E2 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 62 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 62 00 17 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [04:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:28:31]wFMCommunicate OK [04:28:31]SAM_PROTO_GetFieldsCounters done [04:28:31]requested_item shift.num is exist - process it [04:28:31]requested_item shift.opened is exist - process it [04:28:31]req_shift_opened [04:28:31]FM_GetShiftState [04:28:31]SAM_PROTO_GetShiftState [04:28:31]wFMCommunicate request_size=4 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 13 01 00 [04:28:31]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:31]Read from MH i2c: E2 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 0E 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8D [04:28:31]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:28:31]wFMCommunicate OK [04:28:31]SAM_PROTO_GetShiftState done [04:28:31]FM_GetShiftState done [04:28:31]req_shift_opened done [04:28:31]requested_item shift.open_date is exist - process it [04:28:31]req_shift_open_date [04:28:31]req_shift_open_date done [04:28:31]produce_requested_data done [04:28:31]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31578,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:28:31]process_action_free close_receipt [04:28:31]json_value_free [04:28:31]json_value_free done [04:28:31]process_json_proto returns [04:28:31]Send response to host [04:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31578,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:28:31]free response buf [04:28:31]execute_script done [04:28:31]execute_script returns [04:28:31]free content buf [04:28:31]Sock 6.Close socket [04:28:31]Sock 6.Thread stoped [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:44]accept exits with 5 [04:49:44]New connection [04:49:44]New thread 3067415908 created [04:49:44]Thread 3067559268 joined [04:49:44]Waiting for new connection... [04:49:44] Sock 5.Parse request [04:49:44]Sock 5.Check first char [04:49:44]Sock 5.First char is OK [04:49:44]request: POST /json_proto HTTP/1.0 [04:49:44]Method: POST [04:49:44]URL: /json_proto [04:49:44]Method is POST - this is cgi request [04:49:44]url: /json_proto [04:49:44]query_string will be loaded in cgi processing [04:49:44]execute_cgi json_proto POST (null) [04:49:44]execute_cgi path=json_proto method=POST [04:49:44]POST find Content-Length [04:49:44]Host: 172.17.39.68:8080 [04:49:44]Content-Length: 827 [04:49:44]Content-Type: application/json [04:49:44] [04:49:44]POST finish read [04:49:44]Found Content-Length = 827 [04:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214161", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:49:44]execute_script... [04:49: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)214161", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:49:44]POST & json_proto [04:49:44]process_json_proto [04:49:44]json parsed OK: [04:49:44]protocol is kg_v1.0 [04:49:44]action value=close_receipt [04:49:44]process_action close_receipt [04:49:44]cmd_close_receipt [04:49:44]MH_GetDate [04:49:44]Write to MH i2c: F0 00 00 19 05 0D [04:49:44]Write i2c OK [04:49:44]MH_I2C_Read... [04:49:44]Read from MH i2c: F0 [04:49:44]MH_I2C_Read... [04:49:44]Read from MH i2c: F0 09 00 [04:49:44]MH_I2C_Read... [04:49:44]Read from MH i2c: F0 09 00 19 05 00 69 AA 94 66 EC 7F 94 66 88 [04:49:44]GetLastDocTimeStamp 1721017708 [04:49:44]current date 1721018985 [04:49:44]FM_GetShiftState [04:49:44]SAM_PROTO_GetShiftState [04:49:44]wFMCommunicate request_size=4 [04:49:44]MH_SAM_APDU [04:49:44]CAPDU: 80 13 01 00 [04:49:44]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [04:49:44]Write i2c OK [04:49:44]MH_I2C_Read... [04:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:44]Read from MH i2c: E2 [04:49:44]MH_I2C_Read... [04:49:44]Read from MH i2c: E2 0E 00 [04:49:44]MH_I2C_Read... [04:49:44]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8F [04:49:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:49:44]wFMCommunicate OK [04:49:44]SAM_PROTO_GetShiftState done [04:49:44]FM_GetShiftState done [04:49:44]opened in 1721001862 [04:49:44]opened+sec_in_day 1721088262 [04:49:44]quantity*price = 13800 [04:49:44]sum+1 = 13801 [04:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 20 15.07.2024 04:49 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31579 ФПД: 208271543669841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T044945&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31579&fm=208271543669841&tin=02508201610067®Number=0000000000098025&sum=13800 0 [04:49:45]StoreToDocumentArchive [04:49:45]shift 370 fd 31579 [04:49:45]save to /storage/0370/doc_00031579 [04:49:45]save last doc name /storage/0370/doc_00031579 to /storage/kkm_last_doc_name [04:49:45]save OK [04:49:45]Clear old archive folders... [04:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=278 [04:49:45]tlvbuf is 0122F850 [04:49:45]SAM_PROTO_ClearQueue [04:49:45]wFMCommunicate request_size=4 [04:49:45]MH_SAM_APDU [04:49:45]CAPDU: 80 09 00 00 [04:49:45]Write to MH i2c: E2 08 00 27 05 80 09 00 00 00 00 00 00 9E [04:49:45]Write i2c OK [04:49:45]MH_I2C_Read... [04:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:49:45]Read from MH i2c: E2 [04:49:45]MH_I2C_Read... [04:49:45]Read from MH i2c: E2 03 00 [04:49:45]MH_I2C_Read... [04:49:45]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [04:49:45]RAPDU: 90 00 [04:49:45]wFMCommunicate OK [04:49:45]SAM_PROTO_ClearQueue done [04:49:45]KKMCreateOFDPacket [04:49:45]OFDProtocolAddRootSTLVToBuf [04:49:45]FM_MakeSignedData [04:49:45]FM_MakeSignedData [04:49:45]SAM_PROTO_SignData [04:49:45]wFMCommunicate request_size=4 [04:49:45]MH_SAM_APDU [04:49:45]CAPDU: 80 0D 01 02 [04:49:45]Write to MH i2c: E2 08 00 28 05 80 0D 01 02 00 00 00 00 A6 [04:49:45]Write i2c OK [04:49:45]MH_I2C_Read... [04:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:49:45]Read from MH i2c: E2 [04:49:45]MH_I2C_Read... [04:49:45]Read from MH i2c: E2 03 00 [04:49:45]MH_I2C_Read... [04:49:45]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [04:49:45]RAPDU: 90 00 [04:49:45]wFMCommunicate OK [04:49:45]wFMCommunicate request_size=255 [04:49:45]MH_SAM_APDU [04:49:45]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 AA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [04:49:45]Write to MH i2c: E2 02 01 29 05 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 AA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 FE [04:49:45]Write i2c OK [04:49:45]MH_I2C_Read... [04:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:46]Read from MH i2c: E2 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 03 00 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [04:49:46]RAPDU: 90 00 [04:49:46]wFMCommunicate OK [04:49:46]wFMCommunicate request_size=37 [04:49:46]MH_SAM_APDU [04:49:46]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7B 00 00 35 04 06 00 BD 6B FF 60 94 51 [04:49:46]Write to MH i2c: E2 28 00 2A 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7B 00 00 35 04 06 00 BD 6B FF 60 94 51 00 00 4A [04:49:46]Write i2c OK [04:49:46]MH_I2C_Read... [04:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:46]Read from MH i2c: E2 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 03 00 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [04:49:46]RAPDU: 90 00 [04:49:46]wFMCommunicate OK [04:49:46]wFMCommunicate request_size=4 [04:49:46]MH_SAM_APDU [04:49:46]CAPDU: 80 0D 03 02 [04:49:46]Write to MH i2c: E2 08 00 2B 05 80 0D 03 02 00 00 00 00 AB [04:49:46]Write i2c OK [04:49:46]MH_I2C_Read... [04:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:49:46]Read from MH i2c: E2 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 0B 00 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 0B 00 2B 05 00 10 89 9D 54 D4 F5 DD 52 90 00 2E [04:49:46]RAPDU: 10 89 9D 54 D4 F5 DD 52 90 00 [04:49:46]wFMCommunicate OK [04:49:46]SAM_PROTO_SignData done [04:49:46]FM_MakeSignedData done [04:49:46]CreateOFDProtocolMessage [04:49:46]wFMCommunicate request_size=4 [04:49:46]MH_SAM_APDU [04:49:46]CAPDU: 80 11 00 00 [04:49:46]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [04:49:46]Write i2c OK [04:49:46]MH_I2C_Read... [04:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:46]Read from MH i2c: E2 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 17 00 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 06 [04:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:49:46]wFMCommunicate OK [04:49:46]CreateOFDProtocolMessage done [04:49:46]OFDSenderStorePacket 31579 [04:49:46]StoreOFDPacket docnum=31579 [04:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 DA 32 22 01 8E CB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 AA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7B 00 00 35 04 06 00 BD 6B FF 60 94 51 10 89 9D 54 D4 F5 DD 52 [04:49:46]CheckFolder [04:49:46]dirname=/storage/ofd_packets [04:49:46]CheckFolder done [04:49:46]ProducePacketName [04:49:46]name=ofd_packets/00031579 [04:49:46]NVStorageSaveData ofd_packets/00031579 [04:49:46]File name is /storage/ofd_packets/00031579 [04:49:46]Write 328 bytes [04:49:46]NVStorageSaveData done [04:49:46]OFDSenderStorePacket done [04:49:46]KKMCreateOFDPacket done [04:49:46]NVStorageSaveData kkm_last_timestamp [04:49:46]File name is /storage/kkm_last_timestamp [04:49:46]Write 4 bytes [04:49:46]NVStorageSaveData done [04:49:46]ExternCall_PrintAddStr [04:49:46]wPrintStart [04:49:46]Write to MH i2c: 01 00 00 2D 05 32 [04:49:46]Write i2c OK [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: 01 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: 01 07 00 [04:49:46]MH_I2C_Read... [04:49:46]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 FF 0F 47 [04:49:46]RasterBufferAndPrint [04:49:46]line Счет N : (3)214161 [04:49:46]line ИНН: 02508201610067 [04:49:46]line Контрольно-Кассовый Чек [04:49:46]line ПРОДАЖА [04:49:46]line Товар: 4640030092499 [04:49:46]line Сигареты ESSE SENSE Himalaya [04:49:46]line 1.000 * 138.00 [04:49:46]line = 138.00 [04:49:46]line НДС 12% НСП 1% [04:49:46]line > о реализуемом товаре [04:49:46]line ИТОГО: 138.00 [04:49:46]line НСП 1% : 1.22 [04:49:46]line НДС 12% : 14.65 [04:49:46]line Наличными: 0.00 [04:49:46]line Безнал.: 138.00 [04:49:46]line Место: АЗС № 140 "Партнер Нефть" [04:49:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:49:46]line СНО: Общий режим [04:49:46]line Чек 20 15.07.2024 04:49 [04:49:46]line Смена: 370 ФФД: 1.0 [04:49:46]line ЗНМ: 0300000189 [04:49:46]line РНМ: 0000000000098025 [04:49:46]line Версия ККМ: 001 [04:49:46]line Платежная система: АКБ Кыргызстан [04:49:46]line ФМ: 0000000000965389 [04:49:46]line ФД: 31579 [04:49:46]line ФПД: 208271543669841 [04:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T044945&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31579&fm=208271543669841&tin=02508201610067®Number=0000000000098025&sum=13800 [04:49:46]line 0 [04:49:46]OFD Sender: Processing packet 31579 [packets to send 5, broken 4] [04:49:46]ProducePacketName [04:49:46]name=ofd_packets/00031579 [04:49:46]OFD Sender: To server: pG, [04:49:46]CommunicateWithHost lk.salyk.kg:30040 [04:49:46]ConnectInit lk.salyk.kg [04:49:46]written 0, free lines is 4095 [04:49:46]Connected sock=7 [04:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 DA 32 22 01 8E CB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 AA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7B 00 00 35 04 06 00 BD 6B FF 60 94 51 10 89 9D 54 D4 F5 DD 52 [04:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2B 1A 47 00 2B CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7B 00 00 F4 03 04 00 77 56 94 66 B6 04 01 00 00 B7 F6 4A 1A 62 AB A7 DB [04:49:47]CommunicateWithHost err = 0 [04:49:47]CheckOFDResponse [04:49:47]1017 (14) - 77093643461234 [04:49:47]1041 (16) - 0000000000965389 [04:49:47]1040 (4) - 31579 [04:49:47]1012 (4) - 14.07.2024 22:51 [04:49:47]1206 (1) - 0 [04:49:47]OFD Sender: Remove packet 31579 [04:49:47]ProducePacketName [04:49:47]name=ofd_packets/00031579 [04:49:47]NVStorageDeleteData [04:49:47]Write to MH i2c: 01 00 00 58 05 5D [04:49:47]Write i2c OK [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: 01 [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: 01 07 00 [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 C7 0C 37 [04:49:47]RasterBufferAndPrint [04:49:47]line [04:49:47]line [04:49:47]line [04:49:47]line [04:49:47]line [04:49:47]written 0, free lines is 3277 [04:49:47]MH_Cut [04:49:47]Write to MH i2c: D1 01 00 5F 05 01 36 [04:49:47]Write i2c OK [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: D1 [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: D1 01 00 [04:49:47]MH_I2C_Read... [04:49:47]Read from MH i2c: D1 01 00 5F 05 00 35 [04:49:47]Write to MH i2c: 01 00 00 60 05 65 [04:49:47]Write i2c OK [04:49:47]MH_I2C_Read... [04:49:47]OFD Sender: No OFD packet to send [04:49:47]*** Cut start [04:49:47]*** Partial cut [04:49:47]*** CUTSNS_PIN = 1 [04:49:47]*** CUTSNS_PIN = 0 [04:49:48]*** Brake cut motor [04:49:48]Read from MH i2c: 01 [04:49:48]MH_I2C_Read... [04:49:48]*** Stop cut motor [04:49:48]*** Cut end [04:49:48]Read from MH i2c: 01 07 00 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [04:49:48]process_action close_receipt done [04:49:48]requested_data is exist [04:49:48]produce_requested_data [04:49:48]requested_item fm.sn is exist - process it [04:49:48]wFMCommunicate request_size=4 [04:49:48]MH_SAM_APDU [04:49:48]CAPDU: 80 11 00 00 [04:49:48]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [04:49:48]Write i2c OK [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 [04:49:48]MH_I2C_Read... [04:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:48]Read from MH i2c: E2 17 00 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3B [04:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:49:48]wFMCommunicate OK [04:49:48]requested_item fd.num is exist - process it [04:49:48]SAM_PROTO_GetFieldsCounters [04:49:48]wFMCommunicate request_size=4 [04:49:48]MH_SAM_APDU [04:49:48]CAPDU: 80 13 00 00 [04:49:48]Write to MH i2c: E2 08 00 62 05 80 13 00 00 00 00 00 00 E3 [04:49:48]Write i2c OK [04:49:48]MH_I2C_Read... [04:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:49:48]Read from MH i2c: E2 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 62 00 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 62 00 62 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [04:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:49:48]wFMCommunicate OK [04:49:48]SAM_PROTO_GetFieldsCounters done [04:49:48]requested_item shift.num is exist - process it [04:49:48]requested_item shift.opened is exist - process it [04:49:48]req_shift_opened [04:49:48]FM_GetShiftState [04:49:48]SAM_PROTO_GetShiftState [04:49:48]wFMCommunicate request_size=4 [04:49:48]MH_SAM_APDU [04:49:48]CAPDU: 80 13 01 00 [04:49:48]Write to MH i2c: E2 08 00 63 05 80 13 01 00 00 00 00 00 E5 [04:49:48]Write i2c OK [04:49:48]MH_I2C_Read... [04:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:48]Read from MH i2c: E2 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 0E 00 [04:49:48]MH_I2C_Read... [04:49:48]Read from MH i2c: E2 0E 00 63 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 D8 [04:49:48]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:49:48]wFMCommunicate OK [04:49:48]SAM_PROTO_GetShiftState done [04:49:48]FM_GetShiftState done [04:49:48]req_shift_opened done [04:49:48]requested_item shift.open_date is exist - process it [04:49:48]req_shift_open_date [04:49:48]req_shift_open_date done [04:49:48]produce_requested_data done [04:49:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31579,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:49:48]process_action_free close_receipt [04:49:48]json_value_free [04:49:48]json_value_free done [04:49:48]process_json_proto returns [04:49:48]Send response to host [04:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31579,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:49:48]free response buf [04:49:48]execute_script done [04:49:48]execute_script returns [04:49:48]free content buf [04:49:48]Sock 5.Close socket [04:49:48]Sock 5.Thread stoped [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:06]accept exits with 6 [04:59:06]New connection [04:59:06]New thread 3067559268 created [04:59:06]Thread 3067415908 joined [04:59:06]Waiting for new connection... [04:59:06] Sock 6.Parse request [04:59:06]Sock 6.Check first char [04:59:06]Sock 6.First char is OK [04:59:06]request: POST /json_proto HTTP/1.0 [04:59:06]Method: POST [04:59:06]URL: /json_proto [04:59:06]Method is POST - this is cgi request [04:59:06]url: /json_proto [04:59:06]query_string will be loaded in cgi processing [04:59:06]execute_cgi json_proto POST (null) [04:59:06]execute_cgi path=json_proto method=POST [04:59:06]POST find Content-Length [04:59:06]Host: 172.17.39.68:8080 [04:59:06]Content-Length: 655 [04:59:06]Content-Type: application/json [04:59:06] [04:59:06]POST finish read [04:59:06]Found Content-Length = 655 [04:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214162", "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" : 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" ] } } [04:59:06]execute_script... [04:59: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)214162", "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" : 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" ] } } [04:59:06]POST & json_proto [04:59:06]process_json_proto [04:59:06]json parsed OK: [04:59:06]protocol is kg_v1.0 [04:59:06]action value=close_receipt [04:59:06]process_action close_receipt [04:59:06]cmd_close_receipt [04:59:06]MH_GetDate [04:59:06]Write to MH i2c: F0 00 00 64 05 58 [04:59:06]Write i2c OK [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: F0 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: F0 09 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: F0 09 00 64 05 00 9B AC 94 66 EC 7F 94 66 07 [04:59:06]GetLastDocTimeStamp 1721018985 [04:59:06]current date 1721019547 [04:59:06]FM_GetShiftState [04:59:06]SAM_PROTO_GetShiftState [04:59:06]wFMCommunicate request_size=4 [04:59:06]MH_SAM_APDU [04:59:06]CAPDU: 80 13 01 00 [04:59:06]Write to MH i2c: E2 08 00 65 05 80 13 01 00 00 00 00 00 E7 [04:59:06]Write i2c OK [04:59:06]MH_I2C_Read... [04:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:06]Read from MH i2c: E2 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 0E 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 0E 00 65 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DA [04:59:06]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:59:06]wFMCommunicate OK [04:59:06]SAM_PROTO_GetShiftState done [04:59:06]FM_GetShiftState done [04:59:06]opened in 1721001862 [04:59:06]opened+sec_in_day 1721088262 [04:59:06]quantity*price = 8500 [04:59:06]sum+1 = 8501 [04:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 21 15.07.2024 04:59 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31580 ФПД: 208328574042506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T045907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31580&fm=208328574042506&tin=02508201610067®Number=0000000000098025&sum=8500 0 [04:59:07]StoreToDocumentArchive [04:59:07]shift 370 fd 31580 [04:59:07]save to /storage/0370/doc_00031580 [04:59:07]save last doc name /storage/0370/doc_00031580 to /storage/kkm_last_doc_name [04:59:07]save OK [04:59:07]Clear old archive folders... [04:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=294 [04:59:07]tlvbuf is 0122FC50 [04:59:07]SAM_PROTO_ClearQueue [04:59:07]wFMCommunicate request_size=4 [04:59:07]MH_SAM_APDU [04:59:07]CAPDU: 80 09 00 00 [04:59:07]Write to MH i2c: E2 08 00 72 05 80 09 00 00 00 00 00 00 E9 [04:59:07]Write i2c OK [04:59:07]MH_I2C_Read... [04:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:07]Read from MH i2c: E2 [04:59:07]MH_I2C_Read... [04:59:07]Read from MH i2c: E2 03 00 [04:59:07]MH_I2C_Read... [04:59:07]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [04:59:07]RAPDU: 90 00 [04:59:07]wFMCommunicate OK [04:59:07]SAM_PROTO_ClearQueue done [04:59:07]KKMCreateOFDPacket [04:59:07]OFDProtocolAddRootSTLVToBuf [04:59:07]FM_MakeSignedData [04:59:07]FM_MakeSignedData [04:59:07]SAM_PROTO_SignData [04:59:07]wFMCommunicate request_size=4 [04:59:07]MH_SAM_APDU [04:59:07]CAPDU: 80 0D 01 02 [04:59:07]Write to MH i2c: E2 08 00 73 05 80 0D 01 02 00 00 00 00 F1 [04:59:07]Write i2c OK [04:59:07]MH_I2C_Read... [04:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:07]Read from MH i2c: E2 [04:59:07]MH_I2C_Read... [04:59:07]Read from MH i2c: E2 03 00 [04:59:07]MH_I2C_Read... [04:59:07]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [04:59:07]RAPDU: 90 00 [04:59:07]wFMCommunicate OK [04:59:07]wFMCommunicate request_size=255 [04:59:07]MH_SAM_APDU [04:59:07]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 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 15 00 00 00 F4 03 04 00 9B AC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [04:59:07]Write to MH i2c: E2 02 01 74 05 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 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 15 00 00 00 F4 03 04 00 9B AC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9E [04:59:07]Write i2c OK [04:59:07]MH_I2C_Read... [04:59:07]OFD Sender: No OFD packet to send [04:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:08]Read from MH i2c: E2 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 03 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [04:59:08]RAPDU: 90 00 [04:59:08]wFMCommunicate OK [04:59:08]wFMCommunicate request_size=53 [04:59:08]MH_SAM_APDU [04:59:08]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7B 00 00 35 04 06 00 BD 79 46 A7 01 8A [04:59:08]Write to MH i2c: E2 38 00 75 05 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7B 00 00 35 04 06 00 BD 79 46 A7 01 8A 00 00 75 [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:08]Read from MH i2c: E2 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 03 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [04:59:08]RAPDU: 90 00 [04:59:08]wFMCommunicate OK [04:59:08]wFMCommunicate request_size=4 [04:59:08]MH_SAM_APDU [04:59:08]CAPDU: 80 0D 03 02 [04:59:08]Write to MH i2c: E2 08 00 76 05 80 0D 03 02 00 00 00 00 F6 [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:08]Read from MH i2c: E2 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 0B 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 0B 00 76 05 00 A5 33 47 15 0D A9 7F 55 90 00 B5 [04:59:08]RAPDU: A5 33 47 15 0D A9 7F 55 90 00 [04:59:08]wFMCommunicate OK [04:59:08]SAM_PROTO_SignData done [04:59:08]FM_MakeSignedData done [04:59:08]CreateOFDProtocolMessage [04:59:08]wFMCommunicate request_size=4 [04:59:08]MH_SAM_APDU [04:59:08]CAPDU: 80 11 00 00 [04:59:08]Write to MH i2c: E2 08 00 77 05 80 11 00 00 00 00 00 00 F6 [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:08]Read from MH i2c: E2 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 17 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 17 00 77 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 51 [04:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:59:08]wFMCommunicate OK [04:59:08]CreateOFDProtocolMessage done [04:59:08]OFDSenderStorePacket 31580 [04:59:08]StoreOFDPacket docnum=31580 [04:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F4 8D 32 01 06 96 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 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 15 00 00 00 F4 03 04 00 9B AC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7B 00 00 35 04 06 00 BD 79 46 A7 01 8A A5 33 47 15 0D A9 7F 55 [04:59:08]CheckFolder [04:59:08]dirname=/storage/ofd_packets [04:59:08]CheckFolder done [04:59:08]ProducePacketName [04:59:08]name=ofd_packets/00031580 [04:59:08]NVStorageSaveData ofd_packets/00031580 [04:59:08]File name is /storage/ofd_packets/00031580 [04:59:08]Write 344 bytes [04:59:08]NVStorageSaveData done [04:59:08]OFDSenderStorePacket done [04:59:08]KKMCreateOFDPacket done [04:59:08]NVStorageSaveData kkm_last_timestamp [04:59:08]File name is /storage/kkm_last_timestamp [04:59:08]Write 4 bytes [04:59:08]NVStorageSaveData done [04:59:08]ExternCall_PrintAddStr [04:59:08]wPrintStart [04:59:08]Write to MH i2c: 01 00 00 78 05 7D [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: 01 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: 01 07 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 FF 0F 92 [04:59:08]RasterBufferAndPrint [04:59:08]line Счет N : (3)214162 [04:59:08]line ИНН: 02508201610067 [04:59:08]line Контрольно-Кассовый Чек [04:59:08]line ПРОДАЖА [04:59:08]line Товар: 4600682557456 [04:59:08]line Напиток FLash up energy эн ж/б 0,5/0,45л [04:59:08]line 1.000 * 85.00 [04:59:08]line = 85.00 [04:59:08]line НДС 12% НСП 1% [04:59:08]line > о реализуемом товаре [04:59:08]line ИТОГО: 85.00 [04:59:08]line НСП 1% : 0.75 [04:59:08]line НДС 12% : 9.03 [04:59:08]line Наличными: 85.00 [04:59:08]line Безнал.: 0.00 [04:59:08]line Место: АЗС № 140 "Партнер Нефть" [04:59:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:59:08]line СНО: Общий режим [04:59:08]line Чек 21 15.07.2024 04:59 [04:59:08]line Смена: 370 ФФД: 1.0 [04:59:08]line ЗНМ: 0300000189 [04:59:08]line РНМ: 0000000000098025 [04:59:08]line Версия ККМ: 001 [04:59:08]line ФМ: 0000000000965389 [04:59:08]line ФД: 31580 [04:59:08]line ФПД: 208328574042506 [04:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T045907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31580&fm=208328574042506&tin=02508201610067®Number=0000000000098025&sum=8500 [04:59:08]line 0 [04:59:08]OFD Sender: Processing packet 31580 [packets to send 5, broken 4] [04:59:08]ProducePacketName [04:59:08]name=ofd_packets/00031580 [04:59:08]OFD Sender: To server: pG, [04:59:08]CommunicateWithHost lk.salyk.kg:30040 [04:59:08]ConnectInit lk.salyk.kg [04:59:08]written 0, free lines is 4095 [04:59:08]Connected sock=7 [04:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F4 8D 32 01 06 96 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 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 15 00 00 00 F4 03 04 00 9B AC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7B 00 00 35 04 06 00 BD 79 46 A7 01 8A A5 33 47 15 0D A9 7F 55 [04:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 95 A8 47 00 C2 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7B 00 00 F4 03 04 00 A9 58 94 66 B6 04 01 00 00 CD 32 E7 0E CF 11 C4 5B [04:59:08]CommunicateWithHost err = 0 [04:59:08]CheckOFDResponse [04:59:08]1017 (14) - 77093643461234 [04:59:08]1041 (16) - 0000000000965389 [04:59:08]1040 (4) - 31580 [04:59:08]1012 (4) - 14.07.2024 23:00 [04:59:08]1206 (1) - 0 [04:59:08]OFD Sender: Remove packet 31580 [04:59:08]ProducePacketName [04:59:08]name=ofd_packets/00031580 [04:59:08]NVStorageDeleteData [04:59:09]Write to MH i2c: 01 00 00 A1 05 A6 [04:59:09]Write i2c OK [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: 01 [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: 01 07 00 [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 E5 0C 9E [04:59:09]RasterBufferAndPrint [04:59:09]line [04:59:09]line [04:59:09]line [04:59:09]line [04:59:09]line [04:59:09]written 0, free lines is 3307 [04:59:09]MH_Cut [04:59:09]Write to MH i2c: D1 01 00 A8 05 01 7F [04:59:09]Write i2c OK [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: D1 [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: D1 01 00 [04:59:09]MH_I2C_Read... [04:59:09]Read from MH i2c: D1 01 00 A8 05 00 7E [04:59:09]Write to MH i2c: 01 00 00 A9 05 AE [04:59:09]Write i2c OK [04:59:09]MH_I2C_Read... [04:59:09]OFD Sender: No OFD packet to send [04:59:09]*** Cut start [04:59:09]*** Partial cut [04:59:09]*** CUTSNS_PIN = 1 [04:59:09]*** CUTSNS_PIN = 0 [04:59:10]*** Brake cut motor [04:59:10]Read from MH i2c: 01 [04:59:10]MH_I2C_Read... [04:59:10]*** Stop cut motor [04:59:10]*** Cut end [04:59:10]Read from MH i2c: 01 07 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [04:59:10]process_action close_receipt done [04:59:10]requested_data is exist [04:59:10]produce_requested_data [04:59:10]requested_item fm.sn is exist - process it [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 11 00 00 [04:59:10]Write to MH i2c: E2 08 00 AA 05 80 11 00 00 00 00 00 00 29 [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 17 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 17 00 AA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 84 [04:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:59:10]wFMCommunicate OK [04:59:10]requested_item fd.num is exist - process it [04:59:10]SAM_PROTO_GetFieldsCounters [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 13 00 00 [04:59:10]Write to MH i2c: E2 08 00 AB 05 80 13 00 00 00 00 00 00 2C [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 62 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 62 00 AB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [04:59:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:10]wFMCommunicate OK [04:59:10]SAM_PROTO_GetFieldsCounters done [04:59:10]requested_item shift.num is exist - process it [04:59:10]requested_item shift.opened is exist - process it [04:59:10]req_shift_opened [04:59:10]FM_GetShiftState [04:59:10]SAM_PROTO_GetShiftState [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 13 01 00 [04:59:10]Write to MH i2c: E2 08 00 AC 05 80 13 01 00 00 00 00 00 2E [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:10]Read from MH i2c: E2 0E 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 0E 00 AC 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 21 [04:59:10]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [04:59:10]wFMCommunicate OK [04:59:10]SAM_PROTO_GetShiftState done [04:59:10]FM_GetShiftState done [04:59:10]req_shift_opened done [04:59:10]requested_item shift.open_date is exist - process it [04:59:10]req_shift_open_date [04:59:10]req_shift_open_date done [04:59:10]produce_requested_data done [04:59:10]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31580,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [04:59:10]process_action_free close_receipt [04:59:10]json_value_free [04:59:10]json_value_free done [04:59:10]process_json_proto returns [04:59:10]Send response to host [04:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31580,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [04:59:10]free response buf [04:59:10]execute_script done [04:59:10]execute_script returns [04:59:10]free content buf [04:59:10]Sock 6.Close socket [04:59:10]Sock 6.Thread stoped [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:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:24]accept exits with 5 [05:12:24]New connection [05:12:24]New thread 3067415908 created [05:12:24]Thread 3067559268 joined [05:12:24]Waiting for new connection... [05:12:24] Sock 5.Parse request [05:12:24]Sock 5.Check first char [05:12:24]Sock 5.First char is OK [05:12:24]request: POST /json_proto HTTP/1.0 [05:12:24]Method: POST [05:12:24]URL: /json_proto [05:12:24]Method is POST - this is cgi request [05:12:24]url: /json_proto [05:12:24]query_string will be loaded in cgi processing [05:12:24]execute_cgi json_proto POST (null) [05:12:24]execute_cgi path=json_proto method=POST [05:12:24]POST find Content-Length [05:12:24]Host: 172.17.39.68:8080 [05:12:24]Content-Length: 684 [05:12:24]Content-Type: application/json [05:12:24] [05:12:24]POST finish read [05:12:24]Found Content-Length = 684 [05:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214163", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:24]execute_script... [05:12:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214163", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:24]POST & json_proto [05:12:24]process_json_proto [05:12:24]json parsed OK: [05:12:24]protocol is kg_v1.0 [05:12:24]action value=close_receipt [05:12:24]process_action close_receipt [05:12:24]cmd_close_receipt [05:12:24]MH_GetDate [05:12:24]Write to MH i2c: F0 00 00 AD 05 A1 [05:12:24]Write i2c OK [05:12:24]MH_I2C_Read... [05:12:24]Read from MH i2c: F0 [05:12:24]MH_I2C_Read... [05:12:24]Read from MH i2c: F0 09 00 [05:12:24]MH_I2C_Read... [05:12:24]Read from MH i2c: F0 09 00 AD 05 00 B9 AF 94 66 EC 7F 94 66 71 [05:12:24]GetLastDocTimeStamp 1721019547 [05:12:24]current date 1721020345 [05:12:24]FM_GetShiftState [05:12:24]SAM_PROTO_GetShiftState [05:12:24]wFMCommunicate request_size=4 [05:12:24]MH_SAM_APDU [05:12:24]CAPDU: 80 13 01 00 [05:12:24]Write to MH i2c: E2 08 00 AE 05 80 13 01 00 00 00 00 00 30 [05:12:24]Write i2c OK [05:12:24]MH_I2C_Read... [05:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:24]Read from MH i2c: E2 [05:12:24]MH_I2C_Read... [05:12:24]Read from MH i2c: E2 0E 00 [05:12:24]MH_I2C_Read... [05:12:24]Read from MH i2c: E2 0E 00 AE 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 23 [05:12:24]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [05:12:24]wFMCommunicate OK [05:12:24]SAM_PROTO_GetShiftState done [05:12:24]FM_GetShiftState done [05:12:24]opened in 1721001862 [05:12:24]opened+sec_in_day 1721088262 [05:12:24]quantity*price = 12500 [05:12:24]sum+1 = 12501 [05:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 22 15.07.2024 05:12 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31581 ФПД: 189835672998063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T051225&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31581&fm=189835672998063&tin=02508201610067®Number=0000000000098025&sum=12500 0 [05:12:25]StoreToDocumentArchive [05:12:25]shift 370 fd 31581 [05:12:25]save to /storage/0370/doc_00031581 [05:12:25]save last doc name /storage/0370/doc_00031581 to /storage/kkm_last_doc_name [05:12:25]save OK [05:12:25]Clear old archive folders... [05:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=292 [05:12:25]tlvbuf is 0122FE40 [05:12:25]SAM_PROTO_ClearQueue [05:12:25]wFMCommunicate request_size=4 [05:12:25]MH_SAM_APDU [05:12:25]CAPDU: 80 09 00 00 [05:12:25]Write to MH i2c: E2 08 00 BB 05 80 09 00 00 00 00 00 00 32 [05:12:25]Write i2c OK [05:12:25]MH_I2C_Read... [05:12:25]Read from MH i2c: E2 [05:12:25]MH_I2C_Read... [05:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:12:25]Read from MH i2c: E2 03 00 [05:12:25]MH_I2C_Read... [05:12:25]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [05:12:25]RAPDU: 90 00 [05:12:25]wFMCommunicate OK [05:12:25]SAM_PROTO_ClearQueue done [05:12:25]KKMCreateOFDPacket [05:12:25]OFDProtocolAddRootSTLVToBuf [05:12:25]FM_MakeSignedData [05:12:25]FM_MakeSignedData [05:12:25]SAM_PROTO_SignData [05:12:25]wFMCommunicate request_size=4 [05:12:25]MH_SAM_APDU [05:12:25]CAPDU: 80 0D 01 02 [05:12:25]Write to MH i2c: E2 08 00 BC 05 80 0D 01 02 00 00 00 00 3A [05:12:25]Write i2c OK [05:12:25]MH_I2C_Read... [05:12:25]Read from MH i2c: E2 [05:12:25]MH_I2C_Read... [05:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:12:25]Read from MH i2c: E2 03 00 [05:12:25]MH_I2C_Read... [05:12:25]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [05:12:25]RAPDU: 90 00 [05:12:25]wFMCommunicate OK [05:12:25]wFMCommunicate request_size=255 [05:12:25]MH_SAM_APDU [05:12:25]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 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 B9 AF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [05:12:25]Write to MH i2c: E2 02 01 BD 05 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 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 B9 AF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 EB [05:12:25]Write i2c OK [05:12:25]MH_I2C_Read... [05:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:26]Read from MH i2c: E2 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 03 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [05:12:26]RAPDU: 90 00 [05:12:26]wFMCommunicate OK [05:12:26]wFMCommunicate request_size=51 [05:12:26]MH_SAM_APDU [05:12:26]CAPDU: 80 0D 02 02 2E 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5D 7B 00 00 35 04 06 00 AC A7 8F DA D0 AF [05:12:26]Write to MH i2c: E2 36 00 BE 05 80 0D 02 02 2E 00 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5D 7B 00 00 35 04 06 00 AC A7 8F DA D0 AF 00 00 E8 [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:26]Read from MH i2c: E2 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 03 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [05:12:26]RAPDU: 90 00 [05:12:26]wFMCommunicate OK [05:12:26]wFMCommunicate request_size=4 [05:12:26]MH_SAM_APDU [05:12:26]CAPDU: 80 0D 03 02 [05:12:26]Write to MH i2c: E2 08 00 BF 05 80 0D 03 02 00 00 00 00 3F [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:12:26]Read from MH i2c: E2 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 0B 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 0B 00 BF 05 00 54 F7 1F F4 4C F0 16 76 90 00 66 [05:12:26]RAPDU: 54 F7 1F F4 4C F0 16 76 90 00 [05:12:26]wFMCommunicate OK [05:12:26]SAM_PROTO_SignData done [05:12:26]FM_MakeSignedData done [05:12:26]CreateOFDProtocolMessage [05:12:26]wFMCommunicate request_size=4 [05:12:26]MH_SAM_APDU [05:12:26]CAPDU: 80 11 00 00 [05:12:26]Write to MH i2c: E2 08 00 C0 05 80 11 00 00 00 00 00 00 3F [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:26]Read from MH i2c: E2 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 17 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: E2 17 00 C0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9A [05:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:12:26]wFMCommunicate OK [05:12:26]CreateOFDProtocolMessage done [05:12:26]OFDSenderStorePacket 31581 [05:12:26]StoreOFDPacket docnum=31581 [05:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 AA 99 30 01 71 36 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 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 B9 AF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5D 7B 00 00 35 04 06 00 AC A7 8F DA D0 AF 54 F7 1F F4 4C F0 16 76 [05:12:26]CheckFolder [05:12:26]dirname=/storage/ofd_packets [05:12:26]CheckFolder done [05:12:26]ProducePacketName [05:12:26]name=ofd_packets/00031581 [05:12:26]NVStorageSaveData ofd_packets/00031581 [05:12:26]File name is /storage/ofd_packets/00031581 [05:12:26]Write 342 bytes [05:12:26]NVStorageSaveData done [05:12:26]OFDSenderStorePacket done [05:12:26]KKMCreateOFDPacket done [05:12:26]NVStorageSaveData kkm_last_timestamp [05:12:26]File name is /storage/kkm_last_timestamp [05:12:26]Write 4 bytes [05:12:26]NVStorageSaveData done [05:12:26]ExternCall_PrintAddStr [05:12:26]wPrintStart [05:12:26]Write to MH i2c: 01 00 00 C1 05 C6 [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 07 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 07 00 C1 05 00 00 00 00 00 FF 0F DB [05:12:26]RasterBufferAndPrint [05:12:26]line Счет N : (3)214163 [05:12:26]line ИНН: 02508201610067 [05:12:26]line Контрольно-Кассовый Чек [05:12:26]line ПРОДАЖА [05:12:26]line Товар: 4870202521230 [05:12:26]line Напиток MAXI чай 1,2 черн.лимон [05:12:26]line 1.000 * 125.00 [05:12:26]line = 125.00 [05:12:26]line НДС 12% НСП 1% [05:12:26]line > о реализуемом товаре [05:12:26]line ИТОГО: 125.00 [05:12:26]line НСП 1% : 1.11 [05:12:26]line НДС 12% : 13.27 [05:12:26]line Наличными: 125.00 [05:12:26]line Безнал.: 0.00 [05:12:26]line Место: АЗС № 140 "Партнер Нефть" [05:12:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:12:26]line СНО: Общий режим [05:12:26]line Чек 22 15.07.2024 05:12 [05:12:26]line Смена: 370 ФФД: 1.0 [05:12:26]line ЗНМ: 0300000189 [05:12:26]line РНМ: 0000000000098025 [05:12:26]line Версия ККМ: 001 [05:12:26]line ФМ: 0000000000965389 [05:12:26]line ФД: 31581 [05:12:26]line ФПД: 189835672998063 [05:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T051225&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31581&fm=189835672998063&tin=02508201610067®Number=0000000000098025&sum=12500 [05:12:26]line 0 [05:12:26]OFD Sender: Processing packet 31581 [packets to send 5, broken 4] [05:12:26]ProducePacketName [05:12:26]name=ofd_packets/00031581 [05:12:26]OFD Sender: To server: pG, [05:12:26]CommunicateWithHost lk.salyk.kg:30040 [05:12:26]ConnectInit lk.salyk.kg [05:12:26]written 0, free lines is 4095 [05:12:26]Connected sock=7 [05:12:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 AA 99 30 01 71 36 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 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 B9 AF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5D 7B 00 00 35 04 06 00 AC A7 8F DA D0 AF 54 F7 1F F4 4C F0 16 76 [05:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 33 94 47 00 7D 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5D 7B 00 00 F4 03 04 00 C7 5B 94 66 B6 04 01 00 00 CE CB 25 1E 18 A0 25 83 [05:12:26]CommunicateWithHost err = 0 [05:12:26]CheckOFDResponse [05:12:26]1017 (14) - 77093643461234 [05:12:26]1041 (16) - 0000000000965389 [05:12:26]1040 (4) - 31581 [05:12:26]1012 (4) - 14.07.2024 23:14 [05:12:26]1206 (1) - 0 [05:12:26]OFD Sender: Remove packet 31581 [05:12:26]ProducePacketName [05:12:26]name=ofd_packets/00031581 [05:12:26]NVStorageDeleteData [05:12:26]Write to MH i2c: 01 00 00 EA 05 EF [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 07 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 E7 0C E9 [05:12:26]RasterBufferAndPrint [05:12:26]line [05:12:26]line [05:12:26]line [05:12:26]line [05:12:26]line [05:12:26]written 0, free lines is 3310 [05:12:26]MH_Cut [05:12:26]Write to MH i2c: D1 01 00 F1 05 01 C8 [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: D1 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: D1 01 00 [05:12:26]MH_I2C_Read... [05:12:26]Read from MH i2c: D1 01 00 F1 05 00 C7 [05:12:26]Write to MH i2c: 01 00 00 F2 05 F7 [05:12:26]Write i2c OK [05:12:26]MH_I2C_Read... [05:12:27]OFD Sender: No OFD packet to send [05:12:27]*** Cut start [05:12:27]*** Partial cut [05:12:27]*** CUTSNS_PIN = 1 [05:12:27]*** CUTSNS_PIN = 0 [05:12:28]*** Brake cut motor [05:12:28]Read from MH i2c: 01 [05:12:28]MH_I2C_Read... [05:12:28]*** Stop cut motor [05:12:28]*** Cut end [05:12:28]Read from MH i2c: 01 07 00 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [05:12:28]process_action close_receipt done [05:12:28]requested_data is exist [05:12:28]produce_requested_data [05:12:28]requested_item fm.sn is exist - process it [05:12:28]wFMCommunicate request_size=4 [05:12:28]MH_SAM_APDU [05:12:28]CAPDU: 80 11 00 00 [05:12:28]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [05:12:28]Write i2c OK [05:12:28]MH_I2C_Read... [05:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:28]Read from MH i2c: E2 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 17 00 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CD [05:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:12:28]wFMCommunicate OK [05:12:28]requested_item fd.num is exist - process it [05:12:28]SAM_PROTO_GetFieldsCounters [05:12:28]wFMCommunicate request_size=4 [05:12:28]MH_SAM_APDU [05:12:28]CAPDU: 80 13 00 00 [05:12:28]Write to MH i2c: E2 08 00 F4 05 80 13 00 00 00 00 00 00 75 [05:12:28]Write i2c OK [05:12:28]MH_I2C_Read... [05:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:12:28]Read from MH i2c: E2 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 62 00 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 62 00 F4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [05:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:12:28]wFMCommunicate OK [05:12:28]SAM_PROTO_GetFieldsCounters done [05:12:28]requested_item shift.num is exist - process it [05:12:28]requested_item shift.opened is exist - process it [05:12:28]req_shift_opened [05:12:28]FM_GetShiftState [05:12:28]SAM_PROTO_GetShiftState [05:12:28]wFMCommunicate request_size=4 [05:12:28]MH_SAM_APDU [05:12:28]CAPDU: 80 13 01 00 [05:12:28]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [05:12:28]Write i2c OK [05:12:28]MH_I2C_Read... [05:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:28]Read from MH i2c: E2 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 0E 00 [05:12:28]MH_I2C_Read... [05:12:28]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6A [05:12:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [05:12:28]wFMCommunicate OK [05:12:28]SAM_PROTO_GetShiftState done [05:12:28]FM_GetShiftState done [05:12:28]req_shift_opened done [05:12:28]requested_item shift.open_date is exist - process it [05:12:28]req_shift_open_date [05:12:28]req_shift_open_date done [05:12:28]produce_requested_data done [05:12:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31581,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [05:12:28]process_action_free close_receipt [05:12:28]json_value_free [05:12:28]json_value_free done [05:12:28]process_json_proto returns [05:12:28]Send response to host [05:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31581,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [05:12:28]free response buf [05:12:28]execute_script done [05:12:28]execute_script returns [05:12:28]free content buf [05:12:28]Sock 5.Close socket [05:12:28]Sock 5.Thread stoped [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]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:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54: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: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:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:41]accept exits with 6 [07:09:41]New connection [07:09:41]New thread 3067559268 created [07:09:41]Thread 3067415908 joined [07:09:41]Waiting for new connection... [07:09:41] Sock 6.Parse request [07:09:41]Sock 6.Check first char [07:09:41]Sock 6.First char is OK [07:09:41]request: POST /json_proto HTTP/1.0 [07:09:41]Method: POST [07:09:41]URL: /json_proto [07:09:41]Method is POST - this is cgi request [07:09:41]url: /json_proto [07:09:41]query_string will be loaded in cgi processing [07:09:41]execute_cgi json_proto POST (null) [07:09:41]execute_cgi path=json_proto method=POST [07:09:41]POST find Content-Length [07:09:41]Host: 172.17.39.68:8080 [07:09:41]Content-Length: 675 [07:09:41]Content-Type: application/json [07:09:41] [07:09:41]POST finish read [07:09:41]Found Content-Length = 675 [07:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214164", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:41]execute_script... [07:09: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)214164", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:41]POST & json_proto [07:09:41]process_json_proto [07:09:41]json parsed OK: [07:09:41]protocol is kg_v1.0 [07:09:41]action value=close_receipt [07:09:41]process_action close_receipt [07:09:41]cmd_close_receipt [07:09:41]MH_GetDate [07:09:41]Write to MH i2c: F0 00 00 F6 05 EA [07:09:41]Write i2c OK [07:09:41]MH_I2C_Read... [07:09:41]Read from MH i2c: F0 [07:09:41]MH_I2C_Read... [07:09:41]Read from MH i2c: F0 09 00 [07:09:41]MH_I2C_Read... [07:09:41]Read from MH i2c: F0 09 00 F6 05 00 36 CB 94 66 EC 7F 94 66 53 [07:09:41]GetLastDocTimeStamp 1721020345 [07:09:41]current date 1721027382 [07:09:41]FM_GetShiftState [07:09:41]SAM_PROTO_GetShiftState [07:09:41]wFMCommunicate request_size=4 [07:09:41]MH_SAM_APDU [07:09:41]CAPDU: 80 13 01 00 [07:09:41]Write to MH i2c: E2 08 00 F7 05 80 13 01 00 00 00 00 00 79 [07:09:41]Write i2c OK [07:09:41]MH_I2C_Read... [07:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:41]Read from MH i2c: E2 [07:09:41]MH_I2C_Read... [07:09:41]Read from MH i2c: E2 0E 00 [07:09:41]MH_I2C_Read... [07:09:41]Read from MH i2c: E2 0E 00 F7 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6C [07:09:41]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:09:41]wFMCommunicate OK [07:09:41]SAM_PROTO_GetShiftState done [07:09:41]FM_GetShiftState done [07:09:41]opened in 1721001862 [07:09:41]opened+sec_in_day 1721088262 [07:09:41]quantity*price = 2100 [07:09:41]sum+1 = 2101 [07:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 23 15.07.2024 07:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31582 ФПД: 30555272640742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T070942&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31582&fm=30555272640742&tin=02508201610067®Number=0000000000098025&sum=2100 0 [07:09:42]StoreToDocumentArchive [07:09:42]shift 370 fd 31582 [07:09:42]save to /storage/0370/doc_00031582 [07:09:42]save last doc name /storage/0370/doc_00031582 to /storage/kkm_last_doc_name [07:09:42]save OK [07:09:42]Clear old archive folders... [07:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=287 [07:09:42]tlvbuf is 0122E440 [07:09:42]SAM_PROTO_ClearQueue [07:09:42]wFMCommunicate request_size=4 [07:09:42]MH_SAM_APDU [07:09:42]CAPDU: 80 09 00 00 [07:09:42]Write to MH i2c: E2 08 00 04 06 80 09 00 00 00 00 00 00 7C [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:42]Read from MH i2c: E2 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [07:09:42]RAPDU: 90 00 [07:09:42]wFMCommunicate OK [07:09:42]SAM_PROTO_ClearQueue done [07:09:42]KKMCreateOFDPacket [07:09:42]OFDProtocolAddRootSTLVToBuf [07:09:42]FM_MakeSignedData [07:09:42]FM_MakeSignedData [07:09:42]SAM_PROTO_SignData [07:09:42]wFMCommunicate request_size=4 [07:09:42]MH_SAM_APDU [07:09:42]CAPDU: 80 0D 01 02 [07:09:42]Write to MH i2c: E2 08 00 05 06 80 0D 01 02 00 00 00 00 84 [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:42]Read from MH i2c: E2 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [07:09:42]RAPDU: 90 00 [07:09:42]wFMCommunicate OK [07:09:42]wFMCommunicate request_size=255 [07:09:42]MH_SAM_APDU [07:09:42]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 36 CB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [07:09:42]Write to MH i2c: E2 02 01 06 06 80 0D 02 02 FA 00 03 00 1F 01 1E 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 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 36 CB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 3F [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:42]OFD Sender: No OFD packet to send [07:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:42]Read from MH i2c: E2 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [07:09:42]RAPDU: 90 00 [07:09:42]wFMCommunicate OK [07:09:42]wFMCommunicate request_size=46 [07:09:42]MH_SAM_APDU [07:09:42]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5E 7B 00 00 35 04 06 00 1B CA 34 2B F8 E6 [07:09:42]Write to MH i2c: E2 31 00 07 06 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5E 7B 00 00 35 04 06 00 1B CA 34 2B F8 E6 00 00 0F [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:43]Read from MH i2c: E2 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [07:09:43]RAPDU: 90 00 [07:09:43]wFMCommunicate OK [07:09:43]wFMCommunicate request_size=4 [07:09:43]MH_SAM_APDU [07:09:43]CAPDU: 80 0D 03 02 [07:09:43]Write to MH i2c: E2 08 00 08 06 80 0D 03 02 00 00 00 00 89 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:43]Read from MH i2c: E2 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 0B 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 0B 00 08 06 00 9B D3 3B 6C F3 81 87 AD 90 00 47 [07:09:43]RAPDU: 9B D3 3B 6C F3 81 87 AD 90 00 [07:09:43]wFMCommunicate OK [07:09:43]SAM_PROTO_SignData done [07:09:43]FM_MakeSignedData done [07:09:43]CreateOFDProtocolMessage [07:09:43]wFMCommunicate request_size=4 [07:09:43]MH_SAM_APDU [07:09:43]CAPDU: 80 11 00 00 [07:09:43]Write to MH i2c: E2 08 00 09 06 80 11 00 00 00 00 00 00 89 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:43]Read from MH i2c: E2 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 17 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 17 00 09 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E4 [07:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:09:43]wFMCommunicate OK [07:09:43]CreateOFDProtocolMessage done [07:09:43]OFDSenderStorePacket 31582 [07:09:43]StoreOFDPacket docnum=31582 [07:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 93 D9 2B 01 11 20 5A 03 01 00 03 00 1F 01 1E 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 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 36 CB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5E 7B 00 00 35 04 06 00 1B CA 34 2B F8 E6 9B D3 3B 6C F3 81 87 AD [07:09:43]CheckFolder [07:09:43]dirname=/storage/ofd_packets [07:09:43]CheckFolder done [07:09:43]ProducePacketName [07:09:43]name=ofd_packets/00031582 [07:09:43]NVStorageSaveData ofd_packets/00031582 [07:09:43]File name is /storage/ofd_packets/00031582 [07:09:43]Write 337 bytes [07:09:43]NVStorageSaveData done [07:09:43]OFDSenderStorePacket done [07:09:43]KKMCreateOFDPacket done [07:09:43]NVStorageSaveData kkm_last_timestamp [07:09:43]File name is /storage/kkm_last_timestamp [07:09:43]Write 4 bytes [07:09:43]NVStorageSaveData done [07:09:43]ExternCall_PrintAddStr [07:09:43]wPrintStart [07:09:43]Write to MH i2c: 01 00 00 0A 06 10 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 07 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [07:09:43]RasterBufferAndPrint [07:09:43]line Счет N : (3)214164 [07:09:43]line ИНН: 02508201610067 [07:09:43]line Контрольно-Кассовый Чек [07:09:43]line ПРОДАЖА [07:09:43]line Товар: 2000053020015 [07:09:43]line Бумажные стаканы 250мл 1шт [07:09:43]line 3.000 * 7.00 [07:09:43]line = 21.00 [07:09:43]line НДС 12% НСП 1% [07:09:43]line > о реализуемом товаре [07:09:43]line ИТОГО: 21.00 [07:09:43]line НСП 1% : 0.19 [07:09:43]line НДС 12% : 2.23 [07:09:43]line Наличными: 21.00 [07:09:43]line Безнал.: 0.00 [07:09:43]line Место: АЗС № 140 "Партнер Нефть" [07:09:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:09:43]line СНО: Общий режим [07:09:43]line Чек 23 15.07.2024 07:09 [07:09:43]line Смена: 370 ФФД: 1.0 [07:09:43]line ЗНМ: 0300000189 [07:09:43]line РНМ: 0000000000098025 [07:09:43]line Версия ККМ: 001 [07:09:43]line ФМ: 0000000000965389 [07:09:43]line ФД: 31582 [07:09:43]line ФПД: 30555272640742 [07:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T070942&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31582&fm=30555272640742&tin=02508201610067®Number=0000000000098025&sum=2100 [07:09:43]line 0 [07:09:43]OFD Sender: Processing packet 31582 [packets to send 5, broken 4] [07:09:43]ProducePacketName [07:09:43]name=ofd_packets/00031582 [07:09:43]OFD Sender: To server: pG, [07:09:43]CommunicateWithHost lk.salyk.kg:30040 [07:09:43]ConnectInit lk.salyk.kg [07:09:43]written 0, free lines is 4095 [07:09:43]Connected sock=7 [07:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 93 D9 2B 01 11 20 5A 03 01 00 03 00 1F 01 1E 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 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 36 CB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5E 7B 00 00 35 04 06 00 1B CA 34 2B F8 E6 9B D3 3B 6C F3 81 87 AD [07:09:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 17 F8 47 00 DE EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5E 7B 00 00 F4 03 04 00 44 77 94 66 B6 04 01 00 00 90 97 F4 48 65 2C 99 1A [07:09:43]CommunicateWithHost err = 0 [07:09:43]CheckOFDResponse [07:09:43]1017 (14) - 77093643461234 [07:09:43]1041 (16) - 0000000000965389 [07:09:43]1040 (4) - 31582 [07:09:43]1012 (4) - 15.07.2024 01:11 [07:09:43]1206 (1) - 0 [07:09:43]OFD Sender: Remove packet 31582 [07:09:43]ProducePacketName [07:09:43]name=ofd_packets/00031582 [07:09:43]NVStorageDeleteData [07:09:43]Write to MH i2c: 01 00 00 33 06 39 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 07 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 D8 0C 24 [07:09:43]RasterBufferAndPrint [07:09:43]line [07:09:43]line [07:09:43]line [07:09:43]line [07:09:43]line [07:09:43]written 0, free lines is 3294 [07:09:43]MH_Cut [07:09:43]Write to MH i2c: D1 01 00 3A 06 01 12 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: D1 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: D1 01 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: D1 01 00 3A 06 00 11 [07:09:43]Write to MH i2c: 01 00 00 3B 06 41 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:44]OFD Sender: No OFD packet to send [07:09:44]*** Cut start [07:09:44]*** Partial cut [07:09:44]*** CUTSNS_PIN = 1 [07:09:44]*** CUTSNS_PIN = 0 [07:09:44]*** Brake cut motor [07:09:45]Read from MH i2c: 01 [07:09:45]MH_I2C_Read... [07:09:45]*** Stop cut motor [07:09:45]*** Cut end [07:09:45]Read from MH i2c: 01 07 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [07:09:45]process_action close_receipt done [07:09:45]requested_data is exist [07:09:45]produce_requested_data [07:09:45]requested_item fm.sn is exist - process it [07:09:45]wFMCommunicate request_size=4 [07:09:45]MH_SAM_APDU [07:09:45]CAPDU: 80 11 00 00 [07:09:45]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:45]Read from MH i2c: E2 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 17 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 17 [07:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:09:45]wFMCommunicate OK [07:09:45]requested_item fd.num is exist - process it [07:09:45]SAM_PROTO_GetFieldsCounters [07:09:45]wFMCommunicate request_size=4 [07:09:45]MH_SAM_APDU [07:09:45]CAPDU: 80 13 00 00 [07:09:45]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:45]Read from MH i2c: E2 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 62 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [07:09:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:45]wFMCommunicate OK [07:09:45]SAM_PROTO_GetFieldsCounters done [07:09:45]requested_item shift.num is exist - process it [07:09:45]requested_item shift.opened is exist - process it [07:09:45]req_shift_opened [07:09:45]FM_GetShiftState [07:09:45]SAM_PROTO_GetShiftState [07:09:45]wFMCommunicate request_size=4 [07:09:45]MH_SAM_APDU [07:09:45]CAPDU: 80 13 01 00 [07:09:45]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:45]Read from MH i2c: E2 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 0E 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B4 [07:09:45]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:09:45]wFMCommunicate OK [07:09:45]SAM_PROTO_GetShiftState done [07:09:45]FM_GetShiftState done [07:09:45]req_shift_opened done [07:09:45]requested_item shift.open_date is exist - process it [07:09:45]req_shift_open_date [07:09:45]req_shift_open_date done [07:09:45]produce_requested_data done [07:09:45]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31582,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:09:45]process_action_free close_receipt [07:09:45]json_value_free [07:09:45]json_value_free done [07:09:45]process_json_proto returns [07:09:45]Send response to host [07:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31582,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:09:45]free response buf [07:09:45]execute_script done [07:09:45]execute_script returns [07:09:45]free content buf [07:09:45]Sock 6.Close socket [07:09:45]Sock 6.Thread stoped [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19: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:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:29]accept exits with 5 [07:30:29]New connection [07:30:29]New thread 3067415908 created [07:30:29]Thread 3067559268 joined [07:30:29]Waiting for new connection... [07:30:29] Sock 5.Parse request [07:30:29]Sock 5.Check first char [07:30:29]Sock 5.First char is OK [07:30:29]request: POST /json_proto HTTP/1.0 [07:30:29]Method: POST [07:30:29]URL: /json_proto [07:30:29]Method is POST - this is cgi request [07:30:29]url: /json_proto [07:30:29]query_string will be loaded in cgi processing [07:30:29]execute_cgi json_proto POST (null) [07:30:29]execute_cgi path=json_proto method=POST [07:30:29]POST find Content-Length [07:30:29]Host: 172.17.39.68:8080 [07:30:29]Content-Length: 688 [07:30:29]Content-Type: application/json [07:30:29] [07:30:29]POST finish read [07:30:29]Found Content-Length = 688 [07:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214165", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:29]execute_script... [07:30:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214165", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:29]POST & json_proto [07:30:29]process_json_proto [07:30:29]json parsed OK: [07:30:29]protocol is kg_v1.0 [07:30:29]action value=close_receipt [07:30:29]process_action close_receipt [07:30:29]cmd_close_receipt [07:30:29]MH_GetDate [07:30:29]Write to MH i2c: F0 00 00 3F 06 34 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: F0 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: F0 09 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: F0 09 00 3F 06 00 16 D0 94 66 EC 7F 94 66 82 [07:30:29]GetLastDocTimeStamp 1721027382 [07:30:29]current date 1721028630 [07:30:29]FM_GetShiftState [07:30:29]SAM_PROTO_GetShiftState [07:30:29]wFMCommunicate request_size=4 [07:30:29]MH_SAM_APDU [07:30:29]CAPDU: 80 13 01 00 [07:30:29]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:29]Read from MH i2c: E2 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: E2 0E 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B6 [07:30:29]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:30:29]wFMCommunicate OK [07:30:29]SAM_PROTO_GetShiftState done [07:30:29]FM_GetShiftState done [07:30:29]opened in 1721001862 [07:30:29]opened+sec_in_day 1721088262 [07:30:29]quantity*price = 6500 [07:30:29]sum+1 = 6501 [07:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 24 15.07.2024 07:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31583 ФПД: 199684977826034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073030&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31583&fm=199684977826034&tin=02508201610067®Number=0000000000098025&sum=6500 0 [07:30:30]StoreToDocumentArchive [07:30:30]shift 370 fd 31583 [07:30:30]save to /storage/0370/doc_00031583 [07:30:30]save last doc name /storage/0370/doc_00031583 to /storage/kkm_last_doc_name [07:30:30]save OK [07:30:30]Clear old archive folders... [07:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=295 [07:30:30]tlvbuf is 0125ABA0 [07:30:30]SAM_PROTO_ClearQueue [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 09 00 00 [07:30:30]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:30]Read from MH i2c: E2 03 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [07:30:30]RAPDU: 90 00 [07:30:30]wFMCommunicate OK [07:30:30]SAM_PROTO_ClearQueue done [07:30:30]KKMCreateOFDPacket [07:30:30]OFDProtocolAddRootSTLVToBuf [07:30:30]FM_MakeSignedData [07:30:30]FM_MakeSignedData [07:30:30]SAM_PROTO_SignData [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 0D 01 02 [07:30:30]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [07:30:30]RAPDU: 90 00 [07:30:30]wFMCommunicate OK [07:30:30]wFMCommunicate request_size=255 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 16 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [07:30:30]Write to MH i2c: E2 02 01 4F 06 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 16 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 78 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [07:30:30]RAPDU: 90 00 [07:30:30]wFMCommunicate OK [07:30:30]wFMCommunicate request_size=54 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5F 7B 00 00 35 04 06 00 B5 9C C8 2B 98 F2 [07:30:30]Write to MH i2c: E2 39 00 50 06 80 0D 02 02 31 00 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5F 7B 00 00 35 04 06 00 B5 9C C8 2B 98 F2 00 00 A6 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [07:30:30]RAPDU: 90 00 [07:30:30]wFMCommunicate OK [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 0D 03 02 [07:30:30]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 0B 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 0B 00 51 06 00 03 C4 BF F9 E5 0F BB 0A 90 00 0B [07:30:30]RAPDU: 03 C4 BF F9 E5 0F BB 0A 90 00 [07:30:30]wFMCommunicate OK [07:30:30]SAM_PROTO_SignData done [07:30:30]FM_MakeSignedData done [07:30:30]CreateOFDProtocolMessage [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 11 00 00 [07:30:30]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:31]Read from MH i2c: E2 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 17 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2D [07:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:30:31]wFMCommunicate OK [07:30:31]CreateOFDProtocolMessage done [07:30:31]OFDSenderStorePacket 31583 [07:30:31]StoreOFDPacket docnum=31583 [07:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3B 01 00 00 41 5F 33 01 9F A2 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 16 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5F 7B 00 00 35 04 06 00 B5 9C C8 2B 98 F2 03 C4 BF F9 E5 0F BB 0A [07:30:31]CheckFolder [07:30:31]dirname=/storage/ofd_packets [07:30:31]CheckFolder done [07:30:31]ProducePacketName [07:30:31]name=ofd_packets/00031583 [07:30:31]NVStorageSaveData ofd_packets/00031583 [07:30:31]File name is /storage/ofd_packets/00031583 [07:30:31]Write 345 bytes [07:30:31]NVStorageSaveData done [07:30:31]OFDSenderStorePacket done [07:30:31]KKMCreateOFDPacket done [07:30:31]NVStorageSaveData kkm_last_timestamp [07:30:31]File name is /storage/kkm_last_timestamp [07:30:31]Write 4 bytes [07:30:31]NVStorageSaveData done [07:30:31]ExternCall_PrintAddStr [07:30:31]wPrintStart [07:30:31]Write to MH i2c: 01 00 00 53 06 59 [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 07 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [07:30:31]RasterBufferAndPrint [07:30:31]line Счет N : (3)214165 [07:30:31]line ИНН: 02508201610067 [07:30:31]line Контрольно-Кассовый Чек [07:30:31]line ПРОДАЖА [07:30:31]line Товар: 4870002325441 [07:30:31]line Вода ASU пит н.газ лимон ПЭТ 0,5л [07:30:31]line 1.000 * 65.00 [07:30:31]line = 65.00 [07:30:31]line НДС 12% НСП 1% [07:30:31]line > о реализуемом товаре [07:30:31]line ИТОГО: 65.00 [07:30:31]line НСП 1% : 0.57 [07:30:31]line НДС 12% : 6.90 [07:30:31]line Наличными: 65.00 [07:30:31]line Безнал.: 0.00 [07:30:31]line Место: АЗС № 140 "Партнер Нефть" [07:30:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:30:31]line СНО: Общий режим [07:30:31]line Чек 24 15.07.2024 07:30 [07:30:31]line Смена: 370 ФФД: 1.0 [07:30:31]line ЗНМ: 0300000189 [07:30:31]line РНМ: 0000000000098025 [07:30:31]line Версия ККМ: 001 [07:30:31]line ФМ: 0000000000965389 [07:30:31]line ФД: 31583 [07:30:31]line ФПД: 199684977826034 [07:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073030&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31583&fm=199684977826034&tin=02508201610067®Number=0000000000098025&sum=6500 [07:30:31]line 0 [07:30:31]OFD Sender: Processing packet 31583 [packets to send 5, broken 4] [07:30:31]ProducePacketName [07:30:31]name=ofd_packets/00031583 [07:30:31]OFD Sender: To server: pG, [07:30:31]CommunicateWithHost lk.salyk.kg:30040 [07:30:31]ConnectInit lk.salyk.kg [07:30:31]written 0, free lines is 4095 [07:30:31]Connected sock=7 [07:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3B 01 00 00 41 5F 33 01 9F A2 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 16 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5F 7B 00 00 35 04 06 00 B5 9C C8 2B 98 F2 03 C4 BF F9 E5 0F BB 0A [07:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 1C E2 47 00 90 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5F 7B 00 00 F4 03 04 00 24 7C 94 66 B6 04 01 00 00 64 B0 0B 32 A8 E8 EA 36 [07:30:31]CommunicateWithHost err = 0 [07:30:31]CheckOFDResponse [07:30:31]1017 (14) - 77093643461234 [07:30:31]1041 (16) - 0000000000965389 [07:30:31]1040 (4) - 31583 [07:30:31]1012 (4) - 15.07.2024 01:32 [07:30:31]1206 (1) - 0 [07:30:31]OFD Sender: Remove packet 31583 [07:30:31]ProducePacketName [07:30:31]name=ofd_packets/00031583 [07:30:31]NVStorageDeleteData [07:30:31]Write to MH i2c: 01 00 00 7C 06 82 [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 07 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 F3 0C 88 [07:30:31]RasterBufferAndPrint [07:30:31]line [07:30:31]line [07:30:31]line [07:30:31]line [07:30:31]line [07:30:31]written 0, free lines is 3323 [07:30:31]MH_Cut [07:30:31]Write to MH i2c: D1 01 00 83 06 01 5B [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: D1 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: D1 01 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: D1 01 00 83 06 00 5A [07:30:31]Write to MH i2c: 01 00 00 84 06 8A [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:32]OFD Sender: No OFD packet to send [07:30:32]*** Cut start [07:30:32]*** Partial cut [07:30:32]*** CUTSNS_PIN = 1 [07:30:32]*** CUTSNS_PIN = 0 [07:30:32]*** Brake cut motor [07:30:33]Read from MH i2c: 01 [07:30:33]MH_I2C_Read... [07:30:33]*** Stop cut motor [07:30:33]*** Cut end [07:30:33]Read from MH i2c: 01 07 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 FF 0F 9F [07:30:33]process_action close_receipt done [07:30:33]requested_data is exist [07:30:33]produce_requested_data [07:30:33]requested_item fm.sn is exist - process it [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 11 00 00 [07:30:33]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 17 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 60 [07:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:30:33]wFMCommunicate OK [07:30:33]requested_item fd.num is exist - process it [07:30:33]SAM_PROTO_GetFieldsCounters [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 13 00 00 [07:30:33]Write to MH i2c: E2 08 00 86 06 80 13 00 00 00 00 00 00 08 [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 62 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 62 00 86 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [07:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:33]wFMCommunicate OK [07:30:33]SAM_PROTO_GetFieldsCounters done [07:30:33]requested_item shift.num is exist - process it [07:30:33]requested_item shift.opened is exist - process it [07:30:33]req_shift_opened [07:30:33]FM_GetShiftState [07:30:33]SAM_PROTO_GetShiftState [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 13 01 00 [07:30:33]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 0E 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FD [07:30:33]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:30:33]wFMCommunicate OK [07:30:33]SAM_PROTO_GetShiftState done [07:30:33]FM_GetShiftState done [07:30:33]req_shift_opened done [07:30:33]requested_item shift.open_date is exist - process it [07:30:33]req_shift_open_date [07:30:33]req_shift_open_date done [07:30:33]produce_requested_data done [07:30:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31583,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:30:33]process_action_free close_receipt [07:30:33]json_value_free [07:30:33]json_value_free done [07:30:33]process_json_proto returns [07:30:33]Send response to host [07:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31583,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:30:33]free response buf [07:30:33]execute_script done [07:30:33]execute_script returns [07:30:33]free content buf [07:30:33]Sock 5.Close socket [07:30:33]Sock 5.Thread stoped [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:07]accept exits with 6 [07:32:07]New connection [07:32:07]New thread 3067559268 created [07:32:07]Thread 3067415908 joined [07:32:07]Waiting for new connection... [07:32:07] Sock 6.Parse request [07:32:07]Sock 6.Check first char [07:32:07]Sock 6.First char is OK [07:32:07]request: POST /json_proto HTTP/1.0 [07:32:07]Method: POST [07:32:07]URL: /json_proto [07:32:07]Method is POST - this is cgi request [07:32:07]url: /json_proto [07:32:07]query_string will be loaded in cgi processing [07:32:07]execute_cgi json_proto POST (null) [07:32:07]execute_cgi path=json_proto method=POST [07:32:07]POST find Content-Length [07:32:07]Host: 172.17.39.68:8080 [07:32:07]Content-Length: 664 [07:32:07]Content-Type: application/json [07:32:07] [07:32:07]POST finish read [07:32:07]Found Content-Length = 664 [07:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214166", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:07]execute_script... [07:32: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)214166", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:07]POST & json_proto [07:32:07]process_json_proto [07:32:07]json parsed OK: [07:32:07]protocol is kg_v1.0 [07:32:07]action value=close_receipt [07:32:07]process_action close_receipt [07:32:07]cmd_close_receipt [07:32:07]MH_GetDate [07:32:07]Write to MH i2c: F0 00 00 88 06 7D [07:32:07]Write i2c OK [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: F0 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: F0 09 00 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: F0 09 00 88 06 00 78 D0 94 66 EC 7F 94 66 2D [07:32:07]GetLastDocTimeStamp 1721028630 [07:32:07]current date 1721028728 [07:32:07]FM_GetShiftState [07:32:07]SAM_PROTO_GetShiftState [07:32:07]wFMCommunicate request_size=4 [07:32:07]MH_SAM_APDU [07:32:07]CAPDU: 80 13 01 00 [07:32:07]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [07:32:07]Write i2c OK [07:32:07]MH_I2C_Read... [07:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:07]Read from MH i2c: E2 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 0E 00 [07:32:07]MH_I2C_Read... [07:32:07]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FF [07:32:07]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:32:07]wFMCommunicate OK [07:32:07]SAM_PROTO_GetShiftState done [07:32:07]FM_GetShiftState done [07:32:07]opened in 1721001862 [07:32:07]opened+sec_in_day 1721088262 [07:32:07]quantity*price = 5500 [07:32:07]sum+1 = 5501 [07:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 25 15.07.2024 07:32 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31584 ФПД: 206052022664390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073208&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31584&fm=206052022664390&tin=02508201610067®Number=0000000000098025&sum=5500 0 [07:32:08]StoreToDocumentArchive [07:32:08]shift 370 fd 31584 [07:32:08]save to /storage/0370/doc_00031584 [07:32:08]save last doc name /storage/0370/doc_00031584 to /storage/kkm_last_doc_name [07:32:08]save OK [07:32:08]Clear old archive folders... [07:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=287 [07:32:08]tlvbuf is 01250480 [07:32:08]SAM_PROTO_ClearQueue [07:32:08]wFMCommunicate request_size=4 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 09 00 00 [07:32:08]Write to MH i2c: E2 08 00 96 06 80 09 00 00 00 00 00 00 0E [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:08]Read from MH i2c: E2 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [07:32:08]RAPDU: 90 00 [07:32:08]wFMCommunicate OK [07:32:08]SAM_PROTO_ClearQueue done [07:32:08]KKMCreateOFDPacket [07:32:08]OFDProtocolAddRootSTLVToBuf [07:32:08]FM_MakeSignedData [07:32:08]FM_MakeSignedData [07:32:08]SAM_PROTO_SignData [07:32:08]wFMCommunicate request_size=4 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 0D 01 02 [07:32:08]Write to MH i2c: E2 08 00 97 06 80 0D 01 02 00 00 00 00 16 [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:08]Read from MH i2c: E2 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [07:32:08]RAPDU: 90 00 [07:32:08]wFMCommunicate OK [07:32:08]wFMCommunicate request_size=255 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 78 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [07:32:08]Write to MH i2c: E2 02 01 98 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 78 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 B9 [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:08]Read from MH i2c: E2 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [07:32:08]RAPDU: 90 00 [07:32:08]wFMCommunicate OK [07:32:08]wFMCommunicate request_size=46 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 60 7B 00 00 35 04 06 00 BB 67 39 9D BC C6 [07:32:08]Write to MH i2c: E2 31 00 99 06 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 60 7B 00 00 35 04 06 00 BB 67 39 9D BC C6 00 00 FB [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:08]Read from MH i2c: E2 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [07:32:08]RAPDU: 90 00 [07:32:08]wFMCommunicate OK [07:32:08]wFMCommunicate request_size=4 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 0D 03 02 [07:32:08]Write to MH i2c: E2 08 00 9A 06 80 0D 03 02 00 00 00 00 1B [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 0B 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 0B 00 9A 06 00 F9 CB 05 89 C1 E1 EA A4 90 00 9E [07:32:09]RAPDU: F9 CB 05 89 C1 E1 EA A4 90 00 [07:32:09]wFMCommunicate OK [07:32:09]SAM_PROTO_SignData done [07:32:09]FM_MakeSignedData done [07:32:09]CreateOFDProtocolMessage [07:32:09]wFMCommunicate request_size=4 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 11 00 00 [07:32:09]Write to MH i2c: E2 08 00 9B 06 80 11 00 00 00 00 00 00 1B [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 17 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 17 00 9B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [07:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:32:09]wFMCommunicate OK [07:32:09]CreateOFDProtocolMessage done [07:32:09]OFDSenderStorePacket 31584 [07:32:09]StoreOFDPacket docnum=31584 [07:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 31 E4 2B 01 5B 18 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 78 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 60 7B 00 00 35 04 06 00 BB 67 39 9D BC C6 F9 CB 05 89 C1 E1 EA A4 [07:32:09]CheckFolder [07:32:09]dirname=/storage/ofd_packets [07:32:09]CheckFolder done [07:32:09]ProducePacketName [07:32:09]name=ofd_packets/00031584 [07:32:09]NVStorageSaveData ofd_packets/00031584 [07:32:09]File name is /storage/ofd_packets/00031584 [07:32:09]Write 337 bytes [07:32:09]NVStorageSaveData done [07:32:09]OFDSenderStorePacket done [07:32:09]KKMCreateOFDPacket done [07:32:09]NVStorageSaveData kkm_last_timestamp [07:32:09]File name is /storage/kkm_last_timestamp [07:32:09]Write 4 bytes [07:32:09]NVStorageSaveData done [07:32:09]ExternCall_PrintAddStr [07:32:09]wPrintStart [07:32:09]Write to MH i2c: 01 00 00 9C 06 A2 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 07 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 FF 0F B7 [07:32:09]RasterBufferAndPrint [07:32:09]line Счет N : (3)214166 [07:32:09]line ИНН: 02508201610067 [07:32:09]line Контрольно-Кассовый Чек [07:32:09]line ПРОДАЖА [07:32:09]line Товар: 46146632 [07:32:09]line Р/ж Orbit XXL клубника,банан 20,4г [07:32:09]line 1.000 * 55.00 [07:32:09]line = 55.00 [07:32:09]line НДС 12% НСП 1% [07:32:09]line > о реализуемом товаре [07:32:09]line ИТОГО: 55.00 [07:32:09]line НСП 1% : 0.49 [07:32:09]line НДС 12% : 5.84 [07:32:09]line Наличными: 55.00 [07:32:09]line Безнал.: 0.00 [07:32:09]line Место: АЗС № 140 "Партнер Нефть" [07:32:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:32:09]line СНО: Общий режим [07:32:09]line Чек 25 15.07.2024 07:32 [07:32:09]line Смена: 370 ФФД: 1.0 [07:32:09]line ЗНМ: 0300000189 [07:32:09]line РНМ: 0000000000098025 [07:32:09]line Версия ККМ: 001 [07:32:09]line ФМ: 0000000000965389 [07:32:09]line ФД: 31584 [07:32:09]line ФПД: 206052022664390 [07:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073208&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31584&fm=206052022664390&tin=02508201610067®Number=0000000000098025&sum=5500 [07:32:09]line 0 [07:32:09]OFD Sender: Processing packet 31584 [packets to send 5, broken 4] [07:32:09]ProducePacketName [07:32:09]name=ofd_packets/00031584 [07:32:09]OFD Sender: To server: pG, [07:32:09]CommunicateWithHost lk.salyk.kg:30040 [07:32:09]ConnectInit lk.salyk.kg [07:32:09]written 0, free lines is 4095 [07:32:09]Connected sock=7 [07:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 31 E4 2B 01 5B 18 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 78 D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 60 7B 00 00 35 04 06 00 BB 67 39 9D BC C6 F9 CB 05 89 C1 E1 EA A4 [07:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D1 10 47 00 24 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 60 7B 00 00 F4 03 04 00 86 7C 94 66 B6 04 01 00 00 DB 53 6E 2F 65 C5 C7 26 [07:32:09]CommunicateWithHost err = 0 [07:32:09]CheckOFDResponse [07:32:09]1017 (14) - 77093643461234 [07:32:09]1041 (16) - 0000000000965389 [07:32:09]1040 (4) - 31584 [07:32:09]1012 (4) - 15.07.2024 01:33 [07:32:09]1206 (1) - 0 [07:32:09]OFD Sender: Remove packet 31584 [07:32:09]ProducePacketName [07:32:09]name=ofd_packets/00031584 [07:32:09]NVStorageDeleteData [07:32:09]Write to MH i2c: 01 00 00 C5 06 CB [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 07 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 F2 0C D0 [07:32:09]RasterBufferAndPrint [07:32:09]line [07:32:09]line [07:32:09]line [07:32:09]line [07:32:09]line [07:32:09]written 0, free lines is 3320 [07:32:09]MH_Cut [07:32:09]Write to MH i2c: D1 01 00 CC 06 01 A4 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: D1 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: D1 01 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: D1 01 00 CC 06 00 A3 [07:32:09]Write to MH i2c: 01 00 00 CD 06 D3 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:10]OFD Sender: No OFD packet to send [07:32:10]*** Cut start [07:32:10]*** Partial cut [07:32:10]*** CUTSNS_PIN = 1 [07:32:10]*** CUTSNS_PIN = 0 [07:32:10]*** Brake cut motor [07:32:11]Read from MH i2c: 01 [07:32:11]MH_I2C_Read... [07:32:11]*** Stop cut motor [07:32:11]*** Cut end [07:32:11]Read from MH i2c: 01 07 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [07:32:11]process_action close_receipt done [07:32:11]requested_data is exist [07:32:11]produce_requested_data [07:32:11]requested_item fm.sn is exist - process it [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 11 00 00 [07:32:11]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:11]Read from MH i2c: E2 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 17 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 17 00 CE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A9 [07:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:32:11]wFMCommunicate OK [07:32:11]requested_item fd.num is exist - process it [07:32:11]SAM_PROTO_GetFieldsCounters [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 13 00 00 [07:32:11]Write to MH i2c: E2 08 00 CF 06 80 13 00 00 00 00 00 00 51 [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:11]Read from MH i2c: E2 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 62 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 62 00 CF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 60 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [07:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 60 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:11]wFMCommunicate OK [07:32:11]SAM_PROTO_GetFieldsCounters done [07:32:11]requested_item shift.num is exist - process it [07:32:11]requested_item shift.opened is exist - process it [07:32:11]req_shift_opened [07:32:11]FM_GetShiftState [07:32:11]SAM_PROTO_GetShiftState [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 13 01 00 [07:32:11]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:11]Read from MH i2c: E2 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 0E 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 46 [07:32:11]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:32:11]wFMCommunicate OK [07:32:11]SAM_PROTO_GetShiftState done [07:32:11]FM_GetShiftState done [07:32:11]req_shift_opened done [07:32:11]requested_item shift.open_date is exist - process it [07:32:11]req_shift_open_date [07:32:11]req_shift_open_date done [07:32:11]produce_requested_data done [07:32:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31584,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:32:11]process_action_free close_receipt [07:32:11]json_value_free [07:32:11]json_value_free done [07:32:11]process_json_proto returns [07:32:11]Send response to host [07:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31584,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:32:11]free response buf [07:32:11]execute_script done [07:32:11]execute_script returns [07:32:11]free content buf [07:32:11]Sock 6.Close socket [07:32:11]Sock 6.Thread stoped [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:02]accept exits with 5 [07:33:02]New connection [07:33:02]New thread 3067415908 created [07:33:02]Thread 3067559268 joined [07:33:02]Waiting for new connection... [07:33:02] Sock 5.Parse request [07:33:02]Sock 5.Check first char [07:33:02]Sock 5.First char is OK [07:33:02]request: POST /json_proto HTTP/1.0 [07:33:02]Method: POST [07:33:02]URL: /json_proto [07:33:02]Method is POST - this is cgi request [07:33:02]url: /json_proto [07:33:02]query_string will be loaded in cgi processing [07:33:02]execute_cgi json_proto POST (null) [07:33:02]execute_cgi path=json_proto method=POST [07:33:02]POST find Content-Length [07:33:02]Host: 172.17.39.68:8080 [07:33:02]Content-Length: 568 [07:33:02]Content-Type: application/json [07:33:02] [07:33:02]POST finish read [07:33:02]Found Content-Length = 568 [07:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214167", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "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" ] } } [07:33:02]execute_script... [07: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)214167", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "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" ] } } [07:33:02]POST & json_proto [07:33:02]process_json_proto [07:33:02]json parsed OK: [07:33:02]protocol is kg_v1.0 [07:33:02]action value=close_receipt [07:33:02]process_action close_receipt [07:33:02]cmd_close_receipt [07:33:02]MH_GetDate [07:33:02]Write to MH i2c: F0 00 00 D1 06 C6 [07:33:02]Write i2c OK [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: F0 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: F0 09 00 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: F0 09 00 D1 06 00 AF D0 94 66 EC 7F 94 66 AD [07:33:02]GetLastDocTimeStamp 1721028728 [07:33:02]current date 1721028783 [07:33:02]FM_GetShiftState [07:33:02]SAM_PROTO_GetShiftState [07:33:02]wFMCommunicate request_size=4 [07:33:02]MH_SAM_APDU [07:33:02]CAPDU: 80 13 01 00 [07:33:02]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [07:33:02]Write i2c OK [07:33:02]MH_I2C_Read... [07:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:02]Read from MH i2c: E2 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 0E 00 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 48 [07:33:02]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:33:02]wFMCommunicate OK [07:33:02]SAM_PROTO_GetShiftState done [07:33:02]FM_GetShiftState done [07:33:02]opened in 1721001862 [07:33:02]opened+sec_in_day 1721088262 [07:33:02]quantity*price = 26000 [07:33:02]sum+1 = 26001 [07:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 26 15.07.2024 07:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31585 ФПД: 223327979690087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073303&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31585&fm=223327979690087&tin=02508201610067®Number=0000000000098025&sum=26000 0 [07:33:03]StoreToDocumentArchive [07:33:03]shift 370 fd 31585 [07:33:03]save to /storage/0370/doc_00031585 [07:33:03]save last doc name /storage/0370/doc_00031585 to /storage/kkm_last_doc_name [07:33:03]save OK [07:33:03]Clear old archive folders... [07:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:33:03]tlvbuf is 01250340 [07:33:03]SAM_PROTO_ClearQueue [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 09 00 00 [07:33:03]Write to MH i2c: E2 08 00 DF 06 80 09 00 00 00 00 00 00 57 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [07:33:03]RAPDU: 90 00 [07:33:03]wFMCommunicate OK [07:33:03]SAM_PROTO_ClearQueue done [07:33:03]KKMCreateOFDPacket [07:33:03]OFDProtocolAddRootSTLVToBuf [07:33:03]FM_MakeSignedData [07:33:03]FM_MakeSignedData [07:33:03]SAM_PROTO_SignData [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 0D 01 02 [07:33:03]Write to MH i2c: E2 08 00 E0 06 80 0D 01 02 00 00 00 00 5F [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [07:33:03]RAPDU: 90 00 [07:33:03]wFMCommunicate OK [07:33:03]wFMCommunicate request_size=255 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 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 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 1A 00 00 00 F4 03 04 00 AF D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 61 7B 00 00 35 04 06 00 [07:33:03]Write to MH i2c: E2 02 01 E1 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 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 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 1A 00 00 00 F4 03 04 00 AF D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 61 7B 00 00 35 04 06 00 00 00 1B [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [07:33:03]RAPDU: 90 00 [07:33:03]wFMCommunicate OK [07:33:03]wFMCommunicate request_size=11 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 0D 02 02 06 CB 1D 98 E5 D8 67 [07:33:03]Write to MH i2c: E2 0E 00 E2 06 80 0D 02 02 06 00 CB 1D 98 E5 D8 67 00 00 12 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [07:33:03]RAPDU: 90 00 [07:33:03]wFMCommunicate OK [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 0D 03 02 [07:33:03]Write to MH i2c: E2 08 00 E3 06 80 0D 03 02 00 00 00 00 64 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 0B 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 0B 00 E3 06 00 64 53 B2 31 4F 25 74 12 90 00 F9 [07:33:03]RAPDU: 64 53 B2 31 4F 25 74 12 90 00 [07:33:03]wFMCommunicate OK [07:33:03]SAM_PROTO_SignData done [07:33:03]FM_MakeSignedData done [07:33:03]CreateOFDProtocolMessage [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 11 00 00 [07:33:03]Write to MH i2c: E2 08 00 E4 06 80 11 00 00 00 00 00 00 64 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 17 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 17 00 E4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BF [07:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:33:03]wFMCommunicate OK [07:33:03]CreateOFDProtocolMessage done [07:33:03]OFDSenderStorePacket 31585 [07:33:03]StoreOFDPacket docnum=31585 [07:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 01 00 00 E0 2F 08 01 36 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 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 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 1A 00 00 00 F4 03 04 00 AF D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 61 7B 00 00 35 04 06 00 CB 1D 98 E5 D8 67 64 53 B2 31 4F 25 74 12 [07:33:03]CheckFolder [07:33:03]dirname=/storage/ofd_packets [07:33:03]CheckFolder done [07:33:03]ProducePacketName [07:33:03]name=ofd_packets/00031585 [07:33:03]NVStorageSaveData ofd_packets/00031585 [07:33:03]File name is /storage/ofd_packets/00031585 [07:33:03]Write 302 bytes [07:33:03]NVStorageSaveData done [07:33:03]OFDSenderStorePacket done [07:33:03]KKMCreateOFDPacket done [07:33:03]NVStorageSaveData kkm_last_timestamp [07:33:03]File name is /storage/kkm_last_timestamp [07:33:03]Write 4 bytes [07:33:03]NVStorageSaveData done [07:33:03]ExternCall_PrintAddStr [07:33:03]wPrintStart [07:33:03]Write to MH i2c: 01 00 00 E5 06 EB [07:33:03]OFD Sender: Processing packet 31585 [packets to send 5, broken 4] [07:33:03]ProducePacketName [07:33:03]name=ofd_packets/00031585 [07:33:03]OFD Sender: To server: pG, [07:33:03]CommunicateWithHost lk.salyk.kg:30040 [07:33:03]ConnectInit lk.salyk.kg [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [07:33:03]RasterBufferAndPrint [07:33:03]line Счет N : (3)214167 [07:33:03]line ИНН: 02508201610067 [07:33:03]line Контрольно-Кассовый Чек [07:33:03]line ПРОДАЖА [07:33:03]line Товар: 48744539 [07:33:03]line LD Compact Blue [07:33:03]line 2.000 * 130.00 [07:33:03]line = 260.00 [07:33:03]line НДС 12% НСП 1% [07:33:03]line > о реализуемом товаре [07:33:03]line ИТОГО: 260.00 [07:33:03]line НСП 1% : 2.30 [07:33:03]line НДС 12% : 27.61 [07:33:03]line Наличными: 260.00 [07:33:03]line Безнал.: 0.00 [07:33:03]line Место: АЗС № 140 "Партнер Нефть" [07:33:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:33:03]line СНО: Общий режим [07:33:03]line Чек 26 15.07.2024 07:33 [07:33:03]line Смена: 370 ФФД: 1.0 [07:33:03]line ЗНМ: 0300000189 [07:33:03]line РНМ: 0000000000098025 [07:33:03]line Версия ККМ: 001 [07:33:03]line ФМ: 0000000000965389 [07:33:03]line ФД: 31585 [07:33:03]line ФПД: 223327979690087 [07:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073303&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31585&fm=223327979690087&tin=02508201610067®Number=0000000000098025&sum=26000 [07:33:03]line 0 [07:33:03]written 0, free lines is 4095 [07:33:03]Connected sock=7 [07:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 01 00 00 E0 2F 08 01 36 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 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 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 1A 00 00 00 F4 03 04 00 AF D0 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 61 7B 00 00 35 04 06 00 CB 1D 98 E5 D8 67 64 53 B2 31 4F 25 74 12 [07:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3D AC 47 00 30 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 61 7B 00 00 F4 03 04 00 BD 7C 94 66 B6 04 01 00 00 AF 98 68 6A B1 26 BF 34 [07:33:04]CommunicateWithHost err = 0 [07:33:04]CheckOFDResponse [07:33:04]1017 (14) - 77093643461234 [07:33:04]1041 (16) - 0000000000965389 [07:33:04]1040 (4) - 31585 [07:33:04]1012 (4) - 15.07.2024 01:34 [07:33:04]1206 (1) - 0 [07:33:04]OFD Sender: Remove packet 31585 [07:33:04]ProducePacketName [07:33:04]name=ofd_packets/00031585 [07:33:04]NVStorageDeleteData [07:33:04]Write to MH i2c: 01 00 00 0D 07 14 [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: 01 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: 01 07 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 19 0D 41 [07:33:04]RasterBufferAndPrint [07:33:04]line [07:33:04]line [07:33:04]line [07:33:04]line [07:33:04]line [07:33:04]written 0, free lines is 3361 [07:33:04]MH_Cut [07:33:04]Write to MH i2c: D1 01 00 14 07 01 ED [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: D1 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: D1 01 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: D1 01 00 14 07 00 EC [07:33:04]Write to MH i2c: 01 00 00 15 07 1C [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]OFD Sender: No OFD packet to send [07:33:05]*** Cut start [07:33:05]*** Partial cut [07:33:05]*** CUTSNS_PIN = 1 [07:33:05]*** CUTSNS_PIN = 0 [07:33:05]*** Brake cut motor [07:33:05]Read from MH i2c: 01 [07:33:05]MH_I2C_Read... [07:33:05]*** Stop cut motor [07:33:05]*** Cut end [07:33:05]Read from MH i2c: 01 07 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [07:33:05]process_action close_receipt done [07:33:05]requested_data is exist [07:33:05]produce_requested_data [07:33:05]requested_item fm.sn is exist - process it [07:33:05]wFMCommunicate request_size=4 [07:33:05]MH_SAM_APDU [07:33:05]CAPDU: 80 11 00 00 [07:33:05]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [07:33:05]Write i2c OK [07:33:05]MH_I2C_Read... [07:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:05]Read from MH i2c: E2 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 17 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F2 [07:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:33:05]wFMCommunicate OK [07:33:05]requested_item fd.num is exist - process it [07:33:05]SAM_PROTO_GetFieldsCounters [07:33:05]wFMCommunicate request_size=4 [07:33:05]MH_SAM_APDU [07:33:05]CAPDU: 80 13 00 00 [07:33:05]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [07:33:05]Write i2c OK [07:33:05]MH_I2C_Read... [07:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:05]Read from MH i2c: E2 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 62 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 62 00 17 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 61 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [07:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 61 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:33:05]wFMCommunicate OK [07:33:05]SAM_PROTO_GetFieldsCounters done [07:33:05]requested_item shift.num is exist - process it [07:33:05]requested_item shift.opened is exist - process it [07:33:05]req_shift_opened [07:33:05]FM_GetShiftState [07:33:05]SAM_PROTO_GetShiftState [07:33:05]wFMCommunicate request_size=4 [07:33:05]MH_SAM_APDU [07:33:05]CAPDU: 80 13 01 00 [07:33:05]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [07:33:05]Write i2c OK [07:33:05]MH_I2C_Read... [07:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:05]Read from MH i2c: E2 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8F [07:33:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:33:05]wFMCommunicate OK [07:33:05]SAM_PROTO_GetShiftState done [07:33:05]FM_GetShiftState done [07:33:05]req_shift_opened done [07:33:05]requested_item shift.open_date is exist - process it [07:33:05]req_shift_open_date [07:33:05]req_shift_open_date done [07:33:05]produce_requested_data done [07:33:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31585,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:33:05]process_action_free close_receipt [07:33:05]json_value_free [07:33:05]json_value_free done [07:33:05]process_json_proto returns [07:33:05]Send response to host [07:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31585,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:33:05]free response buf [07:33:05]execute_script done [07:33:05]execute_script returns [07:33:05]free content buf [07:33:05]Sock 5.Close socket [07:33:05]Sock 5.Thread stoped [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:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:23]accept exits with 6 [07:34:23]New connection [07:34:23]New thread 3067559268 created [07:34:23]Thread 3067415908 joined [07:34:23]Waiting for new connection... [07:34:23] Sock 6.Parse request [07:34:23]Sock 6.Check first char [07:34:23]Sock 6.First char is OK [07:34:23]request: POST /json_proto HTTP/1.0 [07:34:23]Method: POST [07:34:23]URL: /json_proto [07:34:23]Method is POST - this is cgi request [07:34:23]url: /json_proto [07:34:23]query_string will be loaded in cgi processing [07:34:23]execute_cgi json_proto POST (null) [07:34:23]execute_cgi path=json_proto method=POST [07:34:23]POST find Content-Length [07:34:23]Host: 172.17.39.68:8080 [07:34:23]Content-Length: 983 [07:34:23]Content-Type: application/json [07:34:23] [07:34:23]POST finish read [07:34:23]Found Content-Length = 983 [07:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214168", "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" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\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" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:23]execute_script... [07:34: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)214168", "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" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\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" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:23]POST & json_proto [07:34:23]process_json_proto [07:34:23]json parsed OK: [07:34:23]protocol is kg_v1.0 [07:34:23]action value=close_receipt [07:34:23]process_action close_receipt [07:34:23]cmd_close_receipt [07:34:23]MH_GetDate [07:34:23]Write to MH i2c: F0 00 00 19 07 0F [07:34:23]Write i2c OK [07:34:23]MH_I2C_Read... [07:34:23]Read from MH i2c: F0 [07:34:23]MH_I2C_Read... [07:34:23]Read from MH i2c: F0 09 00 [07:34:23]MH_I2C_Read... [07:34:23]Read from MH i2c: F0 09 00 19 07 00 00 D1 94 66 EC 7F 94 66 48 [07:34:23]GetLastDocTimeStamp 1721028783 [07:34:23]current date 1721028864 [07:34:23]FM_GetShiftState [07:34:23]SAM_PROTO_GetShiftState [07:34:23]wFMCommunicate request_size=4 [07:34:23]MH_SAM_APDU [07:34:23]CAPDU: 80 13 01 00 [07:34:23]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [07:34:23]Write i2c OK [07:34:23]MH_I2C_Read... [07:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:23]Read from MH i2c: E2 [07:34:23]MH_I2C_Read... [07:34:23]Read from MH i2c: E2 0E 00 [07:34:23]MH_I2C_Read... [07:34:23]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 91 [07:34:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:34:23]wFMCommunicate OK [07:34:23]SAM_PROTO_GetShiftState done [07:34:23]FM_GetShiftState done [07:34:23]opened in 1721001862 [07:34:23]opened+sec_in_day 1721088262 [07:34:23]quantity*price = 19000 [07:34:23]sum+1 = 19001 [07:34:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.21 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 27 15.07.2024 07:34 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31586 ФПД: 195077664117268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073425&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31586&fm=195077664117268&tin=02508201610067®Number=0000000000098025&sum=27500 0 [07:34:24]StoreToDocumentArchive [07:34:24]shift 370 fd 31586 [07:34:24]save to /storage/0370/doc_00031586 [07:34:24]save last doc name /storage/0370/doc_00031586 to /storage/kkm_last_doc_name [07:34:24]save OK [07:34:24]Clear old archive folders... [07:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=428 [07:34:24]tlvbuf is 012676D0 [07:34:24]SAM_PROTO_ClearQueue [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 09 00 00 [07:34:24]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 03 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [07:34:24]RAPDU: 90 00 [07:34:24]wFMCommunicate OK [07:34:24]SAM_PROTO_ClearQueue done [07:34:24]KKMCreateOFDPacket [07:34:24]OFDProtocolAddRootSTLVToBuf [07:34:24]FM_MakeSignedData [07:34:24]FM_MakeSignedData [07:34:24]SAM_PROTO_SignData [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 0D 01 02 [07:34:24]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 03 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [07:34:24]RAPDU: 90 00 [07:34:24]wFMCommunicate OK [07:34:24]wFMCommunicate request_size=255 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 0D 02 02 FA 03 00 AC 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 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 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 [07:34:24]Write to MH i2c: E2 02 01 29 07 80 0D 02 02 FA 00 03 00 AC 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 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 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 20 [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:25]Read from MH i2c: E2 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 03 00 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [07:34:25]RAPDU: 90 00 [07:34:25]wFMCommunicate OK [07:34:25]wFMCommunicate request_size=187 [07:34:25]MH_SAM_APDU [07:34:25]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 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 01 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 62 7B 00 00 35 04 06 00 B1 6C 0E DF 92 14 [07:34:25]Write to MH i2c: E2 BE 00 2A 07 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 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 01 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 62 7B 00 00 35 04 06 00 B1 6C 0E DF 92 14 00 00 10 [07:34:25]Write i2c OK [07:34:25]MH_I2C_Read... [07:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:25]Read from MH i2c: E2 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 03 00 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [07:34:25]RAPDU: 90 00 [07:34:25]wFMCommunicate OK [07:34:25]wFMCommunicate request_size=4 [07:34:25]MH_SAM_APDU [07:34:25]CAPDU: 80 0D 03 02 [07:34:25]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [07:34:25]Write i2c OK [07:34:25]MH_I2C_Read... [07:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:25]Read from MH i2c: E2 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 0B 00 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 0B 00 2B 07 00 C6 3C DC 9C 9F 89 C5 AB 90 00 C0 [07:34:25]RAPDU: C6 3C DC 9C 9F 89 C5 AB 90 00 [07:34:25]wFMCommunicate OK [07:34:25]SAM_PROTO_SignData done [07:34:25]FM_MakeSignedData done [07:34:25]CreateOFDProtocolMessage [07:34:25]wFMCommunicate request_size=4 [07:34:25]MH_SAM_APDU [07:34:25]CAPDU: 80 11 00 00 [07:34:25]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [07:34:25]Write i2c OK [07:34:25]MH_I2C_Read... [07:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:25]Read from MH i2c: E2 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 17 00 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 08 [07:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:34:25]wFMCommunicate OK [07:34:25]CreateOFDProtocolMessage done [07:34:25]OFDSenderStorePacket 31586 [07:34:25]StoreOFDPacket docnum=31586 [07:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C0 01 00 00 07 E2 B8 01 C8 D5 5A 03 01 00 03 00 AC 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 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 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 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 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 01 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 62 7B 00 00 35 04 06 00 B1 6C 0E DF 92 14 C6 3C DC 9C 9F 89 C5 AB [07:34:25]CheckFolder [07:34:25]dirname=/storage/ofd_packets [07:34:25]CheckFolder done [07:34:25]ProducePacketName [07:34:25]name=ofd_packets/00031586 [07:34:25]NVStorageSaveData ofd_packets/00031586 [07:34:25]File name is /storage/ofd_packets/00031586 [07:34:25]Write 478 bytes [07:34:25]NVStorageSaveData done [07:34:25]OFDSenderStorePacket done [07:34:25]KKMCreateOFDPacket done [07:34:25]NVStorageSaveData kkm_last_timestamp [07:34:25]File name is /storage/kkm_last_timestamp [07:34:25]Write 4 bytes [07:34:25]NVStorageSaveData done [07:34:25]ExternCall_PrintAddStr [07:34:25]wPrintStart [07:34:25]Write to MH i2c: 01 00 00 2D 07 34 [07:34:25]Write i2c OK [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: 01 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: 01 07 00 [07:34:25]MH_I2C_Read... [07:34:25]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [07:34:25]RasterBufferAndPrint [07:34:25]line Счет N : (3)214168 [07:34:25]line ИНН: 02508201610067 [07:34:25]line Контрольно-Кассовый Чек [07:34:25]line ПРОДАЖА [07:34:25]line Товар: 4700000480302 [07:34:25]line Напиток энерг Nitro манго-клуб 0.45 ж/б [07:34:25]line 2.000 * 95.00 [07:34:25]line = 190.00 [07:34:25]line НДС 12% НСП 1% [07:34:25]line > о реализуемом товаре [07:34:25]line Товар: 4600682557456 [07:34:25]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:34:25]line 1.000 * 85.00 [07:34:25]line = 85.00 [07:34:25]line НДС 12% НСП 1% [07:34:25]line > о реализуемом товаре [07:34:25]line ИТОГО: 275.00 [07:34:25]line НСП 1% : 2.43 [07:34:25]line НДС 12% : 29.21 [07:34:25]line Наличными: 275.00 [07:34:25]line Безнал.: 0.00 [07:34:25]line Место: АЗС № 140 "Партнер Нефть" [07:34:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:34:25]line СНО: Общий режим [07:34:25]line Чек 27 15.07.2024 07:34 [07:34:25]line Смена: 370 ФФД: 1.0 [07:34:25]line ЗНМ: 0300000189 [07:34:25]line РНМ: 0000000000098025 [07:34:25]line Версия ККМ: 001 [07:34:25]line ФМ: 0000000000965389 [07:34:25]line ФД: 31586 [07:34:25]line ФПД: 195077664117268 [07:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073425&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31586&fm=195077664117268&tin=02508201610067®Number=0000000000098025&sum=27500 [07:34:25]OFD Sender: Processing packet 31586 [packets to send 5, broken 4] [07:34:25]ProducePacketName [07:34:25]name=ofd_packets/00031586 [07:34:25]OFD Sender: To server: pG, [07:34:25]CommunicateWithHost lk.salyk.kg:30040 [07:34:25]ConnectInit lk.salyk.kg [07:34:25]line 0 [07:34:25]written 0, free lines is 4095 [07:34:25]Connected sock=7 [07:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C0 01 00 00 07 E2 B8 01 C8 D5 5A 03 01 00 03 00 AC 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 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 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 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 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 01 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 62 7B 00 00 35 04 06 00 B1 6C 0E DF 92 14 C6 3C DC 9C 9F 89 C5 AB [07:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 7E 08 47 00 E1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 62 7B 00 00 F4 03 04 00 0F 7D 94 66 B6 04 01 00 00 2F 86 BB FF 5D 50 E9 CF [07:34:26]CommunicateWithHost err = 0 [07:34:26]CheckOFDResponse [07:34:26]1017 (14) - 77093643461234 [07:34:26]1041 (16) - 0000000000965389 [07:34:26]1040 (4) - 31586 [07:34:26]1012 (4) - 15.07.2024 01:36 [07:34:26]1206 (1) - 0 [07:34:26]OFD Sender: Remove packet 31586 [07:34:26]ProducePacketName [07:34:26]name=ofd_packets/00031586 [07:34:26]NVStorageDeleteData [07:34:26]Write to MH i2c: 01 00 00 5D 07 64 [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 07 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 95 0C 0C [07:34:26]RasterBufferAndPrint [07:34:26]line [07:34:26]line [07:34:26]line [07:34:26]line [07:34:26]line [07:34:26]written 0, free lines is 3227 [07:34:26]MH_Cut [07:34:26]Write to MH i2c: D1 01 00 64 07 01 3D [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: D1 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: D1 01 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: D1 01 00 64 07 00 3C [07:34:26]Write to MH i2c: 01 00 00 65 07 6C [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]OFD Sender: No OFD packet to send [07:34:27]*** Cut start [07:34:27]*** Partial cut [07:34:27]*** CUTSNS_PIN = 1 [07:34:27]*** CUTSNS_PIN = 0 [07:34:27]*** Brake cut motor [07:34:27]Read from MH i2c: 01 [07:34:27]MH_I2C_Read... [07:34:27]*** Stop cut motor [07:34:27]*** Cut end [07:34:27]Read from MH i2c: 01 07 00 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [07:34:27]process_action close_receipt done [07:34:27]requested_data is exist [07:34:27]produce_requested_data [07:34:27]requested_item fm.sn is exist - process it [07:34:27]wFMCommunicate request_size=4 [07:34:27]MH_SAM_APDU [07:34:27]CAPDU: 80 11 00 00 [07:34:27]Write to MH i2c: E2 08 00 66 07 80 11 00 00 00 00 00 00 E7 [07:34:27]Write i2c OK [07:34:27]MH_I2C_Read... [07:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:27]Read from MH i2c: E2 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: E2 17 00 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: E2 17 00 66 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 42 [07:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:34:27]wFMCommunicate OK [07:34:27]requested_item fd.num is exist - process it [07:34:27]SAM_PROTO_GetFieldsCounters [07:34:27]wFMCommunicate request_size=4 [07:34:27]MH_SAM_APDU [07:34:27]CAPDU: 80 13 00 00 [07:34:27]Write to MH i2c: E2 08 00 67 07 80 13 00 00 00 00 00 00 EA [07:34:27]Write i2c OK [07:34:27]MH_I2C_Read... [07:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:28]Read from MH i2c: E2 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 62 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 62 00 67 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 62 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [07:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 62 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:28]wFMCommunicate OK [07:34:28]SAM_PROTO_GetFieldsCounters done [07:34:28]requested_item shift.num is exist - process it [07:34:28]requested_item shift.opened is exist - process it [07:34:28]req_shift_opened [07:34:28]FM_GetShiftState [07:34:28]SAM_PROTO_GetShiftState [07:34:28]wFMCommunicate request_size=4 [07:34:28]MH_SAM_APDU [07:34:28]CAPDU: 80 13 01 00 [07:34:28]Write to MH i2c: E2 08 00 68 07 80 13 01 00 00 00 00 00 EC [07:34:28]Write i2c OK [07:34:28]MH_I2C_Read... [07:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:28]Read from MH i2c: E2 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 0E 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 0E 00 68 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DF [07:34:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:34:28]wFMCommunicate OK [07:34:28]SAM_PROTO_GetShiftState done [07:34:28]FM_GetShiftState done [07:34:28]req_shift_opened done [07:34:28]requested_item shift.open_date is exist - process it [07:34:28]req_shift_open_date [07:34:28]req_shift_open_date done [07:34:28]produce_requested_data done [07:34:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31586,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:34:28]process_action_free close_receipt [07:34:28]json_value_free [07:34:28]json_value_free done [07:34:28]process_json_proto returns [07:34:28]Send response to host [07:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31586,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:34:28]free response buf [07:34:28]execute_script done [07:34:28]execute_script returns [07:34:28]free content buf [07:34:28]Sock 6.Close socket [07:34:28]Sock 6.Thread stoped [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]accept exits with 5 [07:34:56]New connection [07:34:56]New thread 3067415908 created [07:34:56]Thread 3067559268 joined [07:34:56]Waiting for new connection... [07:34:56] Sock 5.Parse request [07:34:56]Sock 5.Check first char [07:34:56]Sock 5.First char is OK [07:34:56]request: POST /json_proto HTTP/1.0 [07:34:56]Method: POST [07:34:56]URL: /json_proto [07:34:56]Method is POST - this is cgi request [07:34:56]url: /json_proto [07:34:56]query_string will be loaded in cgi processing [07:34:56]execute_cgi json_proto POST (null) [07:34:56]execute_cgi path=json_proto method=POST [07:34:56]POST find Content-Length [07:34:56]Host: 172.17.39.68:8080 [07:34:56]Content-Length: 709 [07:34:56]Content-Type: application/json [07:34:56] [07:34:56]POST finish read [07:34:56]Found Content-Length = 709 [07:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214169", "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" ] } } [07:34:56]execute_script... [07:34:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214169", "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" ] } } [07:34:56]POST & json_proto [07:34:56]process_json_proto [07:34:56]json parsed OK: [07:34:56]protocol is kg_v1.0 [07:34:56]action value=close_receipt [07:34:56]process_action close_receipt [07:34:56]cmd_close_receipt [07:34:56]MH_GetDate [07:34:56]Write to MH i2c: F0 00 00 69 07 5F [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 09 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 09 00 69 07 00 21 D1 94 66 EC 7F 94 66 B9 [07:34:56]GetLastDocTimeStamp 1721028865 [07:34:56]current date 1721028897 [07:34:56]FM_GetShiftState [07:34:56]SAM_PROTO_GetShiftState [07:34:56]wFMCommunicate request_size=4 [07:34:56]MH_SAM_APDU [07:34:56]CAPDU: 80 13 01 00 [07:34:56]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0E 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E1 [07:34:56]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:34:56]wFMCommunicate OK [07:34:56]SAM_PROTO_GetShiftState done [07:34:56]FM_GetShiftState done [07:34:56]opened in 1721001862 [07:34:56]opened+sec_in_day 1721088262 [07:34:56]quantity*price = 9500 [07:34:56]sum+1 = 9501 [07:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 28 15.07.2024 07:34 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31587 ФПД: 114109915798843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073457&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31587&fm=114109915798843&tin=02508201610067®Number=0000000000098025&sum=9500 0 [07:34:57]StoreToDocumentArchive [07:34:57]shift 370 fd 31587 [07:34:57]save to /storage/0370/doc_00031587 [07:34:57]save last doc name /storage/0370/doc_00031587 to /storage/kkm_last_doc_name [07:34:57]save OK [07:34:57]Clear old archive folders... [07:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=304 [07:34:57]tlvbuf is 01269AE0 [07:34:57]SAM_PROTO_ClearQueue [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 09 00 00 [07:34:57]Write to MH i2c: E2 08 00 77 07 80 09 00 00 00 00 00 00 F0 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]SAM_PROTO_ClearQueue done [07:34:57]KKMCreateOFDPacket [07:34:57]OFDProtocolAddRootSTLVToBuf [07:34:57]FM_MakeSignedData [07:34:57]FM_MakeSignedData [07:34:57]SAM_PROTO_SignData [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 01 02 [07:34:57]Write to MH i2c: E2 08 00 78 07 80 0D 01 02 00 00 00 00 F8 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]wFMCommunicate request_size=255 [07:34:57]MH_SAM_APDU [07:34:57]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 1C 00 00 00 F4 03 04 00 21 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 [07:34:57]Write to MH i2c: E2 02 01 79 07 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 1C 00 00 00 F4 03 04 00 21 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 00 00 B9 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]wFMCommunicate request_size=63 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 63 7B 00 00 35 04 06 00 67 C8 48 FF 1D 3B [07:34:57]Write to MH i2c: E2 42 00 7A 07 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 63 7B 00 00 35 04 06 00 67 C8 48 FF 1D 3B 00 00 F8 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 03 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [07:34:58]RAPDU: 90 00 [07:34:58]wFMCommunicate OK [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 0D 03 02 [07:34:58]Write to MH i2c: E2 08 00 7B 07 80 0D 03 02 00 00 00 00 FD [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0B 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0B 00 7B 07 00 4D F1 F1 CB 1D 52 47 60 90 00 0E [07:34:58]RAPDU: 4D F1 F1 CB 1D 52 47 60 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_SignData done [07:34:58]FM_MakeSignedData done [07:34:58]CreateOFDProtocolMessage [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 11 00 00 [07:34:58]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 58 [07:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:34:58]wFMCommunicate OK [07:34:58]CreateOFDProtocolMessage done [07:34:58]OFDSenderStorePacket 31587 [07:34:58]StoreOFDPacket docnum=31587 [07:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 04 84 3C 01 37 3F 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 1C 00 00 00 F4 03 04 00 21 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 63 7B 00 00 35 04 06 00 67 C8 48 FF 1D 3B 4D F1 F1 CB 1D 52 47 60 [07:34:58]CheckFolder [07:34:58]dirname=/storage/ofd_packets [07:34:58]CheckFolder done [07:34:58]ProducePacketName [07:34:58]name=ofd_packets/00031587 [07:34:58]NVStorageSaveData ofd_packets/00031587 [07:34:58]File name is /storage/ofd_packets/00031587 [07:34:58]Write 354 bytes [07:34:58]NVStorageSaveData done [07:34:58]OFDSenderStorePacket done [07:34:58]KKMCreateOFDPacket done [07:34:58]NVStorageSaveData kkm_last_timestamp [07:34:58]File name is /storage/kkm_last_timestamp [07:34:58]Write 4 bytes [07:34:58]NVStorageSaveData done [07:34:58]ExternCall_PrintAddStr [07:34:58]wPrintStart [07:34:58]Write to MH i2c: 01 00 00 7D 07 84 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [07:34:58]RasterBufferAndPrint [07:34:58]line Счет N : (3)214169 [07:34:58]line ИНН: 02508201610067 [07:34:58]line Контрольно-Кассовый Чек [07:34:58]line ПРОДАЖА [07:34:58]line Товар: 4700000480302 [07:34:58]line Напиток энерг Nitro манго-клуб 0.45 ж/б [07:34:58]line 1.000 * 95.00 [07:34:58]line = 95.00 [07:34:58]line НДС 12% НСП 1% [07:34:58]line > о реализуемом товаре [07:34:58]line ИТОГО: 95.00 [07:34:58]line НСП 1% : 0.84 [07:34:58]line НДС 12% : 10.09 [07:34:58]line Наличными: 95.00 [07:34:58]line Безнал.: 0.00 [07:34:58]line Место: АЗС № 140 "Партнер Нефть" [07:34:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:34:58]line СНО: Общий режим [07:34:58]line Чек 28 15.07.2024 07:34 [07:34:58]line Смена: 370 ФФД: 1.0 [07:34:58]line ЗНМ: 0300000189 [07:34:58]line РНМ: 0000000000098025 [07:34:58]line Версия ККМ: 001 [07:34:58]line ФМ: 0000000000965389 [07:34:58]line ФД: 31587 [07:34:58]line ФПД: 114109915798843 [07:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073457&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31587&fm=114109915798843&tin=02508201610067®Number=0000000000098025&sum=9500 [07:34:58]line 0 [07:34:58]OFD Sender: Processing packet 31587 [packets to send 5, broken 4] [07:34:58]ProducePacketName [07:34:58]name=ofd_packets/00031587 [07:34:58]OFD Sender: To server: pG, [07:34:58]CommunicateWithHost lk.salyk.kg:30040 [07:34:58]ConnectInit lk.salyk.kg [07:34:58]written 0, free lines is 4095 [07:34:58]Connected sock=7 [07:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 04 84 3C 01 37 3F 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 1C 00 00 00 F4 03 04 00 21 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 63 7B 00 00 35 04 06 00 67 C8 48 FF 1D 3B 4D F1 F1 CB 1D 52 47 60 [07:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BA 82 47 00 C6 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 63 7B 00 00 F4 03 04 00 2F 7D 94 66 B6 04 01 00 00 2C 9E 69 48 2E B9 96 CD [07:34:58]CommunicateWithHost err = 0 [07:34:58]CheckOFDResponse [07:34:58]1017 (14) - 77093643461234 [07:34:58]1041 (16) - 0000000000965389 [07:34:58]1040 (4) - 31587 [07:34:58]1012 (4) - 15.07.2024 01:36 [07:34:58]1206 (1) - 0 [07:34:58]OFD Sender: Remove packet 31587 [07:34:58]ProducePacketName [07:34:58]name=ofd_packets/00031587 [07:34:58]NVStorageDeleteData [07:34:58]Write to MH i2c: 01 00 00 A6 07 AD [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 F5 0C B5 [07:34:58]RasterBufferAndPrint [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]written 0, free lines is 3324 [07:34:58]MH_Cut [07:34:58]Write to MH i2c: D1 01 00 AD 07 01 86 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 01 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 01 00 AD 07 00 85 [07:34:58]Write to MH i2c: 01 00 00 AE 07 B5 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:59]OFD Sender: No OFD packet to send [07:34:59]*** Cut start [07:34:59]*** Partial cut [07:34:59]*** CUTSNS_PIN = 1 [07:34:59]*** CUTSNS_PIN = 0 [07:34:59]*** Brake cut motor [07:35:00]Read from MH i2c: 01 [07:35:00]MH_I2C_Read... [07:35:00]*** Stop cut motor [07:35:00]*** Cut end [07:35:00]Read from MH i2c: 01 07 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [07:35:00]process_action close_receipt done [07:35:00]requested_data is exist [07:35:00]produce_requested_data [07:35:00]requested_item fm.sn is exist - process it [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 11 00 00 [07:35:00]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 17 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [07:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:35:00]wFMCommunicate OK [07:35:00]requested_item fd.num is exist - process it [07:35:00]SAM_PROTO_GetFieldsCounters [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 00 00 [07:35:00]Write to MH i2c: E2 08 00 B0 07 80 13 00 00 00 00 00 00 33 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 62 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 62 00 B0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 63 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [07:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 63 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetFieldsCounters done [07:35:00]requested_item shift.num is exist - process it [07:35:00]requested_item shift.opened is exist - process it [07:35:00]req_shift_opened [07:35:00]FM_GetShiftState [07:35:00]SAM_PROTO_GetShiftState [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 01 00 [07:35:00]Write to MH i2c: E2 08 00 B1 07 80 13 01 00 00 00 00 00 35 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 B1 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 28 [07:35:00]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetShiftState done [07:35:00]FM_GetShiftState done [07:35:00]req_shift_opened done [07:35:00]requested_item shift.open_date is exist - process it [07:35:00]req_shift_open_date [07:35:00]req_shift_open_date done [07:35:00]produce_requested_data done [07:35:00]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31587,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:35:00]process_action_free close_receipt [07:35:00]json_value_free [07:35:00]json_value_free done [07:35:00]process_json_proto returns [07:35:00]Send response to host [07:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31587,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:35:00]free response buf [07:35:00]execute_script done [07:35:00]execute_script returns [07:35:00]free content buf [07:35:00]Sock 5.Close socket [07:35:00]Sock 5.Thread stoped [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:18]accept exits with 6 [07:35:18]New connection [07:35:18]New thread 3067559268 created [07:35:18]Thread 3067415908 joined [07:35:18]Waiting for new connection... [07:35:18] Sock 6.Parse request [07:35:18]Sock 6.Check first char [07:35:18]Sock 6.First char is OK [07:35:18]request: POST /json_proto HTTP/1.0 [07:35:18]Method: POST [07:35:18]URL: /json_proto [07:35:18]Method is POST - this is cgi request [07:35:18]url: /json_proto [07:35:18]query_string will be loaded in cgi processing [07:35:18]execute_cgi json_proto POST (null) [07:35:18]execute_cgi path=json_proto method=POST [07:35:18]POST find Content-Length [07:35:18]Host: 172.17.39.68:8080 [07:35:18]Content-Length: 816 [07:35:18]Content-Type: application/json [07:35:18] [07:35:18]POST finish read [07:35:18]Found Content-Length = 816 [07:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214170", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:18]execute_script... [07:35: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)214170", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:18]POST & json_proto [07:35:18]process_json_proto [07:35:18]json parsed OK: [07:35:18]protocol is kg_v1.0 [07:35:18]action value=close_receipt [07:35:18]process_action close_receipt [07:35:18]cmd_close_receipt [07:35:18]MH_GetDate [07:35:18]Write to MH i2c: F0 00 00 B2 07 A8 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: F0 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: F0 09 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: F0 09 00 B2 07 00 37 D1 94 66 EC 7F 94 66 18 [07:35:18]GetLastDocTimeStamp 1721028897 [07:35:18]current date 1721028919 [07:35:18]FM_GetShiftState [07:35:18]SAM_PROTO_GetShiftState [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 13 01 00 [07:35:18]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 2A [07:35:18]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:35:18]wFMCommunicate OK [07:35:18]SAM_PROTO_GetShiftState done [07:35:18]FM_GetShiftState done [07:35:18]opened in 1721001862 [07:35:18]opened+sec_in_day 1721088262 [07:35:18]quantity*price = 8500 [07:35:18]sum+1 = 8501 [07:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 29 15.07.2024 07:35 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31588 ФПД: 207858882572915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073519&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31588&fm=207858882572915&tin=02508201610067®Number=0000000000098025&sum=8500 0 [07:35:19]StoreToDocumentArchive [07:35:19]shift 370 fd 31588 [07:35:19]save to /storage/0370/doc_00031588 [07:35:19]save last doc name /storage/0370/doc_00031588 to /storage/kkm_last_doc_name [07:35:19]save OK [07:35:19]Clear old archive folders... [07:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:35:19]tlvbuf is 0125C580 [07:35:19]SAM_PROTO_ClearQueue [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 09 00 00 [07:35:19]Write to MH i2c: E2 08 00 C0 07 80 09 00 00 00 00 00 00 39 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [07:35:19]RAPDU: 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_ClearQueue done [07:35:19]KKMCreateOFDPacket [07:35:19]OFDProtocolAddRootSTLVToBuf [07:35:19]FM_MakeSignedData [07:35:19]FM_MakeSignedData [07:35:19]SAM_PROTO_SignData [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 0D 01 02 [07:35:19]Write to MH i2c: E2 08 00 C1 07 80 0D 01 02 00 00 00 00 41 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [07:35:19]RAPDU: 90 00 [07:35:19]wFMCommunicate OK [07:35:19]wFMCommunicate request_size=255 [07:35:19]MH_SAM_APDU [07:35:19]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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 37 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:35:19]Write to MH i2c: E2 02 01 C2 07 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 37 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B7 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [07:35:19]RAPDU: 90 00 [07:35:19]wFMCommunicate OK [07:35:19]wFMCommunicate request_size=53 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 64 7B 00 00 35 04 06 00 BD 0B EA DB F2 73 [07:35:19]Write to MH i2c: E2 38 00 C3 07 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 64 7B 00 00 35 04 06 00 BD 0B EA DB F2 73 00 00 11 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [07:35:19]RAPDU: 90 00 [07:35:19]wFMCommunicate OK [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 0D 03 02 [07:35:19]Write to MH i2c: E2 08 00 C4 07 80 0D 03 02 00 00 00 00 46 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0B 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0B 00 C4 07 00 9B 25 B1 3C B8 8B 24 79 90 00 D4 [07:35:19]RAPDU: 9B 25 B1 3C B8 8B 24 79 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_SignData done [07:35:19]FM_MakeSignedData done [07:35:19]CreateOFDProtocolMessage [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 11 00 00 [07:35:19]Write to MH i2c: E2 08 00 C5 07 80 11 00 00 00 00 00 00 46 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 17 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 17 00 C5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A1 [07:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:35:20]wFMCommunicate OK [07:35:20]CreateOFDProtocolMessage done [07:35:20]OFDSenderStorePacket 31588 [07:35:20]StoreOFDPacket docnum=31588 [07:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F4 3A 32 01 4B 23 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 37 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 64 7B 00 00 35 04 06 00 BD 0B EA DB F2 73 9B 25 B1 3C B8 8B 24 79 [07:35:20]CheckFolder [07:35:20]dirname=/storage/ofd_packets [07:35:20]CheckFolder done [07:35:20]ProducePacketName [07:35:20]name=ofd_packets/00031588 [07:35:20]NVStorageSaveData ofd_packets/00031588 [07:35:20]File name is /storage/ofd_packets/00031588 [07:35:20]Write 344 bytes [07:35:20]NVStorageSaveData done [07:35:20]OFDSenderStorePacket done [07:35:20]KKMCreateOFDPacket done [07:35:20]NVStorageSaveData kkm_last_timestamp [07:35:20]File name is /storage/kkm_last_timestamp [07:35:20]Write 4 bytes [07:35:20]NVStorageSaveData done [07:35:20]ExternCall_PrintAddStr [07:35:20]wPrintStart [07:35:20]Write to MH i2c: 01 00 00 C6 07 CD [07:35:20]Write i2c OK [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 07 00 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 FF 0F E2 [07:35:20]RasterBufferAndPrint [07:35:20]line Счет N : (3)214170 [07:35:20]line ИНН: 02508201610067 [07:35:20]line Контрольно-Кассовый Чек [07:35:20]line ПРОДАЖА [07:35:20]line Товар: 4600682557456 [07:35:20]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:35:20]line 1.000 * 85.00 [07:35:20]line = 85.00 [07:35:20]line НДС 12% НСП 1% [07:35:20]line > о реализуемом товаре [07:35:20]line ИТОГО: 85.00 [07:35:20]line НСП 1% : 0.75 [07:35:20]line НДС 12% : 9.03 [07:35:20]line Наличными: 0.00 [07:35:20]line Безнал.: 85.00 [07:35:20]line Место: АЗС № 140 "Партнер Нефть" [07:35:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:35:20]line СНО: Общий режим [07:35:20]line Чек 29 15.07.2024 07:35 [07:35:20]line Смена: 370 ФФД: 1.0 [07:35:20]line ЗНМ: 0300000189 [07:35:20]line РНМ: 0000000000098025 [07:35:20]line Версия ККМ: 001 [07:35:20]line Платежная система: O! деньги [07:35:20]line ФМ: 0000000000965389 [07:35:20]line ФД: 31588 [07:35:20]line ФПД: 207858882572915 [07:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073519&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31588&fm=207858882572915&tin=02508201610067®Number=0000000000098025&sum=8500 [07:35:20]line 0 [07:35:20]OFD Sender: Processing packet 31588 [packets to send 5, broken 4] [07:35:20]ProducePacketName [07:35:20]name=ofd_packets/00031588 [07:35:20]OFD Sender: To server: pG, [07:35:20]CommunicateWithHost lk.salyk.kg:30040 [07:35:20]ConnectInit lk.salyk.kg [07:35:20]written 0, free lines is 4095 [07:35:20]Connected sock=5 [07:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F4 3A 32 01 4B 23 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 37 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 64 7B 00 00 35 04 06 00 BD 0B EA DB F2 73 9B 25 B1 3C B8 8B 24 79 [07:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 72 15 47 00 79 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 64 7B 00 00 F4 03 04 00 45 7D 94 66 B6 04 01 00 00 E7 8F 17 69 14 19 2C 61 [07:35:20]CommunicateWithHost err = 0 [07:35:20]CheckOFDResponse [07:35:20]1017 (14) - 77093643461234 [07:35:20]1041 (16) - 0000000000965389 [07:35:20]1040 (4) - 31588 [07:35:20]1012 (4) - 15.07.2024 01:37 [07:35:20]1206 (1) - 0 [07:35:20]OFD Sender: Remove packet 31588 [07:35:20]ProducePacketName [07:35:20]name=ofd_packets/00031588 [07:35:20]NVStorageDeleteData [07:35:20]Write to MH i2c: 01 00 00 F1 07 F8 [07:35:20]Write i2c OK [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 07 00 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: 01 07 00 F1 07 00 00 00 00 00 E3 0C EE [07:35:20]RasterBufferAndPrint [07:35:20]line [07:35:20]line [07:35:20]line [07:35:20]line [07:35:20]line [07:35:20]written 0, free lines is 3305 [07:35:20]MH_Cut [07:35:20]Write to MH i2c: D1 01 00 F8 07 01 D1 [07:35:20]Write i2c OK [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: D1 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: D1 01 00 [07:35:20]MH_I2C_Read... [07:35:20]Read from MH i2c: D1 01 00 F8 07 00 D0 [07:35:20]Write to MH i2c: 01 00 00 F9 07 00 [07:35:20]Write i2c OK [07:35:20]MH_I2C_Read... [07:35:21]OFD Sender: No OFD packet to send [07:35:21]*** Cut start [07:35:21]*** Partial cut [07:35:21]*** CUTSNS_PIN = 1 [07:35:21]*** CUTSNS_PIN = 0 [07:35:21]*** Brake cut motor [07:35:22]Read from MH i2c: 01 [07:35:22]MH_I2C_Read... [07:35:22]*** Stop cut motor [07:35:22]*** Cut end [07:35:22]Read from MH i2c: 01 07 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [07:35:22]process_action close_receipt done [07:35:22]requested_data is exist [07:35:22]produce_requested_data [07:35:22]requested_item fm.sn is exist - process it [07:35:22]wFMCommunicate request_size=4 [07:35:22]MH_SAM_APDU [07:35:22]CAPDU: 80 11 00 00 [07:35:22]Write to MH i2c: E2 08 00 FA 07 80 11 00 00 00 00 00 00 7B [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:22]Read from MH i2c: E2 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 17 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 17 00 FA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D6 [07:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:35:22]wFMCommunicate OK [07:35:22]requested_item fd.num is exist - process it [07:35:22]SAM_PROTO_GetFieldsCounters [07:35:22]wFMCommunicate request_size=4 [07:35:22]MH_SAM_APDU [07:35:22]CAPDU: 80 13 00 00 [07:35:22]Write to MH i2c: E2 08 00 FB 07 80 13 00 00 00 00 00 00 7E [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:22]Read from MH i2c: E2 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 62 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 62 00 FB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 64 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [07:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 64 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:22]wFMCommunicate OK [07:35:22]SAM_PROTO_GetFieldsCounters done [07:35:22]requested_item shift.num is exist - process it [07:35:22]requested_item shift.opened is exist - process it [07:35:22]req_shift_opened [07:35:22]FM_GetShiftState [07:35:22]SAM_PROTO_GetShiftState [07:35:22]wFMCommunicate request_size=4 [07:35:22]MH_SAM_APDU [07:35:22]CAPDU: 80 13 01 00 [07:35:22]Write to MH i2c: E2 08 00 FC 07 80 13 01 00 00 00 00 00 80 [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:22]Read from MH i2c: E2 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 0E 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: E2 0E 00 FC 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 73 [07:35:22]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:35:22]wFMCommunicate OK [07:35:22]SAM_PROTO_GetShiftState done [07:35:22]FM_GetShiftState done [07:35:22]req_shift_opened done [07:35:22]requested_item shift.open_date is exist - process it [07:35:22]req_shift_open_date [07:35:22]req_shift_open_date done [07:35:22]produce_requested_data done [07:35:22]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31588,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:35:22]process_action_free close_receipt [07:35:22]json_value_free [07:35:22]json_value_free done [07:35:22]process_json_proto returns [07:35:22]Send response to host [07:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31588,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:35:22]free response buf [07:35:22]execute_script done [07:35:22]execute_script returns [07:35:22]free content buf [07:35:22]Sock 6.Close socket [07:35:22]Sock 6.Thread stoped [07:35:26]OFD Sender: No OFD packet to send [07:35:27]accept exits with 7 [07:35:27]New connection [07:35:27]New thread 3067415908 created [07:35:27]Thread 3067559268 joined [07:35:27]Waiting for new connection... [07:35:27] Sock 7.Parse request [07:35:27]Sock 7.Check first char [07:35:27]Sock 7.First char is OK [07:35:27]request: POST /json_proto HTTP/1.0 [07:35:27]Method: POST [07:35:27]URL: /json_proto [07:35:27]Method is POST - this is cgi request [07:35:27]url: /json_proto [07:35:27]query_string will be loaded in cgi processing [07:35:27]execute_cgi json_proto POST (null) [07:35:27]execute_cgi path=json_proto method=POST [07:35:27]POST find Content-Length [07:35:27]Host: 172.17.39.68:8080 [07:35:27]Content-Length: 816 [07:35:27]Content-Type: application/json [07:35:27] [07:35:27]POST finish read [07:35:27]Found Content-Length = 816 [07:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214171", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:27]execute_script... [07:35: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)214171", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:27]POST & json_proto [07:35:27]process_json_proto [07:35:27]json parsed OK: [07:35:27]protocol is kg_v1.0 [07:35:27]action value=close_receipt [07:35:27]process_action close_receipt [07:35:27]cmd_close_receipt [07:35:27]MH_GetDate [07:35:27]Write to MH i2c: F0 00 00 FD 07 F3 [07:35:27]Write i2c OK [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 09 00 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 09 00 FD 07 00 40 D1 94 66 EC 7F 94 66 6C [07:35:27]GetLastDocTimeStamp 1721028919 [07:35:27]current date 1721028928 [07:35:27]FM_GetShiftState [07:35:27]SAM_PROTO_GetShiftState [07:35:27]wFMCommunicate request_size=4 [07:35:27]MH_SAM_APDU [07:35:27]CAPDU: 80 13 01 00 [07:35:27]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [07:35:27]Write i2c OK [07:35:27]MH_I2C_Read... [07:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:27]Read from MH i2c: E2 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: E2 0E 00 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 75 [07:35:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:35:27]wFMCommunicate OK [07:35:27]SAM_PROTO_GetShiftState done [07:35:27]FM_GetShiftState done [07:35:27]opened in 1721001862 [07:35:27]opened+sec_in_day 1721088262 [07:35:27]quantity*price = 8500 [07:35:27]sum+1 = 8501 [07:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 30 15.07.2024 07:35 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31589 ФПД: 46136636698306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073528&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31589&fm=46136636698306&tin=02508201610067®Number=0000000000098025&sum=8500 0 [07:35:28]StoreToDocumentArchive [07:35:28]shift 370 fd 31589 [07:35:28]save to /storage/0370/doc_00031589 [07:35:28]save last doc name /storage/0370/doc_00031589 to /storage/kkm_last_doc_name [07:35:28]save OK [07:35:28]Clear old archive folders... [07:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:35:28]tlvbuf is 01244240 [07:35:28]SAM_PROTO_ClearQueue [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 09 00 00 [07:35:28]Write to MH i2c: E2 08 00 0B 08 80 09 00 00 00 00 00 00 85 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]SAM_PROTO_ClearQueue done [07:35:28]KKMCreateOFDPacket [07:35:28]OFDProtocolAddRootSTLVToBuf [07:35:28]FM_MakeSignedData [07:35:28]FM_MakeSignedData [07:35:28]SAM_PROTO_SignData [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 01 02 [07:35:28]Write to MH i2c: E2 08 00 0C 08 80 0D 01 02 00 00 00 00 8D [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=255 [07:35:28]MH_SAM_APDU [07:35:28]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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 40 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:35:28]Write to MH i2c: E2 02 01 0D 08 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 40 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 0D [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=53 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 65 7B 00 00 35 04 06 00 29 F6 05 D7 6E C2 [07:35:28]Write to MH i2c: E2 38 00 0E 08 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 65 7B 00 00 35 04 06 00 29 F6 05 D7 6E C2 00 00 97 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 03 02 [07:35:28]Write to MH i2c: E2 08 00 0F 08 80 0D 03 02 00 00 00 00 92 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:29]Read from MH i2c: E2 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: E2 0B 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: E2 0B 00 0F 08 00 28 65 07 55 F5 B4 76 98 90 00 33 [07:35:29]RAPDU: 28 65 07 55 F5 B4 76 98 90 00 [07:35:29]wFMCommunicate OK [07:35:29]SAM_PROTO_SignData done [07:35:29]FM_MakeSignedData done [07:35:29]CreateOFDProtocolMessage [07:35:29]wFMCommunicate request_size=4 [07:35:29]MH_SAM_APDU [07:35:29]CAPDU: 80 11 00 00 [07:35:29]Write to MH i2c: E2 08 00 10 08 80 11 00 00 00 00 00 00 92 [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:29]Read from MH i2c: E2 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: E2 17 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: E2 17 00 10 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 ED [07:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:35:29]wFMCommunicate OK [07:35:29]CreateOFDProtocolMessage done [07:35:29]OFDSenderStorePacket 31589 [07:35:29]StoreOFDPacket docnum=31589 [07:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 68 0F 32 01 F3 DF 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 40 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 65 7B 00 00 35 04 06 00 29 F6 05 D7 6E C2 28 65 07 55 F5 B4 76 98 [07:35:29]CheckFolder [07:35:29]dirname=/storage/ofd_packets [07:35:29]CheckFolder done [07:35:29]ProducePacketName [07:35:29]name=ofd_packets/00031589 [07:35:29]NVStorageSaveData ofd_packets/00031589 [07:35:29]File name is /storage/ofd_packets/00031589 [07:35:29]Write 344 bytes [07:35:29]NVStorageSaveData done [07:35:29]OFDSenderStorePacket done [07:35:29]KKMCreateOFDPacket done [07:35:29]NVStorageSaveData kkm_last_timestamp [07:35:29]File name is /storage/kkm_last_timestamp [07:35:29]Write 4 bytes [07:35:29]NVStorageSaveData done [07:35:29]ExternCall_PrintAddStr [07:35:29]wPrintStart [07:35:29]Write to MH i2c: 01 00 00 11 08 19 [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 FF 0F 2E [07:35:29]RasterBufferAndPrint [07:35:29]line Счет N : (3)214171 [07:35:29]line ИНН: 02508201610067 [07:35:29]line Контрольно-Кассовый Чек [07:35:29]line ПРОДАЖА [07:35:29]line Товар: 4600682557456 [07:35:29]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:35:29]line 1.000 * 85.00 [07:35:29]line = 85.00 [07:35:29]line НДС 12% НСП 1% [07:35:29]line > о реализуемом товаре [07:35:29]line ИТОГО: 85.00 [07:35:29]line НСП 1% : 0.75 [07:35:29]line НДС 12% : 9.03 [07:35:29]line Наличными: 0.00 [07:35:29]line Безнал.: 85.00 [07:35:29]line Место: АЗС № 140 "Партнер Нефть" [07:35:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:35:29]line СНО: Общий режим [07:35:29]line Чек 30 15.07.2024 07:35 [07:35:29]line Смена: 370 ФФД: 1.0 [07:35:29]line ЗНМ: 0300000189 [07:35:29]line РНМ: 0000000000098025 [07:35:29]line Версия ККМ: 001 [07:35:29]line Платежная система: O! деньги [07:35:29]line ФМ: 0000000000965389 [07:35:29]line ФД: 31589 [07:35:29]line ФПД: 46136636698306 [07:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073528&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31589&fm=46136636698306&tin=02508201610067®Number=0000000000098025&sum=8500 [07:35:29]line 0 [07:35:29]written 0, free lines is 4095 [07:35:29]OFD Sender: Processing packet 31589 [packets to send 5, broken 4] [07:35:29]ProducePacketName [07:35:29]name=ofd_packets/00031589 [07:35:29]OFD Sender: To server: pG, [07:35:29]CommunicateWithHost lk.salyk.kg:30040 [07:35:29]ConnectInit lk.salyk.kg [07:35:29]Connected sock=6 [07:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 68 0F 32 01 F3 DF 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 40 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 65 7B 00 00 35 04 06 00 29 F6 05 D7 6E C2 28 65 07 55 F5 B4 76 98 [07:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FD E4 47 00 8F 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 65 7B 00 00 F4 03 04 00 4E 7D 94 66 B6 04 01 00 00 38 63 0C E3 80 EE D5 DC [07:35:29]CommunicateWithHost err = 0 [07:35:29]CheckOFDResponse [07:35:29]1017 (14) - 77093643461234 [07:35:29]1041 (16) - 0000000000965389 [07:35:29]1040 (4) - 31589 [07:35:29]1012 (4) - 15.07.2024 01:37 [07:35:29]1206 (1) - 0 [07:35:29]OFD Sender: Remove packet 31589 [07:35:29]ProducePacketName [07:35:29]name=ofd_packets/00031589 [07:35:29]NVStorageDeleteData [07:35:29]Write to MH i2c: 01 00 00 3C 08 44 [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 F2 0C 49 [07:35:29]RasterBufferAndPrint [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]written 0, free lines is 3325 [07:35:29]MH_Cut [07:35:29]Write to MH i2c: D1 01 00 43 08 01 1D [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 01 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 01 00 43 08 00 1C [07:35:29]Write to MH i2c: 01 00 00 44 08 4C [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]OFD Sender: No OFD packet to send [07:35:30]*** Cut start [07:35:30]*** Partial cut [07:35:30]*** CUTSNS_PIN = 1 [07:35:30]*** CUTSNS_PIN = 0 [07:35:30]*** Brake cut motor [07:35:30]Read from MH i2c: 01 [07:35:30]MH_I2C_Read... [07:35:30]*** Stop cut motor [07:35:30]*** Cut end [07:35:30]Read from MH i2c: 01 07 00 [07:35:30]MH_I2C_Read... [07:35:30]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [07:35:30]process_action close_receipt done [07:35:30]requested_data is exist [07:35:30]produce_requested_data [07:35:30]requested_item fm.sn is exist - process it [07:35:30]wFMCommunicate request_size=4 [07:35:30]MH_SAM_APDU [07:35:30]CAPDU: 80 11 00 00 [07:35:30]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [07:35:30]Write i2c OK [07:35:30]MH_I2C_Read... [07:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 17 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 22 [07:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:35:31]wFMCommunicate OK [07:35:31]requested_item fd.num is exist - process it [07:35:31]SAM_PROTO_GetFieldsCounters [07:35:31]wFMCommunicate request_size=4 [07:35:31]MH_SAM_APDU [07:35:31]CAPDU: 80 13 00 00 [07:35:31]Write to MH i2c: E2 08 00 46 08 80 13 00 00 00 00 00 00 CA [07:35:31]Write i2c OK [07:35:31]MH_I2C_Read... [07:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 62 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 62 00 46 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 65 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [07:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 65 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:31]wFMCommunicate OK [07:35:31]SAM_PROTO_GetFieldsCounters done [07:35:31]requested_item shift.num is exist - process it [07:35:31]requested_item shift.opened is exist - process it [07:35:31]req_shift_opened [07:35:31]FM_GetShiftState [07:35:31]SAM_PROTO_GetShiftState [07:35:31]wFMCommunicate request_size=4 [07:35:31]MH_SAM_APDU [07:35:31]CAPDU: 80 13 01 00 [07:35:31]Write to MH i2c: E2 08 00 47 08 80 13 01 00 00 00 00 00 CC [07:35:31]Write i2c OK [07:35:31]MH_I2C_Read... [07:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 0E 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 0E 00 47 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BF [07:35:31]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:35:31]wFMCommunicate OK [07:35:31]SAM_PROTO_GetShiftState done [07:35:31]FM_GetShiftState done [07:35:31]req_shift_opened done [07:35:31]requested_item shift.open_date is exist - process it [07:35:31]req_shift_open_date [07:35:31]req_shift_open_date done [07:35:31]produce_requested_data done [07:35:31]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31589,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:35:31]process_action_free close_receipt [07:35:31]json_value_free [07:35:31]json_value_free done [07:35:31]process_json_proto returns [07:35:31]Send response to host [07:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31589,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:35:31]free response buf [07:35:31]execute_script done [07:35:31]execute_script returns [07:35:31]free content buf [07:35:31]Sock 7.Close socket [07:35:31]Sock 7.Thread stoped [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]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:24]accept exits with 5 [07:37:24]New connection [07:37:24]New thread 3067559268 created [07:37:24]Thread 3067415908 joined [07:37:24]Waiting for new connection... [07:37:24] Sock 5.Parse request [07:37:24]Sock 5.Check first char [07:37:24]Sock 5.First char is OK [07:37:24]request: POST /json_proto HTTP/1.0 [07:37:24]Method: POST [07:37:24]URL: /json_proto [07:37:24]Method is POST - this is cgi request [07:37:24]url: /json_proto [07:37:24]query_string will be loaded in cgi processing [07:37:24]execute_cgi json_proto POST (null) [07:37:24]execute_cgi path=json_proto method=POST [07:37:24]POST find Content-Length [07:37:24]Host: 172.17.39.68:8080 [07:37:24]Content-Length: 816 [07:37:24]Content-Type: application/json [07:37:24] [07:37:24]POST finish read [07:37:24]Found Content-Length = 816 [07:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214172", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:24]execute_script... [07:37: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)214172", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:24]POST & json_proto [07:37:24]process_json_proto [07:37:24]json parsed OK: [07:37:24]protocol is kg_v1.0 [07:37:24]action value=close_receipt [07:37:24]process_action close_receipt [07:37:24]cmd_close_receipt [07:37:24]MH_GetDate [07:37:24]Write to MH i2c: F0 00 00 48 08 3F [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: F0 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: F0 09 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: F0 09 00 48 08 00 B5 D1 94 66 EC 7F 94 66 2D [07:37:24]GetLastDocTimeStamp 1721028928 [07:37:24]current date 1721029045 [07:37:24]FM_GetShiftState [07:37:24]SAM_PROTO_GetShiftState [07:37:24]wFMCommunicate request_size=4 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 13 01 00 [07:37:24]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 0E 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 C1 [07:37:24]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:37:24]wFMCommunicate OK [07:37:24]SAM_PROTO_GetShiftState done [07:37:24]FM_GetShiftState done [07:37:24]opened in 1721001862 [07:37:24]opened+sec_in_day 1721088262 [07:37:24]quantity*price = 8500 [07:37:24]sum+1 = 8501 [07:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 31 15.07.2024 07:37 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31590 ФПД: 179095355467536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073725&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31590&fm=179095355467536&tin=02508201610067®Number=0000000000098025&sum=8500 0 [07:37:25]StoreToDocumentArchive [07:37:25]shift 370 fd 31590 [07:37:25]save to /storage/0370/doc_00031590 [07:37:25]save last doc name /storage/0370/doc_00031590 to /storage/kkm_last_doc_name [07:37:25]save OK [07:37:25]Clear old archive folders... [07:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:37:25]tlvbuf is 0127B900 [07:37:25]SAM_PROTO_ClearQueue [07:37:25]wFMCommunicate request_size=4 [07:37:25]MH_SAM_APDU [07:37:25]CAPDU: 80 09 00 00 [07:37:25]Write to MH i2c: E2 08 00 56 08 80 09 00 00 00 00 00 00 D0 [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:25]Read from MH i2c: E2 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 03 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [07:37:25]RAPDU: 90 00 [07:37:25]wFMCommunicate OK [07:37:25]SAM_PROTO_ClearQueue done [07:37:25]KKMCreateOFDPacket [07:37:25]OFDProtocolAddRootSTLVToBuf [07:37:25]FM_MakeSignedData [07:37:25]FM_MakeSignedData [07:37:25]SAM_PROTO_SignData [07:37:25]wFMCommunicate request_size=4 [07:37:25]MH_SAM_APDU [07:37:25]CAPDU: 80 0D 01 02 [07:37:25]Write to MH i2c: E2 08 00 57 08 80 0D 01 02 00 00 00 00 D8 [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:25]Read from MH i2c: E2 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 03 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [07:37:25]RAPDU: 90 00 [07:37:25]wFMCommunicate OK [07:37:25]wFMCommunicate request_size=255 [07:37:25]MH_SAM_APDU [07:37:25]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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B5 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:37:25]Write to MH i2c: E2 02 01 58 08 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B5 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 CE [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 03 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [07:37:26]RAPDU: 90 00 [07:37:26]wFMCommunicate OK [07:37:26]wFMCommunicate request_size=53 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 66 7B 00 00 35 04 06 00 A2 E2 E3 0B 27 10 [07:37:26]Write to MH i2c: E2 38 00 59 08 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 66 7B 00 00 35 04 06 00 A2 E2 E3 0B 27 10 00 00 61 [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 03 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [07:37:26]RAPDU: 90 00 [07:37:26]wFMCommunicate OK [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 0D 03 02 [07:37:26]Write to MH i2c: E2 08 00 5A 08 80 0D 03 02 00 00 00 00 DD [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0B 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0B 00 5A 08 00 4C A6 D9 0A 55 5E 8A 2E 90 00 1E [07:37:26]RAPDU: 4C A6 D9 0A 55 5E 8A 2E 90 00 [07:37:26]wFMCommunicate OK [07:37:26]SAM_PROTO_SignData done [07:37:26]FM_MakeSignedData done [07:37:26]CreateOFDProtocolMessage [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 11 00 00 [07:37:26]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 38 [07:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:37:26]wFMCommunicate OK [07:37:26]CreateOFDProtocolMessage done [07:37:26]OFDSenderStorePacket 31590 [07:37:26]StoreOFDPacket docnum=31590 [07:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 D2 75 32 01 F5 60 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B5 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 66 7B 00 00 35 04 06 00 A2 E2 E3 0B 27 10 4C A6 D9 0A 55 5E 8A 2E [07:37:26]CheckFolder [07:37:26]dirname=/storage/ofd_packets [07:37:26]CheckFolder done [07:37:26]ProducePacketName [07:37:26]name=ofd_packets/00031590 [07:37:26]NVStorageSaveData ofd_packets/00031590 [07:37:26]File name is /storage/ofd_packets/00031590 [07:37:26]Write 344 bytes [07:37:26]NVStorageSaveData done [07:37:26]OFDSenderStorePacket done [07:37:26]KKMCreateOFDPacket done [07:37:26]NVStorageSaveData kkm_last_timestamp [07:37:26]File name is /storage/kkm_last_timestamp [07:37:26]Write 4 bytes [07:37:26]NVStorageSaveData done [07:37:26]ExternCall_PrintAddStr [07:37:26]wPrintStart [07:37:26]Write to MH i2c: 01 00 00 5C 08 64 [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: 01 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: 01 07 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [07:37:26]RasterBufferAndPrint [07:37:26]line Счет N : (3)214172 [07:37:26]line ИНН: 02508201610067 [07:37:26]line Контрольно-Кассовый Чек [07:37:26]line ПРОДАЖА [07:37:26]line Товар: 4600682557456 [07:37:26]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:37:26]line 1.000 * 85.00 [07:37:26]line = 85.00 [07:37:26]line НДС 12% НСП 1% [07:37:26]line > о реализуемом товаре [07:37:26]line ИТОГО: 85.00 [07:37:26]line НСП 1% : 0.75 [07:37:26]line НДС 12% : 9.03 [07:37:26]line Наличными: 0.00 [07:37:26]line Безнал.: 85.00 [07:37:26]line Место: АЗС № 140 "Партнер Нефть" [07:37:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:37:26]line СНО: Общий режим [07:37:26]line Чек 31 15.07.2024 07:37 [07:37:26]line Смена: 370 ФФД: 1.0 [07:37:26]line ЗНМ: 0300000189 [07:37:26]line РНМ: 0000000000098025 [07:37:26]line Версия ККМ: 001 [07:37:26]line Платежная система: O! деньги [07:37:26]line ФМ: 0000000000965389 [07:37:26]line ФД: 31590 [07:37:26]line ФПД: 179095355467536 [07:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073725&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31590&fm=179095355467536&tin=02508201610067®Number=0000000000098025&sum=8500 [07:37:26]line 0 [07:37:26]OFD Sender: Processing packet 31590 [packets to send 5, broken 4] [07:37:26]ProducePacketName [07:37:26]name=ofd_packets/00031590 [07:37:26]OFD Sender: To server: pG, [07:37:26]CommunicateWithHost lk.salyk.kg:30040 [07:37:26]ConnectInit lk.salyk.kg [07:37:26]written 0, free lines is 4095 [07:37:26]Connected sock=7 [07:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 D2 75 32 01 F5 60 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 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B5 D1 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 66 7B 00 00 35 04 06 00 A2 E2 E3 0B 27 10 4C A6 D9 0A 55 5E 8A 2E [07:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C7 99 47 00 BC FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 66 7B 00 00 F4 03 04 00 C3 7D 94 66 B6 04 01 00 00 D1 C8 58 0E E2 8F E4 39 [07:37:26]CommunicateWithHost err = 0 [07:37:26]CheckOFDResponse [07:37:26]1017 (14) - 77093643461234 [07:37:26]1041 (16) - 0000000000965389 [07:37:26]1040 (4) - 31590 [07:37:26]1012 (4) - 15.07.2024 01:39 [07:37:26]1206 (1) - 0 [07:37:26]OFD Sender: Remove packet 31590 [07:37:26]ProducePacketName [07:37:26]name=ofd_packets/00031590 [07:37:26]NVStorageDeleteData [07:37:27]Write to MH i2c: 01 00 00 87 08 8F [07:37:27]Write i2c OK [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: 01 [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: 01 07 00 [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 D8 0C 7A [07:37:27]RasterBufferAndPrint [07:37:27]line [07:37:27]line [07:37:27]line [07:37:27]line [07:37:27]line [07:37:27]written 0, free lines is 3296 [07:37:27]MH_Cut [07:37:27]Write to MH i2c: D1 01 00 8E 08 01 68 [07:37:27]Write i2c OK [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: D1 [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: D1 01 00 [07:37:27]MH_I2C_Read... [07:37:27]Read from MH i2c: D1 01 00 8E 08 00 67 [07:37:27]Write to MH i2c: 01 00 00 8F 08 97 [07:37:27]Write i2c OK [07:37:27]MH_I2C_Read... [07:37:27]OFD Sender: No OFD packet to send [07:37:27]*** Cut start [07:37:27]*** Partial cut [07:37:27]*** CUTSNS_PIN = 1 [07:37:27]*** CUTSNS_PIN = 0 [07:37:28]*** Brake cut motor [07:37:28]Read from MH i2c: 01 [07:37:28]MH_I2C_Read... [07:37:28]*** Stop cut motor [07:37:28]*** Cut end [07:37:28]Read from MH i2c: 01 07 00 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [07:37:28]process_action close_receipt done [07:37:28]requested_data is exist [07:37:28]produce_requested_data [07:37:28]requested_item fm.sn is exist - process it [07:37:28]wFMCommunicate request_size=4 [07:37:28]MH_SAM_APDU [07:37:28]CAPDU: 80 11 00 00 [07:37:28]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [07:37:28]Write i2c OK [07:37:28]MH_I2C_Read... [07:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:28]Read from MH i2c: E2 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 17 00 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [07:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:37:28]wFMCommunicate OK [07:37:28]requested_item fd.num is exist - process it [07:37:28]SAM_PROTO_GetFieldsCounters [07:37:28]wFMCommunicate request_size=4 [07:37:28]MH_SAM_APDU [07:37:28]CAPDU: 80 13 00 00 [07:37:28]Write to MH i2c: E2 08 00 91 08 80 13 00 00 00 00 00 00 15 [07:37:28]Write i2c OK [07:37:28]MH_I2C_Read... [07:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:28]Read from MH i2c: E2 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 62 00 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 62 00 91 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 66 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [07:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 66 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:37:28]wFMCommunicate OK [07:37:28]SAM_PROTO_GetFieldsCounters done [07:37:28]requested_item shift.num is exist - process it [07:37:28]requested_item shift.opened is exist - process it [07:37:28]req_shift_opened [07:37:28]FM_GetShiftState [07:37:28]SAM_PROTO_GetShiftState [07:37:28]wFMCommunicate request_size=4 [07:37:28]MH_SAM_APDU [07:37:28]CAPDU: 80 13 01 00 [07:37:28]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [07:37:28]Write i2c OK [07:37:28]MH_I2C_Read... [07:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:28]Read from MH i2c: E2 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 0E 00 [07:37:28]MH_I2C_Read... [07:37:28]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0A [07:37:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:37:28]wFMCommunicate OK [07:37:28]SAM_PROTO_GetShiftState done [07:37:28]FM_GetShiftState done [07:37:28]req_shift_opened done [07:37:28]requested_item shift.open_date is exist - process it [07:37:28]req_shift_open_date [07:37:28]req_shift_open_date done [07:37:28]produce_requested_data done [07:37:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31590,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:37:28]process_action_free close_receipt [07:37:28]json_value_free [07:37:28]json_value_free done [07:37:28]process_json_proto returns [07:37:28]Send response to host [07:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31590,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:37:28]free response buf [07:37:28]execute_script done [07:37:28]execute_script returns [07:37:28]free content buf [07:37:28]Sock 5.Close socket [07:37:28]Sock 5.Thread stoped [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]accept exits with 6 [07:38:57]New connection [07:38:57]New thread 3067415908 created [07:38:57]Thread 3067559268 joined [07:38:57]Waiting for new connection... [07:38:57] Sock 6.Parse request [07:38:57]Sock 6.Check first char [07:38:57]Sock 6.First char is OK [07:38:57]request: POST /json_proto HTTP/1.0 [07:38:57]Method: POST [07:38:57]URL: /json_proto [07:38:57]Method is POST - this is cgi request [07:38:57]url: /json_proto [07:38:57]query_string will be loaded in cgi processing [07:38:57]execute_cgi json_proto POST (null) [07:38:57]execute_cgi path=json_proto method=POST [07:38:57]POST find Content-Length [07:38:57]Host: 172.17.39.68:8080 [07:38:57]Content-Length: 709 [07:38:57]Content-Type: application/json [07:38:57] [07:38:57]POST finish read [07:38:57]Found Content-Length = 709 [07:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214173", "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" ] } } [07:38:57]execute_script... [07:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214173", "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" ] } } [07:38:57]POST & json_proto [07:38:57]process_json_proto [07:38:57]json parsed OK: [07:38:57]protocol is kg_v1.0 [07:38:57]action value=close_receipt [07:38:57]process_action close_receipt [07:38:57]cmd_close_receipt [07:38:57]MH_GetDate [07:38:57]Write to MH i2c: F0 00 00 93 08 8A [07:38:57]Write i2c OK [07:38:57]MH_I2C_Read... [07:38:57]Read from MH i2c: F0 [07:38:57]MH_I2C_Read... [07:38:57]Read from MH i2c: F0 09 00 [07:38:57]MH_I2C_Read... [07:38:57]Read from MH i2c: F0 09 00 93 08 00 12 D2 94 66 EC 7F 94 66 D6 [07:38:57]GetLastDocTimeStamp 1721029045 [07:38:57]current date 1721029138 [07:38:57]FM_GetShiftState [07:38:57]SAM_PROTO_GetShiftState [07:38:57]wFMCommunicate request_size=4 [07:38:57]MH_SAM_APDU [07:38:57]CAPDU: 80 13 01 00 [07:38:57]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [07:38:57]Write i2c OK [07:38:57]MH_I2C_Read... [07:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:57]Read from MH i2c: E2 [07:38:57]MH_I2C_Read... [07:38:57]Read from MH i2c: E2 0E 00 [07:38:57]MH_I2C_Read... [07:38:57]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0C [07:38:57]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:38:57]wFMCommunicate OK [07:38:57]SAM_PROTO_GetShiftState done [07:38:57]FM_GetShiftState done [07:38:57]opened in 1721001862 [07:38:57]opened+sec_in_day 1721088262 [07:38:57]quantity*price = 9500 [07:38:57]sum+1 = 9501 [07:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 32 15.07.2024 07:38 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31591 ФПД: 114269599573134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073858&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31591&fm=114269599573134&tin=02508201610067®Number=0000000000098025&sum=9500 0 [07:38:58]StoreToDocumentArchive [07:38:58]shift 370 fd 31591 [07:38:58]save to /storage/0370/doc_00031591 [07:38:58]save last doc name /storage/0370/doc_00031591 to /storage/kkm_last_doc_name [07:38:58]save OK [07:38:58]Clear old archive folders... [07:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=304 [07:38:58]tlvbuf is 0126AD40 [07:38:58]SAM_PROTO_ClearQueue [07:38:58]wFMCommunicate request_size=4 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 09 00 00 [07:38:58]Write to MH i2c: E2 08 00 A1 08 80 09 00 00 00 00 00 00 1B [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [07:38:58]RAPDU: 90 00 [07:38:58]wFMCommunicate OK [07:38:58]SAM_PROTO_ClearQueue done [07:38:58]KKMCreateOFDPacket [07:38:58]OFDProtocolAddRootSTLVToBuf [07:38:58]FM_MakeSignedData [07:38:58]FM_MakeSignedData [07:38:58]SAM_PROTO_SignData [07:38:58]wFMCommunicate request_size=4 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 0D 01 02 [07:38:58]Write to MH i2c: E2 08 00 A2 08 80 0D 01 02 00 00 00 00 23 [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [07:38:58]RAPDU: 90 00 [07:38:58]wFMCommunicate OK [07:38:58]wFMCommunicate request_size=255 [07:38:58]MH_SAM_APDU [07:38:58]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 20 00 00 00 F4 03 04 00 12 D2 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 [07:38:58]Write to MH i2c: E2 02 01 A3 08 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 20 00 00 00 F4 03 04 00 12 D2 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 00 00 DA [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [07:38:58]RAPDU: 90 00 [07:38:58]wFMCommunicate OK [07:38:58]wFMCommunicate request_size=63 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 67 7B 00 00 35 04 06 00 67 ED 76 E4 24 8E [07:38:58]Write to MH i2c: E2 42 00 A4 08 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 67 7B 00 00 35 04 06 00 67 ED 76 E4 24 8E 00 00 B9 [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [07:38:58]RAPDU: 90 00 [07:38:58]wFMCommunicate OK [07:38:58]wFMCommunicate request_size=4 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 0D 03 02 [07:38:58]Write to MH i2c: E2 08 00 A5 08 80 0D 03 02 00 00 00 00 28 [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 0B 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 0B 00 A5 08 00 76 71 85 20 82 11 96 A7 90 00 85 [07:38:58]RAPDU: 76 71 85 20 82 11 96 A7 90 00 [07:38:58]wFMCommunicate OK [07:38:58]SAM_PROTO_SignData done [07:38:58]FM_MakeSignedData done [07:38:58]CreateOFDProtocolMessage [07:38:58]wFMCommunicate request_size=4 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 11 00 00 [07:38:58]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 17 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 83 [07:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:38:59]wFMCommunicate OK [07:38:59]CreateOFDProtocolMessage done [07:38:59]OFDSenderStorePacket 31591 [07:38:59]StoreOFDPacket docnum=31591 [07:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 11 86 3C 01 26 77 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 20 00 00 00 F4 03 04 00 12 D2 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 67 7B 00 00 35 04 06 00 67 ED 76 E4 24 8E 76 71 85 20 82 11 96 A7 [07:38:59]CheckFolder [07:38:59]dirname=/storage/ofd_packets [07:38:59]CheckFolder done [07:38:59]ProducePacketName [07:38:59]name=ofd_packets/00031591 [07:38:59]NVStorageSaveData ofd_packets/00031591 [07:38:59]File name is /storage/ofd_packets/00031591 [07:38:59]Write 354 bytes [07:38:59]NVStorageSaveData done [07:38:59]OFDSenderStorePacket done [07:38:59]KKMCreateOFDPacket done [07:38:59]NVStorageSaveData kkm_last_timestamp [07:38:59]File name is /storage/kkm_last_timestamp [07:38:59]Write 4 bytes [07:38:59]NVStorageSaveData done [07:38:59]ExternCall_PrintAddStr [07:38:59]wPrintStart [07:38:59]Write to MH i2c: 01 00 00 A7 08 AF [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 07 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [07:38:59]RasterBufferAndPrint [07:38:59]line Счет N : (3)214173 [07:38:59]line ИНН: 02508201610067 [07:38:59]line Контрольно-Кассовый Чек [07:38:59]line ПРОДАЖА [07:38:59]line Товар: 4700000480302 [07:38:59]line Напиток энерг Nitro манго-клуб 0.45 ж/б [07:38:59]line 1.000 * 95.00 [07:38:59]line = 95.00 [07:38:59]line НДС 12% НСП 1% [07:38:59]line > о реализуемом товаре [07:38:59]line ИТОГО: 95.00 [07:38:59]line НСП 1% : 0.84 [07:38:59]line НДС 12% : 10.09 [07:38:59]line Наличными: 95.00 [07:38:59]line Безнал.: 0.00 [07:38:59]line Место: АЗС № 140 "Партнер Нефть" [07:38:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:38:59]line СНО: Общий режим [07:38:59]line Чек 32 15.07.2024 07:38 [07:38:59]line Смена: 370 ФФД: 1.0 [07:38:59]line ЗНМ: 0300000189 [07:38:59]line РНМ: 0000000000098025 [07:38:59]line Версия ККМ: 001 [07:38:59]line ФМ: 0000000000965389 [07:38:59]line ФД: 31591 [07:38:59]line ФПД: 114269599573134 [07:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073858&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31591&fm=114269599573134&tin=02508201610067®Number=0000000000098025&sum=9500 [07:38:59]line 0 [07:38:59]OFD Sender: Processing packet 31591 [packets to send 5, broken 4] [07:38:59]ProducePacketName [07:38:59]name=ofd_packets/00031591 [07:38:59]OFD Sender: To server: pG, [07:38:59]CommunicateWithHost lk.salyk.kg:30040 [07:38:59]ConnectInit lk.salyk.kg [07:38:59]written 0, free lines is 4095 [07:38:59]Connected sock=7 [07:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 11 86 3C 01 26 77 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 20 00 00 00 F4 03 04 00 12 D2 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 67 7B 00 00 35 04 06 00 67 ED 76 E4 24 8E 76 71 85 20 82 11 96 A7 [07:38:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8D 26 47 00 F1 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 39 36 35 33 38 39 10 04 04 00 67 7B 00 00 F4 03 04 00 20 7E 94 66 B6 04 01 00 00 EC D4 1F 72 0B 8B 8D F2 [07:38:59]CommunicateWithHost err = 0 [07:38:59]CheckOFDResponse [07:38:59]1017 (14) - 77093643461234 [07:38:59]1041 (16) - 0000000000965389 [07:38:59]1040 (4) - 31591 [07:38:59]1012 (4) - 15.07.2024 01:40 [07:38:59]1206 (1) - 0 [07:38:59]OFD Sender: Remove packet 31591 [07:38:59]ProducePacketName [07:38:59]name=ofd_packets/00031591 [07:38:59]NVStorageDeleteData [07:38:59]Write to MH i2c: 01 00 00 D0 08 D8 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 07 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: 01 07 00 D0 08 00 00 00 00 00 02 0D EE [07:38:59]RasterBufferAndPrint [07:38:59]line [07:38:59]line [07:38:59]line [07:38:59]line [07:38:59]line [07:38:59]written 0, free lines is 3337 [07:38:59]MH_Cut [07:38:59]Write to MH i2c: D1 01 00 D7 08 01 B1 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: D1 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: D1 01 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: D1 01 00 D7 08 00 B0 [07:38:59]Write to MH i2c: 01 00 00 D8 08 E0 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:39:00]OFD Sender: No OFD packet to send [07:39:00]*** Cut start [07:39:00]*** Partial cut [07:39:00]*** CUTSNS_PIN = 1 [07:39:00]*** CUTSNS_PIN = 0 [07:39:00]*** Brake cut motor [07:39:01]Read from MH i2c: 01 [07:39:01]MH_I2C_Read... [07:39:01]*** Stop cut motor [07:39:01]*** Cut end [07:39:01]Read from MH i2c: 01 07 00 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [07:39:01]process_action close_receipt done [07:39:01]requested_data is exist [07:39:01]produce_requested_data [07:39:01]requested_item fm.sn is exist - process it [07:39:01]wFMCommunicate request_size=4 [07:39:01]MH_SAM_APDU [07:39:01]CAPDU: 80 11 00 00 [07:39:01]Write to MH i2c: E2 08 00 D9 08 80 11 00 00 00 00 00 00 5B [07:39:01]Write i2c OK [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 [07:39:01]MH_I2C_Read... [07:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:01]Read from MH i2c: E2 17 00 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 17 00 D9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B6 [07:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:39:01]wFMCommunicate OK [07:39:01]requested_item fd.num is exist - process it [07:39:01]SAM_PROTO_GetFieldsCounters [07:39:01]wFMCommunicate request_size=4 [07:39:01]MH_SAM_APDU [07:39:01]CAPDU: 80 13 00 00 [07:39:01]Write to MH i2c: E2 08 00 DA 08 80 13 00 00 00 00 00 00 5E [07:39:01]Write i2c OK [07:39:01]MH_I2C_Read... [07:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:01]Read from MH i2c: E2 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 62 00 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 62 00 DA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 67 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [07:39:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 67 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:39:01]wFMCommunicate OK [07:39:01]SAM_PROTO_GetFieldsCounters done [07:39:01]requested_item shift.num is exist - process it [07:39:01]requested_item shift.opened is exist - process it [07:39:01]req_shift_opened [07:39:01]FM_GetShiftState [07:39:01]SAM_PROTO_GetShiftState [07:39:01]wFMCommunicate request_size=4 [07:39:01]MH_SAM_APDU [07:39:01]CAPDU: 80 13 01 00 [07:39:01]Write to MH i2c: E2 08 00 DB 08 80 13 01 00 00 00 00 00 60 [07:39:01]Write i2c OK [07:39:01]MH_I2C_Read... [07:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:01]Read from MH i2c: E2 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 0E 00 [07:39:01]MH_I2C_Read... [07:39:01]Read from MH i2c: E2 0E 00 DB 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 53 [07:39:01]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:39:01]wFMCommunicate OK [07:39:01]SAM_PROTO_GetShiftState done [07:39:01]FM_GetShiftState done [07:39:01]req_shift_opened done [07:39:01]requested_item shift.open_date is exist - process it [07:39:01]req_shift_open_date [07:39:01]req_shift_open_date done [07:39:01]produce_requested_data done [07:39:01]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31591,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:39:01]process_action_free close_receipt [07:39:01]json_value_free [07:39:01]json_value_free done [07:39:01]process_json_proto returns [07:39:01]Send response to host [07:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31591,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:39:01]free response buf [07:39:01]execute_script done [07:39:01]execute_script returns [07:39:01]free content buf [07:39:01]Sock 6.Close socket [07:39:01]Sock 6.Thread stoped [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:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:12]accept exits with 5 [07:56:12]New connection [07:56:12]New thread 3067559268 created [07:56:12]Thread 3067415908 joined [07:56:12]Waiting for new connection... [07:56:12] Sock 5.Parse request [07:56:12]Sock 5.Check first char [07:56:12]Sock 5.First char is OK [07:56:12]request: POST /json_proto HTTP/1.0 [07:56:12]Method: POST [07:56:12]URL: /json_proto [07:56:12]Method is POST - this is cgi request [07:56:12]url: /json_proto [07:56:12]query_string will be loaded in cgi processing [07:56:12]execute_cgi json_proto POST (null) [07:56:12]execute_cgi path=json_proto method=POST [07:56:12]POST find Content-Length [07:56:12]Host: 172.17.39.68:8080 [07:56:12]Content-Length: 620 [07:56:12]Content-Type: application/json [07:56:12] [07:56:12]POST finish read [07:56:12]Found Content-Length = 620 [07:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214174", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:12]execute_script... [07:56: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)214174", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:12]POST & json_proto [07:56:12]process_json_proto [07:56:12]json parsed OK: [07:56:12]protocol is kg_v1.0 [07:56:12]action value=close_receipt [07:56:12]process_action close_receipt [07:56:12]cmd_close_receipt [07:56:12]MH_GetDate [07:56:12]Write to MH i2c: F0 00 00 DC 08 D3 [07:56:12]Write i2c OK [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 09 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 09 00 DC 08 00 1D D6 94 66 EC 7F 94 66 2E [07:56:12]GetLastDocTimeStamp 1721029138 [07:56:12]current date 1721030173 [07:56:12]FM_GetShiftState [07:56:12]SAM_PROTO_GetShiftState [07:56:12]wFMCommunicate request_size=4 [07:56:12]MH_SAM_APDU [07:56:12]CAPDU: 80 13 01 00 [07:56:12]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [07:56:12]Write i2c OK [07:56:12]MH_I2C_Read... [07:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:12]Read from MH i2c: E2 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 55 [07:56:12]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:56:12]wFMCommunicate OK [07:56:12]SAM_PROTO_GetShiftState done [07:56:12]FM_GetShiftState done [07:56:12]opened in 1721001862 [07:56:12]opened+sec_in_day 1721088262 [07:56:12]quantity*price = 13500 [07:56:12]sum+1 = 13501 [07:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 33 15.07.2024 07:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31592 ФПД: 89300287173882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T075613&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31592&fm=89300287173882&tin=02508201610067®Number=0000000000098025&sum=13500 0 [07:56:13]StoreToDocumentArchive [07:56:13]shift 370 fd 31592 [07:56:13]save to /storage/0370/doc_00031592 [07:56:13]save last doc name /storage/0370/doc_00031592 to /storage/kkm_last_doc_name [07:56:13]save OK [07:56:13]Clear old archive folders... [07:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:56:13]tlvbuf is 01230560 [07:56:13]SAM_PROTO_ClearQueue [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 09 00 00 [07:56:13]Write to MH i2c: E2 08 00 EA 08 80 09 00 00 00 00 00 00 64 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_ClearQueue done [07:56:13]KKMCreateOFDPacket [07:56:13]OFDProtocolAddRootSTLVToBuf [07:56:13]FM_MakeSignedData [07:56:13]FM_MakeSignedData [07:56:13]SAM_PROTO_SignData [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 01 02 [07:56:13]Write to MH i2c: E2 08 00 EB 08 80 0D 01 02 00 00 00 00 6C [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=255 [07:56:13]MH_SAM_APDU [07:56:13]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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 1D D6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [07:56:13]Write to MH i2c: E2 02 01 EC 08 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 1D D6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A7 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=31 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 68 7B 00 00 35 04 06 00 51 37 D7 E5 34 FA [07:56:13]Write to MH i2c: E2 22 00 ED 08 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 68 7B 00 00 35 04 06 00 51 37 D7 E5 34 FA 00 00 F7 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 03 02 [07:56:13]Write to MH i2c: E2 08 00 EE 08 80 0D 03 02 00 00 00 00 71 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0B 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0B 00 EE 08 00 22 1E 10 EB 6D 36 71 BD 90 00 7E [07:56:13]RAPDU: 22 1E 10 EB 6D 36 71 BD 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_SignData done [07:56:13]FM_MakeSignedData done [07:56:13]CreateOFDProtocolMessage [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 11 00 00 [07:56:13]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CC [07:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:56:13]wFMCommunicate OK [07:56:13]CreateOFDProtocolMessage done [07:56:13]OFDSenderStorePacket 31592 [07:56:13]StoreOFDPacket docnum=31592 [07:56:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 E0 C5 1C 01 DA 1B 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 1D D6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 68 7B 00 00 35 04 06 00 51 37 D7 E5 34 FA 22 1E 10 EB 6D 36 71 BD [07:56:13]CheckFolder [07:56:13]dirname=/storage/ofd_packets [07:56:13]CheckFolder done [07:56:13]ProducePacketName [07:56:13]name=ofd_packets/00031592 [07:56:13]NVStorageSaveData ofd_packets/00031592 [07:56:13]File name is /storage/ofd_packets/00031592 [07:56:13]Write 322 bytes [07:56:13]NVStorageSaveData done [07:56:13]OFDSenderStorePacket done [07:56:13]KKMCreateOFDPacket done [07:56:13]NVStorageSaveData kkm_last_timestamp [07:56:13]File name is /storage/kkm_last_timestamp [07:56:13]Write 4 bytes [07:56:13]NVStorageSaveData done [07:56:13]ExternCall_PrintAddStr [07:56:13]wPrintStart [07:56:13]Write to MH i2c: 01 00 00 F0 08 F8 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 07 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [07:56:13]RasterBufferAndPrint [07:56:13]line Счет N : (3)214174 [07:56:13]line ИНН: 02508201610067 [07:56:13]line Контрольно-Кассовый Чек [07:56:13]line ПРОДАЖА [07:56:13]line Товар: 48745000 [07:56:13]line Сигареты Winston Purple Mix [07:56:13]line 1.000 * 135.00 [07:56:13]line = 135.00 [07:56:13]line НДС 12% НСП 1% [07:56:13]line > о реализуемом товаре [07:56:13]line ИТОГО: 135.00 [07:56:13]line НСП 1% : 1.19 [07:56:13]line НДС 12% : 14.34 [07:56:13]line Наличными: 135.00 [07:56:13]line Безнал.: 0.00 [07:56:13]line Место: АЗС № 140 "Партнер Нефть" [07:56:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:56:13]line СНО: Общий режим [07:56:13]line Чек 33 15.07.2024 07:56 [07:56:13]line Смена: 370 ФФД: 1.0 [07:56:13]line ЗНМ: 0300000189 [07:56:13]line РНМ: 0000000000098025 [07:56:13]line Версия ККМ: 001 [07:56:13]line ФМ: 0000000000965389 [07:56:13]line ФД: 31592 [07:56:13]line ФПД: 89300287173882 [07:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T075613&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31592&fm=89300287173882&tin=02508201610067®Number=0000000000098025&sum=13500 [07:56:14]line 0 [07:56:14]OFD Sender: Processing packet 31592 [packets to send 5, broken 4] [07:56:14]ProducePacketName [07:56:14]name=ofd_packets/00031592 [07:56:14]OFD Sender: To server: pG, [07:56:14]CommunicateWithHost lk.salyk.kg:30040 [07:56:14]ConnectInit lk.salyk.kg [07:56:14]written 0, free lines is 4095 [07:56:14]Connected sock=7 [07:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 E0 C5 1C 01 DA 1B 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 1D D6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 68 7B 00 00 35 04 06 00 51 37 D7 E5 34 FA 22 1E 10 EB 6D 36 71 BD [07:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2E 7F 47 00 45 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 68 7B 00 00 F4 03 04 00 2B 82 94 66 B6 04 01 00 00 92 E8 E0 25 4D 54 F5 B9 [07:56:14]CommunicateWithHost err = 0 [07:56:14]CheckOFDResponse [07:56:14]1017 (14) - 77093643461234 [07:56:14]1041 (16) - 0000000000965389 [07:56:14]1040 (4) - 31592 [07:56:14]1012 (4) - 15.07.2024 01:58 [07:56:14]1206 (1) - 0 [07:56:14]OFD Sender: Remove packet 31592 [07:56:14]ProducePacketName [07:56:14]name=ofd_packets/00031592 [07:56:14]NVStorageDeleteData [07:56:14]Write to MH i2c: 01 00 00 18 09 21 [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 07 00 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 03 0D 38 [07:56:14]RasterBufferAndPrint [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]written 0, free lines is 3337 [07:56:14]MH_Cut [07:56:14]Write to MH i2c: D1 01 00 1F 09 01 FA [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 01 00 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 01 00 1F 09 00 F9 [07:56:14]Write to MH i2c: 01 00 00 20 09 29 [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:15]OFD Sender: No OFD packet to send [07:56:15]*** Cut start [07:56:15]*** Partial cut [07:56:15]*** CUTSNS_PIN = 1 [07:56:15]*** CUTSNS_PIN = 0 [07:56:15]*** Brake cut motor [07:56:16]Read from MH i2c: 01 [07:56:16]MH_I2C_Read... [07:56:16]*** Stop cut motor [07:56:16]*** Cut end [07:56:16]Read from MH i2c: 01 07 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [07:56:16]process_action close_receipt done [07:56:16]requested_data is exist [07:56:16]produce_requested_data [07:56:16]requested_item fm.sn is exist - process it [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 11 00 00 [07:56:16]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 17 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FF [07:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:56:16]wFMCommunicate OK [07:56:16]requested_item fd.num is exist - process it [07:56:16]SAM_PROTO_GetFieldsCounters [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 13 00 00 [07:56:16]Write to MH i2c: E2 08 00 22 09 80 13 00 00 00 00 00 00 A7 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 62 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 62 00 22 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 68 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [07:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 68 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:16]wFMCommunicate OK [07:56:16]SAM_PROTO_GetFieldsCounters done [07:56:16]requested_item shift.num is exist - process it [07:56:16]requested_item shift.opened is exist - process it [07:56:16]req_shift_opened [07:56:16]FM_GetShiftState [07:56:16]SAM_PROTO_GetShiftState [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 13 01 00 [07:56:16]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 0E 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 9C [07:56:16]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [07:56:16]wFMCommunicate OK [07:56:16]SAM_PROTO_GetShiftState done [07:56:16]FM_GetShiftState done [07:56:16]req_shift_opened done [07:56:16]requested_item shift.open_date is exist - process it [07:56:16]req_shift_open_date [07:56:16]req_shift_open_date done [07:56:16]produce_requested_data done [07:56:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31592,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [07:56:16]process_action_free close_receipt [07:56:16]json_value_free [07:56:16]json_value_free done [07:56:16]process_json_proto returns [07:56:16]Send response to host [07:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31592,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [07:56:16]free response buf [07:56:16]execute_script done [07:56:16]execute_script returns [07:56:16]free content buf [07:56:16]Sock 5.Close socket [07:56:16]Sock 5.Thread stoped [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:23]accept exits with 6 [08:00:23]New connection [08:00:23]New thread 3067415908 created [08:00:23]Thread 3067559268 joined [08:00:23]Waiting for new connection... [08:00:23] Sock 6.Parse request [08:00:23]Sock 6.Check first char [08:00:23]Sock 6.First char is OK [08:00:23]request: POST /json_proto HTTP/1.0 [08:00:23]Method: POST [08:00:23]URL: /json_proto [08:00:23]Method is POST - this is cgi request [08:00:23]url: /json_proto [08:00:23]query_string will be loaded in cgi processing [08:00:23]execute_cgi json_proto POST (null) [08:00:23]execute_cgi path=json_proto method=POST [08:00:23]POST find Content-Length [08:00:23]Host: 172.17.39.68:8080 [08:00:23]Content-Length: 628 [08:00:23]Content-Type: application/json [08:00:23] [08:00:23]POST finish read [08:00:23]Found Content-Length = 628 [08:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214175", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [08:00:23]execute_script... [08:00:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214175", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [08:00:23]POST & json_proto [08:00:23]process_json_proto [08:00:23]json parsed OK: [08:00:23]protocol is kg_v1.0 [08:00:23]action value=close_receipt [08:00:23]process_action close_receipt [08:00:23]cmd_close_receipt [08:00:23]MH_GetDate [08:00:23]Write to MH i2c: F0 00 00 24 09 1C [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: F0 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: F0 09 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: F0 09 00 24 09 00 18 D7 94 66 EC 7F 94 66 73 [08:00:23]GetLastDocTimeStamp 1721030173 [08:00:23]current date 1721030424 [08:00:23]FM_GetShiftState [08:00:23]SAM_PROTO_GetShiftState [08:00:23]wFMCommunicate request_size=4 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 13 01 00 [08:00:23]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 0E 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 9E [08:00:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:00:23]wFMCommunicate OK [08:00:23]SAM_PROTO_GetShiftState done [08:00:23]FM_GetShiftState done [08:00:23]opened in 1721001862 [08:00:23]opened+sec_in_day 1721088262 [08:00:23]quantity*price = 13000 [08:00:23]sum+1 = 13001 [08:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 34 15.07.2024 08:00 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31593 ФПД: 124014563968324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080024&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31593&fm=124014563968324&tin=02508201610067®Number=0000000000098025&sum=13000 0 [08:00:24]StoreToDocumentArchive [08:00:24]shift 370 fd 31593 [08:00:24]save to /storage/0370/doc_00031593 [08:00:24]save last doc name /storage/0370/doc_00031593 to /storage/kkm_last_doc_name [08:00:24]save OK [08:00:24]Clear old archive folders... [08:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:00:24]tlvbuf is 01269B90 [08:00:24]SAM_PROTO_ClearQueue [08:00:24]wFMCommunicate request_size=4 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 09 00 00 [08:00:24]Write to MH i2c: E2 08 00 32 09 80 09 00 00 00 00 00 00 AD [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [08:00:24]RAPDU: 90 00 [08:00:24]wFMCommunicate OK [08:00:24]SAM_PROTO_ClearQueue done [08:00:24]KKMCreateOFDPacket [08:00:24]OFDProtocolAddRootSTLVToBuf [08:00:24]FM_MakeSignedData [08:00:24]FM_MakeSignedData [08:00:24]SAM_PROTO_SignData [08:00:24]wFMCommunicate request_size=4 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 0D 01 02 [08:00:24]Write to MH i2c: E2 08 00 33 09 80 0D 01 02 00 00 00 00 B5 [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [08:00:24]RAPDU: 90 00 [08:00:24]wFMCommunicate OK [08:00:24]wFMCommunicate request_size=255 [08:00:24]MH_SAM_APDU [08:00:24]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 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 22 00 00 00 F4 03 04 00 18 D7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [08:00:24]Write to MH i2c: E2 02 01 34 09 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 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 22 00 00 00 F4 03 04 00 18 D7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 4D [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [08:00:24]RAPDU: 90 00 [08:00:24]wFMCommunicate OK [08:00:24]wFMCommunicate request_size=35 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 69 7B 00 00 35 04 06 00 70 CA 64 08 45 44 [08:00:24]Write to MH i2c: E2 26 00 35 09 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 69 7B 00 00 35 04 06 00 70 CA 64 08 45 44 00 00 C6 [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 03 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [08:00:25]RAPDU: 90 00 [08:00:25]wFMCommunicate OK [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 0D 03 02 [08:00:25]Write to MH i2c: E2 08 00 36 09 80 0D 03 02 00 00 00 00 BA [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 0B 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 0B 00 36 09 00 5E 27 54 82 A4 EB 5B DE 90 00 DE [08:00:25]RAPDU: 5E 27 54 82 A4 EB 5B DE 90 00 [08:00:25]wFMCommunicate OK [08:00:25]SAM_PROTO_SignData done [08:00:25]FM_MakeSignedData done [08:00:25]CreateOFDProtocolMessage [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 11 00 00 [08:00:25]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 17 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 15 [08:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:00:25]wFMCommunicate OK [08:00:25]CreateOFDProtocolMessage done [08:00:25]OFDSenderStorePacket 31593 [08:00:25]StoreOFDPacket docnum=31593 [08:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 EC 3A 20 01 33 93 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 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 22 00 00 00 F4 03 04 00 18 D7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 69 7B 00 00 35 04 06 00 70 CA 64 08 45 44 5E 27 54 82 A4 EB 5B DE [08:00:25]CheckFolder [08:00:25]dirname=/storage/ofd_packets [08:00:25]CheckFolder done [08:00:25]ProducePacketName [08:00:25]name=ofd_packets/00031593 [08:00:25]NVStorageSaveData ofd_packets/00031593 [08:00:25]File name is /storage/ofd_packets/00031593 [08:00:25]Write 326 bytes [08:00:25]NVStorageSaveData done [08:00:25]OFDSenderStorePacket done [08:00:25]KKMCreateOFDPacket done [08:00:25]NVStorageSaveData kkm_last_timestamp [08:00:25]File name is /storage/kkm_last_timestamp [08:00:25]Write 4 bytes [08:00:25]NVStorageSaveData done [08:00:25]ExternCall_PrintAddStr [08:00:25]wPrintStart [08:00:25]Write to MH i2c: 01 00 00 38 09 41 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 38 09 00 00 00 00 00 FF 0F 56 [08:00:25]RasterBufferAndPrint [08:00:25]line Счет N : (3)214175 [08:00:25]line ИНН: 02508201610067 [08:00:25]line Контрольно-Кассовый Чек [08:00:25]line ПРОДАЖА [08:00:25]line Товар: 2000036230011 [08:00:25]line Кофе Латте XL(GABB TRADE) [08:00:25]line 1.000 * 130.00 [08:00:25]line = 130.00 [08:00:25]line НДС 12% НСП 1% [08:00:25]line > о реализуемом товаре [08:00:25]line ИТОГО: 130.00 [08:00:25]line НСП 1% : 1.15 [08:00:25]line НДС 12% : 13.80 [08:00:25]line Наличными: 130.00 [08:00:25]line Безнал.: 0.00 [08:00:25]line Место: АЗС № 140 "Партнер Нефть" [08:00:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:00:25]line СНО: Общий режим [08:00:25]line Чек 34 15.07.2024 08:00 [08:00:25]line Смена: 370 ФФД: 1.0 [08:00:25]line ЗНМ: 0300000189 [08:00:25]line РНМ: 0000000000098025 [08:00:25]line Версия ККМ: 001 [08:00:25]line ФМ: 0000000000965389 [08:00:25]line ФД: 31593 [08:00:25]line ФПД: 124014563968324 [08:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080024&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31593&fm=124014563968324&tin=02508201610067®Number=0000000000098025&sum=13000 [08:00:25]line 0 [08:00:25]OFD Sender: Processing packet 31593 [packets to send 5, broken 4] [08:00:25]ProducePacketName [08:00:25]name=ofd_packets/00031593 [08:00:25]OFD Sender: To server: pG, [08:00:25]CommunicateWithHost lk.salyk.kg:30040 [08:00:25]ConnectInit lk.salyk.kg [08:00:25]written 0, free lines is 4095 [08:00:25]Connected sock=7 [08:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 EC 3A 20 01 33 93 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 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 22 00 00 00 F4 03 04 00 18 D7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 69 7B 00 00 35 04 06 00 70 CA 64 08 45 44 5E 27 54 82 A4 EB 5B DE [08:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E0 CA 47 00 5D 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 69 7B 00 00 F4 03 04 00 26 83 94 66 B6 04 01 00 00 F1 13 7E 06 23 6D 5E 47 [08:00:25]CommunicateWithHost err = 0 [08:00:25]CheckOFDResponse [08:00:25]1017 (14) - 77093643461234 [08:00:25]1041 (16) - 0000000000965389 [08:00:25]1040 (4) - 31593 [08:00:25]1012 (4) - 15.07.2024 02:02 [08:00:25]1206 (1) - 0 [08:00:25]OFD Sender: Remove packet 31593 [08:00:25]ProducePacketName [08:00:25]name=ofd_packets/00031593 [08:00:25]NVStorageDeleteData [08:00:25]Write to MH i2c: 01 00 00 60 09 69 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 06 0D 83 [08:00:25]RasterBufferAndPrint [08:00:25]line [08:00:25]line [08:00:25]line [08:00:25]line [08:00:25]line [08:00:25]written 0, free lines is 3340 [08:00:25]MH_Cut [08:00:25]Write to MH i2c: D1 01 00 67 09 01 42 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: D1 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: D1 01 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: D1 01 00 67 09 00 41 [08:00:25]Write to MH i2c: 01 00 00 68 09 71 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:26]OFD Sender: No OFD packet to send [08:00:26]*** Cut start [08:00:26]*** Partial cut [08:00:26]*** CUTSNS_PIN = 1 [08:00:26]*** CUTSNS_PIN = 0 [08:00:26]*** Brake cut motor [08:00:27]Read from MH i2c: 01 [08:00:27]MH_I2C_Read... [08:00:27]*** Stop cut motor [08:00:27]*** Cut end [08:00:27]Read from MH i2c: 01 07 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FF 0F 86 [08:00:27]process_action close_receipt done [08:00:27]requested_data is exist [08:00:27]produce_requested_data [08:00:27]requested_item fm.sn is exist - process it [08:00:27]wFMCommunicate request_size=4 [08:00:27]MH_SAM_APDU [08:00:27]CAPDU: 80 11 00 00 [08:00:27]Write to MH i2c: E2 08 00 69 09 80 11 00 00 00 00 00 00 EC [08:00:27]Write i2c OK [08:00:27]MH_I2C_Read... [08:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:27]Read from MH i2c: E2 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 17 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 17 00 69 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 47 [08:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:00:27]wFMCommunicate OK [08:00:27]requested_item fd.num is exist - process it [08:00:27]SAM_PROTO_GetFieldsCounters [08:00:27]wFMCommunicate request_size=4 [08:00:27]MH_SAM_APDU [08:00:27]CAPDU: 80 13 00 00 [08:00:27]Write to MH i2c: E2 08 00 6A 09 80 13 00 00 00 00 00 00 EF [08:00:27]Write i2c OK [08:00:27]MH_I2C_Read... [08:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:27]Read from MH i2c: E2 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 62 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 62 00 6A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 69 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [08:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 69 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:27]wFMCommunicate OK [08:00:27]SAM_PROTO_GetFieldsCounters done [08:00:27]requested_item shift.num is exist - process it [08:00:27]requested_item shift.opened is exist - process it [08:00:27]req_shift_opened [08:00:27]FM_GetShiftState [08:00:27]SAM_PROTO_GetShiftState [08:00:27]wFMCommunicate request_size=4 [08:00:27]MH_SAM_APDU [08:00:27]CAPDU: 80 13 01 00 [08:00:27]Write to MH i2c: E2 08 00 6B 09 80 13 01 00 00 00 00 00 F1 [08:00:27]Write i2c OK [08:00:27]MH_I2C_Read... [08:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:27]Read from MH i2c: E2 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 0E 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 0E 00 6B 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E4 [08:00:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:00:27]wFMCommunicate OK [08:00:27]SAM_PROTO_GetShiftState done [08:00:27]FM_GetShiftState done [08:00:27]req_shift_opened done [08:00:27]requested_item shift.open_date is exist - process it [08:00:27]req_shift_open_date [08:00:27]req_shift_open_date done [08:00:27]produce_requested_data done [08:00:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31593,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:00:27]process_action_free close_receipt [08:00:27]json_value_free [08:00:27]json_value_free done [08:00:27]process_json_proto returns [08:00:27]Send response to host [08:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31593,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:00:27]free response buf [08:00:27]execute_script done [08:00:27]execute_script returns [08:00:27]free content buf [08:00:27]Sock 6.Close socket [08:00:27]Sock 6.Thread stoped [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:05]accept exits with 5 [08:05:05]New connection [08:05:05]New thread 3067559268 created [08:05:05]Thread 3067415908 joined [08:05:05]Waiting for new connection... [08:05:05] Sock 5.Parse request [08:05:05]Sock 5.Check first char [08:05:05]Sock 5.First char is OK [08:05:05]request: POST /json_proto HTTP/1.0 [08:05:05]Method: POST [08:05:05]URL: /json_proto [08:05:05]Method is POST - this is cgi request [08:05:05]url: /json_proto [08:05:05]query_string will be loaded in cgi processing [08:05:05]execute_cgi json_proto POST (null) [08:05:05]execute_cgi path=json_proto method=POST [08:05:05]POST find Content-Length [08:05:05]Host: 172.17.39.68:8080 [08:05:05]Content-Length: 585 [08:05:05]Content-Type: application/json [08:05:05] [08:05:05]POST finish read [08:05:05]Found Content-Length = 585 [08:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214176", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "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" ] } } [08:05:05]execute_script... [08:05: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)214176", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "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" ] } } [08:05:05]POST & json_proto [08:05:05]process_json_proto [08:05:05]json parsed OK: [08:05:05]protocol is kg_v1.0 [08:05:05]action value=close_receipt [08:05:05]process_action close_receipt [08:05:05]cmd_close_receipt [08:05:05]MH_GetDate [08:05:05]Write to MH i2c: F0 00 00 6C 09 64 [08:05:05]Write i2c OK [08:05:05]MH_I2C_Read... [08:05:05]Read from MH i2c: F0 [08:05:05]MH_I2C_Read... [08:05:05]Read from MH i2c: F0 09 00 [08:05:05]MH_I2C_Read... [08:05:05]Read from MH i2c: F0 09 00 6C 09 00 32 D8 94 66 EC 7F 94 66 D6 [08:05:05]GetLastDocTimeStamp 1721030424 [08:05:05]current date 1721030706 [08:05:05]FM_GetShiftState [08:05:05]SAM_PROTO_GetShiftState [08:05:05]wFMCommunicate request_size=4 [08:05:05]MH_SAM_APDU [08:05:05]CAPDU: 80 13 01 00 [08:05:05]Write to MH i2c: E2 08 00 6D 09 80 13 01 00 00 00 00 00 F3 [08:05:05]Write i2c OK [08:05:05]MH_I2C_Read... [08:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:05]Read from MH i2c: E2 [08:05:05]MH_I2C_Read... [08:05:05]Read from MH i2c: E2 0E 00 [08:05:05]MH_I2C_Read... [08:05:05]Read from MH i2c: E2 0E 00 6D 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E6 [08:05:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:05:05]wFMCommunicate OK [08:05:05]SAM_PROTO_GetShiftState done [08:05:05]FM_GetShiftState done [08:05:05]opened in 1721001862 [08:05:05]opened+sec_in_day 1721088262 [08:05:05]quantity*price = 4500 [08:05:05]sum+1 = 4501 [08:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 35 15.07.2024 08:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31594 ФПД: 57240272593574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080506&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31594&fm=57240272593574&tin=02508201610067®Number=0000000000098025&sum=4500 0 [08:05:06]StoreToDocumentArchive [08:05:06]shift 370 fd 31594 [08:05:06]save to /storage/0370/doc_00031594 [08:05:06]save last doc name /storage/0370/doc_00031594 to /storage/kkm_last_doc_name [08:05:06]save OK [08:05:06]Clear old archive folders... [08:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=260 [08:05:06]tlvbuf is 012335C0 [08:05:06]SAM_PROTO_ClearQueue [08:05:06]wFMCommunicate request_size=4 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 09 00 00 [08:05:06]Write to MH i2c: E2 08 00 7A 09 80 09 00 00 00 00 00 00 F5 [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:06]Read from MH i2c: E2 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [08:05:06]RAPDU: 90 00 [08:05:06]wFMCommunicate OK [08:05:06]SAM_PROTO_ClearQueue done [08:05:06]KKMCreateOFDPacket [08:05:06]OFDProtocolAddRootSTLVToBuf [08:05:06]FM_MakeSignedData [08:05:06]FM_MakeSignedData [08:05:06]SAM_PROTO_SignData [08:05:06]wFMCommunicate request_size=4 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 0D 01 02 [08:05:06]Write to MH i2c: E2 08 00 7B 09 80 0D 01 02 00 00 00 00 FD [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:06]Read from MH i2c: E2 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [08:05:06]RAPDU: 90 00 [08:05:06]wFMCommunicate OK [08:05:06]wFMCommunicate request_size=255 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 00 00 00 F4 03 04 00 32 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 [08:05:06]Write to MH i2c: E2 02 01 7C 09 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 00 00 00 F4 03 04 00 32 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 00 17 [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:06]Read from MH i2c: E2 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [08:05:06]RAPDU: 90 00 [08:05:06]wFMCommunicate OK [08:05:06]wFMCommunicate request_size=19 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 0D 02 02 0E 6A 7B 00 00 35 04 06 00 34 0F 4A 1D 62 A6 [08:05:06]Write to MH i2c: E2 16 00 7D 09 80 0D 02 02 0E 00 6A 7B 00 00 35 04 06 00 34 0F 4A 1D 62 A6 00 00 F2 [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:06]Read from MH i2c: E2 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 [08:05:06]MH_I2C_Read... [08:05:06]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [08:05:06]RAPDU: 90 00 [08:05:06]wFMCommunicate OK [08:05:06]wFMCommunicate request_size=4 [08:05:06]MH_SAM_APDU [08:05:06]CAPDU: 80 0D 03 02 [08:05:06]Write to MH i2c: E2 08 00 7E 09 80 0D 03 02 00 00 00 00 02 [08:05:06]Write i2c OK [08:05:06]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 0B 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 0B 00 7E 09 00 73 62 2E 83 CE 09 5C 39 90 00 F5 [08:05:07]RAPDU: 73 62 2E 83 CE 09 5C 39 90 00 [08:05:07]wFMCommunicate OK [08:05:07]SAM_PROTO_SignData done [08:05:07]FM_MakeSignedData done [08:05:07]CreateOFDProtocolMessage [08:05:07]wFMCommunicate request_size=4 [08:05:07]MH_SAM_APDU [08:05:07]CAPDU: 80 11 00 00 [08:05:07]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:07]Read from MH i2c: E2 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 17 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5D [08:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:05:07]wFMCommunicate OK [08:05:07]CreateOFDProtocolMessage done [08:05:07]OFDSenderStorePacket 31594 [08:05:07]StoreOFDPacket docnum=31594 [08:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 01 00 00 57 E4 10 01 CA 5B 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 00 00 00 F4 03 04 00 32 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6A 7B 00 00 35 04 06 00 34 0F 4A 1D 62 A6 73 62 2E 83 CE 09 5C 39 [08:05:07]CheckFolder [08:05:07]dirname=/storage/ofd_packets [08:05:07]CheckFolder done [08:05:07]ProducePacketName [08:05:07]name=ofd_packets/00031594 [08:05:07]NVStorageSaveData ofd_packets/00031594 [08:05:07]File name is /storage/ofd_packets/00031594 [08:05:07]Write 310 bytes [08:05:07]NVStorageSaveData done [08:05:07]OFDSenderStorePacket done [08:05:07]KKMCreateOFDPacket done [08:05:07]NVStorageSaveData kkm_last_timestamp [08:05:07]File name is /storage/kkm_last_timestamp [08:05:07]Write 4 bytes [08:05:07]NVStorageSaveData done [08:05:07]ExternCall_PrintAddStr [08:05:07]wPrintStart [08:05:07]Write to MH i2c: 01 00 00 80 09 89 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 80 09 00 00 00 00 00 FF 0F 9E [08:05:07]RasterBufferAndPrint [08:05:07]line Счет N : (3)214176 [08:05:07]line ИНН: 02508201610067 [08:05:07]line Контрольно-Кассовый Чек [08:05:07]line ПРОДАЖА [08:05:07]line Товар: 50173617 [08:05:07]line Жев Orbit Eucalyptus [08:05:07]line 1.000 * 45.00 [08:05:07]line = 45.00 [08:05:07]line НДС 12% НСП 1% [08:05:07]line > о реализуемом товаре [08:05:07]line ИТОГО: 45.00 [08:05:07]line НСП 1% : 0.40 [08:05:07]line НДС 12% : 4.78 [08:05:07]line Наличными: 45.00 [08:05:07]line Безнал.: 0.00 [08:05:07]line Место: АЗС № 140 "Партнер Нефть" [08:05:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:05:07]line СНО: Общий режим [08:05:07]line Чек 35 15.07.2024 08:05 [08:05:07]line Смена: 370 ФФД: 1.0 [08:05:07]line ЗНМ: 0300000189 [08:05:07]line РНМ: 0000000000098025 [08:05:07]line Версия ККМ: 001 [08:05:07]line ФМ: 0000000000965389 [08:05:07]line ФД: 31594 [08:05:07]line ФПД: 57240272593574 [08:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080506&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31594&fm=57240272593574&tin=02508201610067®Number=0000000000098025&sum=4500 [08:05:07]line 0 [08:05:07]OFD Sender: Processing packet 31594 [packets to send 5, broken 4] [08:05:07]ProducePacketName [08:05:07]name=ofd_packets/00031594 [08:05:07]OFD Sender: To server: pG, [08:05:07]CommunicateWithHost lk.salyk.kg:30040 [08:05:07]ConnectInit lk.salyk.kg [08:05:07]written 0, free lines is 4095 [08:05:07]Connected sock=7 [08:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 01 00 00 57 E4 10 01 CA 5B 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 00 00 00 F4 03 04 00 32 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6A 7B 00 00 35 04 06 00 34 0F 4A 1D 62 A6 73 62 2E 83 CE 09 5C 39 [08:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3E 8B 47 00 44 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 39 36 35 33 38 39 10 04 04 00 6A 7B 00 00 F4 03 04 00 40 84 94 66 B6 04 01 00 00 7D A0 9C CC C9 A9 1C EB [08:05:07]CommunicateWithHost err = 0 [08:05:07]CheckOFDResponse [08:05:07]1017 (14) - 77093643461234 [08:05:07]1041 (16) - 0000000000965389 [08:05:07]1040 (4) - 31594 [08:05:07]1012 (4) - 15.07.2024 02:06 [08:05:07]1206 (1) - 0 [08:05:07]OFD Sender: Remove packet 31594 [08:05:07]ProducePacketName [08:05:07]name=ofd_packets/00031594 [08:05:07]NVStorageDeleteData [08:05:07]Write to MH i2c: 01 00 00 A8 09 B1 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 0D 0D D2 [08:05:07]RasterBufferAndPrint [08:05:07]line [08:05:07]line [08:05:07]line [08:05:07]line [08:05:07]line [08:05:07]written 0, free lines is 3348 [08:05:07]MH_Cut [08:05:07]Write to MH i2c: D1 01 00 AF 09 01 8A [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: D1 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: D1 01 00 [08:05:07]MH_I2C_Read... [08:05:07]Read from MH i2c: D1 01 00 AF 09 00 89 [08:05:07]Write to MH i2c: 01 00 00 B0 09 B9 [08:05:07]Write i2c OK [08:05:07]MH_I2C_Read... [08:05:08]OFD Sender: No OFD packet to send [08:05:08]*** Cut start [08:05:08]*** Partial cut [08:05:08]*** CUTSNS_PIN = 1 [08:05:08]*** CUTSNS_PIN = 0 [08:05:08]*** Brake cut motor [08:05:09]Read from MH i2c: 01 [08:05:09]MH_I2C_Read... [08:05:09]*** Stop cut motor [08:05:09]*** Cut end [08:05:09]Read from MH i2c: 01 07 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [08:05:09]process_action close_receipt done [08:05:09]requested_data is exist [08:05:09]produce_requested_data [08:05:09]requested_item fm.sn is exist - process it [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 11 00 00 [08:05:09]Write to MH i2c: E2 08 00 B1 09 80 11 00 00 00 00 00 00 34 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 17 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 17 00 B1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8F [08:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:05:09]wFMCommunicate OK [08:05:09]requested_item fd.num is exist - process it [08:05:09]SAM_PROTO_GetFieldsCounters [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 13 00 00 [08:05:09]Write to MH i2c: E2 08 00 B2 09 80 13 00 00 00 00 00 00 37 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 62 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 62 00 B2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:09]wFMCommunicate OK [08:05:09]SAM_PROTO_GetFieldsCounters done [08:05:09]requested_item shift.num is exist - process it [08:05:09]requested_item shift.opened is exist - process it [08:05:09]req_shift_opened [08:05:09]FM_GetShiftState [08:05:09]SAM_PROTO_GetShiftState [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 13 01 00 [08:05:09]Write to MH i2c: E2 08 00 B3 09 80 13 01 00 00 00 00 00 39 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0E 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0E 00 B3 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 2C [08:05:09]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:05:09]wFMCommunicate OK [08:05:09]SAM_PROTO_GetShiftState done [08:05:09]FM_GetShiftState done [08:05:09]req_shift_opened done [08:05:09]requested_item shift.open_date is exist - process it [08:05:09]req_shift_open_date [08:05:09]req_shift_open_date done [08:05:09]produce_requested_data done [08:05:09]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31594,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:05:09]process_action_free close_receipt [08:05:09]json_value_free [08:05:09]json_value_free done [08:05:09]process_json_proto returns [08:05:09]Send response to host [08:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31594,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:05:09]free response buf [08:05:09]execute_script done [08:05:09]execute_script returns [08:05:09]free content buf [08:05:09]Sock 5.Close socket [08:05:09]Sock 5.Thread stoped [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:52]accept exits with 6 [08:05:52]New connection [08:05:52]New thread 3067415908 created [08:05:52]Thread 3067559268 joined [08:05:52]Waiting for new connection... [08:05:52] Sock 6.Parse request [08:05:52]Sock 6.Check first char [08:05:52]Sock 6.First char is OK [08:05:52]request: POST /json_proto HTTP/1.0 [08:05:52]Method: POST [08:05:52]URL: /json_proto [08:05:52]Method is POST - this is cgi request [08:05:52]url: /json_proto [08:05:52]query_string will be loaded in cgi processing [08:05:52]execute_cgi json_proto POST (null) [08:05:52]execute_cgi path=json_proto method=POST [08:05:52]POST find Content-Length [08:05:52]Host: 172.17.39.68:8080 [08:05:52]Content-Length: 681 [08:05:52]Content-Type: application/json [08:05:52] [08:05:52]POST finish read [08:05:52]Found Content-Length = 681 [08:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214177", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:52]execute_script... [08:05: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)214177", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:52]POST & json_proto [08:05:52]process_json_proto [08:05:52]json parsed OK: [08:05:52]protocol is kg_v1.0 [08:05:52]action value=close_receipt [08:05:52]process_action close_receipt [08:05:52]cmd_close_receipt [08:05:52]MH_GetDate [08:05:52]Write to MH i2c: F0 00 00 B4 09 AC [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: F0 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: F0 09 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: F0 09 00 B4 09 00 61 D8 94 66 EC 7F 94 66 4D [08:05:52]GetLastDocTimeStamp 1721030706 [08:05:52]current date 1721030753 [08:05:52]FM_GetShiftState [08:05:52]SAM_PROTO_GetShiftState [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 13 01 00 [08:05:52]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 0E 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 2E [08:05:52]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:05:52]wFMCommunicate OK [08:05:52]SAM_PROTO_GetShiftState done [08:05:52]FM_GetShiftState done [08:05:52]opened in 1721001862 [08:05:52]opened+sec_in_day 1721088262 [08:05:52]quantity*price = 8200 [08:05:52]sum+1 = 8201 [08:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 36 15.07.2024 08:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31595 ФПД: 222805311054887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080553&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31595&fm=222805311054887&tin=02508201610067®Number=0000000000098025&sum=8200 0 [08:05:53]StoreToDocumentArchive [08:05:53]shift 370 fd 31595 [08:05:53]save to /storage/0370/doc_00031595 [08:05:53]save last doc name /storage/0370/doc_00031595 to /storage/kkm_last_doc_name [08:05:53]save OK [08:05:53]Clear old archive folders... [08:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=296 [08:05:53]tlvbuf is 01272720 [08:05:53]SAM_PROTO_ClearQueue [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 09 00 00 [08:05:53]Write to MH i2c: E2 08 00 C2 09 80 09 00 00 00 00 00 00 3D [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [08:05:53]RAPDU: 90 00 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_ClearQueue done [08:05:53]KKMCreateOFDPacket [08:05:53]OFDProtocolAddRootSTLVToBuf [08:05:53]FM_MakeSignedData [08:05:53]FM_MakeSignedData [08:05:53]SAM_PROTO_SignData [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 0D 01 02 [08:05:53]Write to MH i2c: E2 08 00 C3 09 80 0D 01 02 00 00 00 00 45 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 C3 09 00 90 00 40 [08:05:53]RAPDU: 90 00 [08:05:53]wFMCommunicate OK [08:05:53]wFMCommunicate request_size=255 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 24 00 00 00 F4 03 04 00 61 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [08:05:53]Write to MH i2c: E2 02 01 C4 09 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 24 00 00 00 F4 03 04 00 61 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 4E [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [08:05:53]RAPDU: 90 00 [08:05:53]wFMCommunicate OK [08:05:53]wFMCommunicate request_size=55 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6B 7B 00 00 35 04 06 00 CA A3 E7 6B 64 27 [08:05:53]Write to MH i2c: E2 3A 00 C5 09 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6B 7B 00 00 35 04 06 00 CA A3 E7 6B 64 27 00 00 D8 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [08:05:53]RAPDU: 90 00 [08:05:53]wFMCommunicate OK [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 0D 03 02 [08:05:53]Write to MH i2c: E2 08 00 C6 09 80 0D 03 02 00 00 00 00 4A [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0B 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0B 00 C6 09 00 BB 2D 57 FA 58 1A 40 74 90 00 AA [08:05:54]RAPDU: BB 2D 57 FA 58 1A 40 74 90 00 [08:05:54]wFMCommunicate OK [08:05:54]SAM_PROTO_SignData done [08:05:54]FM_MakeSignedData done [08:05:54]CreateOFDProtocolMessage [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 11 00 00 [08:05:54]Write to MH i2c: E2 08 00 C7 09 80 11 00 00 00 00 00 00 4A [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 17 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 17 00 C7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A5 [08:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:05:54]wFMCommunicate OK [08:05:54]CreateOFDProtocolMessage done [08:05:54]OFDSenderStorePacket 31595 [08:05:54]StoreOFDPacket docnum=31595 [08:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 C3 F1 34 01 84 27 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 24 00 00 00 F4 03 04 00 61 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6B 7B 00 00 35 04 06 00 CA A3 E7 6B 64 27 BB 2D 57 FA 58 1A 40 74 [08:05:54]CheckFolder [08:05:54]dirname=/storage/ofd_packets [08:05:54]CheckFolder done [08:05:54]ProducePacketName [08:05:54]name=ofd_packets/00031595 [08:05:54]NVStorageSaveData ofd_packets/00031595 [08:05:54]File name is /storage/ofd_packets/00031595 [08:05:54]Write 346 bytes [08:05:54]NVStorageSaveData done [08:05:54]OFDSenderStorePacket done [08:05:54]KKMCreateOFDPacket done [08:05:54]NVStorageSaveData kkm_last_timestamp [08:05:54]File name is /storage/kkm_last_timestamp [08:05:54]Write 4 bytes [08:05:54]NVStorageSaveData done [08:05:54]ExternCall_PrintAddStr [08:05:54]wPrintStart [08:05:54]Write to MH i2c: 01 00 00 C8 09 D1 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 C8 09 00 00 00 00 00 FF 0F E6 [08:05:54]RasterBufferAndPrint [08:05:54]line Счет N : (3)214177 [08:05:54]line ИНН: 02508201610067 [08:05:54]line Контрольно-Кассовый Чек [08:05:54]line ПРОДАЖА [08:05:54]line Товар: 4700000482733 [08:05:54]line Напиток Nitro Fr газ класс ж/б 0,45л [08:05:54]line 1.000 * 82.00 [08:05:54]line = 82.00 [08:05:54]line НДС 12% НСП 1% [08:05:54]line > о реализуемом товаре [08:05:54]line ИТОГО: 82.00 [08:05:54]line НСП 1% : 0.73 [08:05:54]line НДС 12% : 8.71 [08:05:54]line Наличными: 82.00 [08:05:54]line Безнал.: 0.00 [08:05:54]line Место: АЗС № 140 "Партнер Нефть" [08:05:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:05:54]line СНО: Общий режим [08:05:54]line Чек 36 15.07.2024 08:05 [08:05:54]line Смена: 370 ФФД: 1.0 [08:05:54]line ЗНМ: 0300000189 [08:05:54]line РНМ: 0000000000098025 [08:05:54]line Версия ККМ: 001 [08:05:54]line ФМ: 0000000000965389 [08:05:54]line ФД: 31595 [08:05:54]line ФПД: 222805311054887 [08:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080553&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31595&fm=222805311054887&tin=02508201610067®Number=0000000000098025&sum=8200 [08:05:54]line 0 [08:05:54]written 0, free lines is 4095 [08:05:54]OFD Sender: Processing packet 31595 [packets to send 5, broken 4] [08:05:54]ProducePacketName [08:05:54]name=ofd_packets/00031595 [08:05:54]OFD Sender: To server: pG, [08:05:54]CommunicateWithHost lk.salyk.kg:30040 [08:05:54]ConnectInit lk.salyk.kg [08:05:54]Connected sock=9 [08:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 C3 F1 34 01 84 27 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 24 00 00 00 F4 03 04 00 61 D8 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6B 7B 00 00 35 04 06 00 CA A3 E7 6B 64 27 BB 2D 57 FA 58 1A 40 74 [08:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 7F 87 47 00 28 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6B 7B 00 00 F4 03 04 00 6F 84 94 66 B6 04 01 00 00 40 B9 D5 48 4C 4C 7A 7D [08:05:54]CommunicateWithHost err = 0 [08:05:54]CheckOFDResponse [08:05:54]1017 (14) - 77093643461234 [08:05:54]1041 (16) - 0000000000965389 [08:05:54]1040 (4) - 31595 [08:05:54]1012 (4) - 15.07.2024 02:07 [08:05:54]1206 (1) - 0 [08:05:54]OFD Sender: Remove packet 31595 [08:05:54]ProducePacketName [08:05:54]name=ofd_packets/00031595 [08:05:54]NVStorageDeleteData [08:05:54]Write to MH i2c: 01 00 00 F1 09 FA [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 F1 09 00 00 00 00 00 EC 0C F9 [08:05:54]RasterBufferAndPrint [08:05:54]line [08:05:54]line [08:05:54]line [08:05:54]line [08:05:54]line [08:05:54]written 0, free lines is 3314 [08:05:54]MH_Cut [08:05:54]Write to MH i2c: D1 01 00 F8 09 01 D3 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: D1 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: D1 01 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: D1 01 00 F8 09 00 D2 [08:05:54]Write to MH i2c: 01 00 00 F9 09 02 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]OFD Sender: No OFD packet to send [08:05:55]*** Cut start [08:05:55]*** Partial cut [08:05:55]*** CUTSNS_PIN = 1 [08:05:55]*** CUTSNS_PIN = 0 [08:05:55]*** Brake cut motor [08:05:55]Read from MH i2c: 01 [08:05:55]MH_I2C_Read... [08:05:55]*** Stop cut motor [08:05:55]*** Cut end [08:05:55]Read from MH i2c: 01 07 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 07 00 F9 09 00 00 00 00 00 FF 0F 17 [08:05:55]process_action close_receipt done [08:05:55]requested_data is exist [08:05:55]produce_requested_data [08:05:55]requested_item fm.sn is exist - process it [08:05:55]wFMCommunicate request_size=4 [08:05:55]MH_SAM_APDU [08:05:55]CAPDU: 80 11 00 00 [08:05:55]Write to MH i2c: E2 08 00 FA 09 80 11 00 00 00 00 00 00 7D [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 17 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 17 00 FA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D8 [08:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:05:56]wFMCommunicate OK [08:05:56]requested_item fd.num is exist - process it [08:05:56]SAM_PROTO_GetFieldsCounters [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 13 00 00 [08:05:56]Write to MH i2c: E2 08 00 FB 09 80 13 00 00 00 00 00 00 80 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 62 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 62 00 FB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:56]wFMCommunicate OK [08:05:56]SAM_PROTO_GetFieldsCounters done [08:05:56]requested_item shift.num is exist - process it [08:05:56]requested_item shift.opened is exist - process it [08:05:56]req_shift_opened [08:05:56]FM_GetShiftState [08:05:56]SAM_PROTO_GetShiftState [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 13 01 00 [08:05:56]Write to MH i2c: E2 08 00 FC 09 80 13 01 00 00 00 00 00 82 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 0E 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 0E 00 FC 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 75 [08:05:56]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:05:56]wFMCommunicate OK [08:05:56]SAM_PROTO_GetShiftState done [08:05:56]FM_GetShiftState done [08:05:56]req_shift_opened done [08:05:56]requested_item shift.open_date is exist - process it [08:05:56]req_shift_open_date [08:05:56]req_shift_open_date done [08:05:56]produce_requested_data done [08:05:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31595,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:05:56]process_action_free close_receipt [08:05:56]json_value_free [08:05:56]json_value_free done [08:05:56]process_json_proto returns [08:05:56]Send response to host [08:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31595,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:05:56]free response buf [08:05:56]execute_script done [08:05:56]execute_script returns [08:05:56]free content buf [08:05:56]Sock 6.Close socket [08:05:56]Sock 6.Thread stoped [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:36]accept exits with 5 [08:09:36]New connection [08:09:36]New thread 3067559268 created [08:09:36]Thread 3067415908 joined [08:09:36]Waiting for new connection... [08:09:36] Sock 5.Parse request [08:09:36]Sock 5.Check first char [08:09:36]Sock 5.First char is OK [08:09:36]request: POST /json_proto HTTP/1.0 [08:09:36]Method: POST [08:09:36]URL: /json_proto [08:09:36]Method is POST - this is cgi request [08:09:36]url: /json_proto [08:09:36]query_string will be loaded in cgi processing [08:09:36]execute_cgi json_proto POST (null) [08:09:36]execute_cgi path=json_proto method=POST [08:09:36]POST find Content-Length [08:09:36]Host: 172.17.39.68:8080 [08:09:36]Content-Length: 623 [08:09:36]Content-Type: application/json [08:09:36] [08:09:36]POST finish read [08:09:36]Found Content-Length = 623 [08:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214178", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [08:09:36]execute_script... [08:09: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)214178", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [08:09:36]POST & json_proto [08:09:36]process_json_proto [08:09:36]json parsed OK: [08:09:36]protocol is kg_v1.0 [08:09:36]action value=close_receipt [08:09:36]process_action close_receipt [08:09:36]cmd_close_receipt [08:09:36]MH_GetDate [08:09:36]Write to MH i2c: F0 00 00 FD 09 F5 [08:09:36]Write i2c OK [08:09:36]MH_I2C_Read... [08:09:36]Read from MH i2c: F0 [08:09:36]MH_I2C_Read... [08:09:36]Read from MH i2c: F0 09 00 [08:09:36]MH_I2C_Read... [08:09:36]Read from MH i2c: F0 09 00 FD 09 00 41 D9 94 66 EC 7F 94 66 77 [08:09:36]GetLastDocTimeStamp 1721030753 [08:09:36]current date 1721030977 [08:09:36]FM_GetShiftState [08:09:36]SAM_PROTO_GetShiftState [08:09:36]wFMCommunicate request_size=4 [08:09:36]MH_SAM_APDU [08:09:36]CAPDU: 80 13 01 00 [08:09:36]Write to MH i2c: E2 08 00 FE 09 80 13 01 00 00 00 00 00 84 [08:09:36]Write i2c OK [08:09:36]MH_I2C_Read... [08:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:36]Read from MH i2c: E2 [08:09:36]MH_I2C_Read... [08:09:36]Read from MH i2c: E2 0E 00 [08:09:36]MH_I2C_Read... [08:09:36]Read from MH i2c: E2 0E 00 FE 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 77 [08:09:36]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:09:36]wFMCommunicate OK [08:09:36]SAM_PROTO_GetShiftState done [08:09:36]FM_GetShiftState done [08:09:36]opened in 1721001862 [08:09:36]opened+sec_in_day 1721088262 [08:09:36]quantity*price = 14000 [08:09:36]sum+1 = 14001 [08:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 37 15.07.2024 08:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31596 ФПД: 118883197564755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31596&fm=118883197564755&tin=02508201610067®Number=0000000000098025&sum=14000 0 [08:09:37]StoreToDocumentArchive [08:09:37]shift 370 fd 31596 [08:09:37]save to /storage/0370/doc_00031596 [08:09:37]save last doc name /storage/0370/doc_00031596 to /storage/kkm_last_doc_name [08:09:37]save OK [08:09:37]Clear old archive folders... [08:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:09:37]tlvbuf is 012725D0 [08:09:37]SAM_PROTO_ClearQueue [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 09 00 00 [08:09:37]Write to MH i2c: E2 08 00 0B 0A 80 09 00 00 00 00 00 00 87 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [08:09:37]RAPDU: 90 00 [08:09:37]wFMCommunicate OK [08:09:37]SAM_PROTO_ClearQueue done [08:09:37]KKMCreateOFDPacket [08:09:37]OFDProtocolAddRootSTLVToBuf [08:09:37]FM_MakeSignedData [08:09:37]FM_MakeSignedData [08:09:37]SAM_PROTO_SignData [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 0D 01 02 [08:09:37]Write to MH i2c: E2 08 00 0C 0A 80 0D 01 02 00 00 00 00 8F [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [08:09:37]RAPDU: 90 00 [08:09:37]wFMCommunicate OK [08:09:37]wFMCommunicate request_size=255 [08:09:37]MH_SAM_APDU [08:09:37]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 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 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 25 00 00 00 F4 03 04 00 41 D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [08:09:37]Write to MH i2c: E2 02 01 0D 0A 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 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 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 25 00 00 00 F4 03 04 00 41 D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 CA [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [08:09:37]RAPDU: 90 00 [08:09:37]wFMCommunicate OK [08:09:37]wFMCommunicate request_size=34 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6C 7B 00 00 35 04 06 00 6C 1F A6 C2 B7 53 [08:09:37]Write to MH i2c: E2 25 00 0E 0A 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6C 7B 00 00 35 04 06 00 6C 1F A6 C2 B7 53 00 00 3F [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [08:09:37]RAPDU: 90 00 [08:09:37]wFMCommunicate OK [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 0D 03 02 [08:09:37]Write to MH i2c: E2 08 00 0F 0A 80 0D 03 02 00 00 00 00 94 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 0B 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 0B 00 0F 0A 00 20 BF 84 D6 B1 83 23 18 90 00 3D [08:09:37]RAPDU: 20 BF 84 D6 B1 83 23 18 90 00 [08:09:37]wFMCommunicate OK [08:09:37]SAM_PROTO_SignData done [08:09:37]FM_MakeSignedData done [08:09:37]CreateOFDProtocolMessage [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 11 00 00 [08:09:37]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:38]Read from MH i2c: E2 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 17 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EF [08:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:09:38]wFMCommunicate OK [08:09:38]CreateOFDProtocolMessage done [08:09:38]OFDSenderStorePacket 31596 [08:09:38]StoreOFDPacket docnum=31596 [08:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 D2 9B 1F 01 51 27 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 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 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 25 00 00 00 F4 03 04 00 41 D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6C 7B 00 00 35 04 06 00 6C 1F A6 C2 B7 53 20 BF 84 D6 B1 83 23 18 [08:09:38]CheckFolder [08:09:38]dirname=/storage/ofd_packets [08:09:38]CheckFolder done [08:09:38]ProducePacketName [08:09:38]name=ofd_packets/00031596 [08:09:38]NVStorageSaveData ofd_packets/00031596 [08:09:38]File name is /storage/ofd_packets/00031596 [08:09:38]Write 325 bytes [08:09:38]NVStorageSaveData done [08:09:38]OFDSenderStorePacket done [08:09:38]KKMCreateOFDPacket done [08:09:38]NVStorageSaveData kkm_last_timestamp [08:09:38]File name is /storage/kkm_last_timestamp [08:09:38]Write 4 bytes [08:09:38]NVStorageSaveData done [08:09:38]ExternCall_PrintAddStr [08:09:38]wPrintStart [08:09:38]Write to MH i2c: 01 00 00 11 0A 1B [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 07 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [08:09:38]RasterBufferAndPrint [08:09:38]line Счет N : (3)214178 [08:09:38]line ИНН: 02508201610067 [08:09:38]line Контрольно-Кассовый Чек [08:09:38]line ПРОДАЖА [08:09:38]line Товар: 48743587 [08:09:38]line Сигареты Winston XStyle Silver [08:09:38]line 1.000 * 140.00 [08:09:38]line = 140.00 [08:09:38]line НДС 12% НСП 1% [08:09:38]line > о реализуемом товаре [08:09:38]line ИТОГО: 140.00 [08:09:38]line НСП 1% : 1.24 [08:09:38]line НДС 12% : 14.87 [08:09:38]line Наличными: 140.00 [08:09:38]line Безнал.: 0.00 [08:09:38]line Место: АЗС № 140 "Партнер Нефть" [08:09:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:09:38]line СНО: Общий режим [08:09:38]line Чек 37 15.07.2024 08:09 [08:09:38]line Смена: 370 ФФД: 1.0 [08:09:38]line ЗНМ: 0300000189 [08:09:38]line РНМ: 0000000000098025 [08:09:38]line Версия ККМ: 001 [08:09:38]line ФМ: 0000000000965389 [08:09:38]line ФД: 31596 [08:09:38]line ФПД: 118883197564755 [08:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31596&fm=118883197564755&tin=02508201610067®Number=0000000000098025&sum=14000 [08:09:38]line 0 [08:09:38]OFD Sender: Processing packet 31596 [packets to send 5, broken 4] [08:09:38]ProducePacketName [08:09:38]name=ofd_packets/00031596 [08:09:38]OFD Sender: To server: pG, [08:09:38]CommunicateWithHost lk.salyk.kg:30040 [08:09:38]ConnectInit lk.salyk.kg [08:09:38]written 0, free lines is 4095 [08:09:38]Connected sock=7 [08:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 D2 9B 1F 01 51 27 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 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 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 25 00 00 00 F4 03 04 00 41 D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6C 7B 00 00 35 04 06 00 6C 1F A6 C2 B7 53 20 BF 84 D6 B1 83 23 18 [08:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FF 38 47 00 81 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6C 7B 00 00 F4 03 04 00 4F 85 94 66 B6 04 01 00 00 6A 5E D9 F1 A1 00 E9 DF [08:09:38]CommunicateWithHost err = 0 [08:09:38]CheckOFDResponse [08:09:38]1017 (14) - 77093643461234 [08:09:38]1041 (16) - 0000000000965389 [08:09:38]1040 (4) - 31596 [08:09:38]1012 (4) - 15.07.2024 02:11 [08:09:38]1206 (1) - 0 [08:09:38]OFD Sender: Remove packet 31596 [08:09:38]ProducePacketName [08:09:38]name=ofd_packets/00031596 [08:09:38]NVStorageDeleteData [08:09:38]Write to MH i2c: 01 00 00 3A 0A 44 [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 07 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: 01 07 00 3A 0A 00 00 00 00 00 E2 0C 39 [08:09:38]RasterBufferAndPrint [08:09:38]line [08:09:38]line [08:09:38]line [08:09:38]line [08:09:38]line [08:09:38]written 0, free lines is 3304 [08:09:38]MH_Cut [08:09:38]Write to MH i2c: D1 01 00 41 0A 01 1D [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: D1 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: D1 01 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: D1 01 00 41 0A 00 1C [08:09:38]Write to MH i2c: 01 00 00 42 0A 4C [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:39]OFD Sender: No OFD packet to send [08:09:39]*** Cut start [08:09:39]*** Partial cut [08:09:39]*** CUTSNS_PIN = 1 [08:09:39]*** CUTSNS_PIN = 0 [08:09:39]*** Brake cut motor [08:09:40]Read from MH i2c: 01 [08:09:40]MH_I2C_Read... [08:09:40]*** Stop cut motor [08:09:40]*** Cut end [08:09:40]Read from MH i2c: 01 07 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 FF 0F 61 [08:09:40]process_action close_receipt done [08:09:40]requested_data is exist [08:09:40]produce_requested_data [08:09:40]requested_item fm.sn is exist - process it [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 11 00 00 [08:09:40]Write to MH i2c: E2 08 00 43 0A 80 11 00 00 00 00 00 00 C7 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 17 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 17 00 43 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 22 [08:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:09:40]wFMCommunicate OK [08:09:40]requested_item fd.num is exist - process it [08:09:40]SAM_PROTO_GetFieldsCounters [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 13 00 00 [08:09:40]Write to MH i2c: E2 08 00 44 0A 80 13 00 00 00 00 00 00 CA [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 62 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 62 00 44 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:40]wFMCommunicate OK [08:09:40]SAM_PROTO_GetFieldsCounters done [08:09:40]requested_item shift.num is exist - process it [08:09:40]requested_item shift.opened is exist - process it [08:09:40]req_shift_opened [08:09:40]FM_GetShiftState [08:09:40]SAM_PROTO_GetShiftState [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 13 01 00 [08:09:40]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 0E 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BF [08:09:40]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:09:40]wFMCommunicate OK [08:09:40]SAM_PROTO_GetShiftState done [08:09:40]FM_GetShiftState done [08:09:40]req_shift_opened done [08:09:40]requested_item shift.open_date is exist - process it [08:09:40]req_shift_open_date [08:09:40]req_shift_open_date done [08:09:40]produce_requested_data done [08:09:40]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31596,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:09:40]process_action_free close_receipt [08:09:40]json_value_free [08:09:40]json_value_free done [08:09:40]process_json_proto returns [08:09:40]Send response to host [08:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31596,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:09:40]free response buf [08:09:40]execute_script done [08:09:40]execute_script returns [08:09:40]free content buf [08:09:40]Sock 5.Close socket [08:09:40]Sock 5.Thread stoped [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:57]accept exits with 6 [08:11:57]New connection [08:11:57]New thread 3067415908 created [08:11:57]Thread 3067559268 joined [08:11:57]Waiting for new connection... [08:11:57] Sock 6.Parse request [08:11:57]Sock 6.Check first char [08:11:57]Sock 6.First char is OK [08:11:57]request: POST /json_proto HTTP/1.0 [08:11:57]Method: POST [08:11:57]URL: /json_proto [08:11:57]Method is POST - this is cgi request [08:11:57]url: /json_proto [08:11:57]query_string will be loaded in cgi processing [08:11:57]execute_cgi json_proto POST (null) [08:11:57]execute_cgi path=json_proto method=POST [08:11:57]POST find Content-Length [08:11:57]Host: 172.17.39.68:8080 [08:11:57]Content-Length: 647 [08:11:57]Content-Type: application/json [08:11:57] [08:11:57]POST finish read [08:11:57]Found Content-Length = 647 [08:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214179", "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" : 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" ] } } [08:11:57]execute_script... [08:11: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)214179", "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" : 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" ] } } [08:11:57]POST & json_proto [08:11:57]process_json_proto [08:11:57]json parsed OK: [08:11:57]protocol is kg_v1.0 [08:11:57]action value=close_receipt [08:11:57]process_action close_receipt [08:11:57]cmd_close_receipt [08:11:57]MH_GetDate [08:11:57]Write to MH i2c: F0 00 00 46 0A 3F [08:11:57]Write i2c OK [08:11:57]MH_I2C_Read... [08:11:57]Read from MH i2c: F0 [08:11:57]MH_I2C_Read... [08:11:57]Read from MH i2c: F0 09 00 [08:11:57]MH_I2C_Read... [08:11:57]Read from MH i2c: F0 09 00 46 0A 00 CE D9 94 66 EC 7F 94 66 4E [08:11:57]GetLastDocTimeStamp 1721030977 [08:11:57]current date 1721031118 [08:11:57]FM_GetShiftState [08:11:57]SAM_PROTO_GetShiftState [08:11:57]wFMCommunicate request_size=4 [08:11:57]MH_SAM_APDU [08:11:57]CAPDU: 80 13 01 00 [08:11:57]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [08:11:57]Write i2c OK [08:11:57]MH_I2C_Read... [08:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:57]Read from MH i2c: E2 [08:11:57]MH_I2C_Read... [08:11:57]Read from MH i2c: E2 0E 00 [08:11:57]MH_I2C_Read... [08:11:57]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 C1 [08:11:57]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:11:57]wFMCommunicate OK [08:11:57]SAM_PROTO_GetShiftState done [08:11:57]FM_GetShiftState done [08:11:57]opened in 1721001862 [08:11:57]opened+sec_in_day 1721088262 [08:11:57]quantity*price = 4000 [08:11:57]sum+1 = 4001 [08:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 38 15.07.2024 08:11 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31597 ФПД: 72285958990013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081158&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31597&fm=72285958990013&tin=02508201610067®Number=0000000000098025&sum=4000 0 [08:11:58]StoreToDocumentArchive [08:11:58]shift 370 fd 31597 [08:11:58]save to /storage/0370/doc_00031597 [08:11:58]save last doc name /storage/0370/doc_00031597 to /storage/kkm_last_doc_name [08:11:58]save OK [08:11:58]Clear old archive folders... [08:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:11:58]tlvbuf is 012140B0 [08:11:58]SAM_PROTO_ClearQueue [08:11:58]wFMCommunicate request_size=4 [08:11:58]MH_SAM_APDU [08:11:58]CAPDU: 80 09 00 00 [08:11:58]Write to MH i2c: E2 08 00 54 0A 80 09 00 00 00 00 00 00 D0 [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:58]Read from MH i2c: E2 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [08:11:58]RAPDU: 90 00 [08:11:58]wFMCommunicate OK [08:11:58]SAM_PROTO_ClearQueue done [08:11:58]KKMCreateOFDPacket [08:11:58]OFDProtocolAddRootSTLVToBuf [08:11:58]FM_MakeSignedData [08:11:58]FM_MakeSignedData [08:11:58]SAM_PROTO_SignData [08:11:58]wFMCommunicate request_size=4 [08:11:58]MH_SAM_APDU [08:11:58]CAPDU: 80 0D 01 02 [08:11:58]Write to MH i2c: E2 08 00 55 0A 80 0D 01 02 00 00 00 00 D8 [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:58]Read from MH i2c: E2 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [08:11:58]RAPDU: 90 00 [08:11:58]wFMCommunicate OK [08:11:58]wFMCommunicate request_size=255 [08:11:58]MH_SAM_APDU [08:11:58]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 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 26 00 00 00 F4 03 04 00 CE D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [08:11:58]Write to MH i2c: E2 02 01 56 0A 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 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 26 00 00 00 F4 03 04 00 CE D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 0D [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:58]Read from MH i2c: E2 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [08:11:58]RAPDU: 90 00 [08:11:58]wFMCommunicate OK [08:11:58]wFMCommunicate request_size=37 [08:11:58]MH_SAM_APDU [08:11:58]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6D 7B 00 00 35 04 06 00 41 BE 62 E8 68 BD [08:11:58]Write to MH i2c: E2 28 00 57 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6D 7B 00 00 35 04 06 00 41 BE 62 E8 68 BD 00 00 90 [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:59]Read from MH i2c: E2 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 03 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [08:11:59]RAPDU: 90 00 [08:11:59]wFMCommunicate OK [08:11:59]wFMCommunicate request_size=4 [08:11:59]MH_SAM_APDU [08:11:59]CAPDU: 80 0D 03 02 [08:11:59]Write to MH i2c: E2 08 00 58 0A 80 0D 03 02 00 00 00 00 DD [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:59]Read from MH i2c: E2 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 0B 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 0B 00 58 0A 00 FB A0 55 C7 17 9E 89 61 90 00 34 [08:11:59]RAPDU: FB A0 55 C7 17 9E 89 61 90 00 [08:11:59]wFMCommunicate OK [08:11:59]SAM_PROTO_SignData done [08:11:59]FM_MakeSignedData done [08:11:59]CreateOFDProtocolMessage [08:11:59]wFMCommunicate request_size=4 [08:11:59]MH_SAM_APDU [08:11:59]CAPDU: 80 11 00 00 [08:11:59]Write to MH i2c: E2 08 00 59 0A 80 11 00 00 00 00 00 00 DD [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:59]Read from MH i2c: E2 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 17 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 17 00 59 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 38 [08:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:11:59]wFMCommunicate OK [08:11:59]CreateOFDProtocolMessage done [08:11:59]OFDSenderStorePacket 31597 [08:11:59]StoreOFDPacket docnum=31597 [08:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 E8 7B 22 01 0A A2 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 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 26 00 00 00 F4 03 04 00 CE D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6D 7B 00 00 35 04 06 00 41 BE 62 E8 68 BD FB A0 55 C7 17 9E 89 61 [08:11:59]CheckFolder [08:11:59]dirname=/storage/ofd_packets [08:11:59]CheckFolder done [08:11:59]ProducePacketName [08:11:59]name=ofd_packets/00031597 [08:11:59]NVStorageSaveData ofd_packets/00031597 [08:11:59]File name is /storage/ofd_packets/00031597 [08:11:59]Write 328 bytes [08:11:59]NVStorageSaveData done [08:11:59]OFDSenderStorePacket done [08:11:59]KKMCreateOFDPacket done [08:11:59]NVStorageSaveData kkm_last_timestamp [08:11:59]File name is /storage/kkm_last_timestamp [08:11:59]Write 4 bytes [08:11:59]NVStorageSaveData done [08:11:59]ExternCall_PrintAddStr [08:11:59]wPrintStart [08:11:59]Write to MH i2c: 01 00 00 5A 0A 64 [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 07 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [08:11:59]RasterBufferAndPrint [08:11:59]line Счет N : (3)214179 [08:11:59]line ИНН: 02508201610067 [08:11:59]line Контрольно-Кассовый Чек [08:11:59]line ПРОДАЖА [08:11:59]line Товар: 4700000310036 [08:11:59]line Вода Жалалабат 27 0,5л [08:11:59]line 1.000 * 40.00 [08:11:59]line = 40.00 [08:11:59]line НДС 12% НСП 1% [08:11:59]line > о реализуемом товаре [08:11:59]line ИТОГО: 40.00 [08:11:59]line НСП 1% : 0.35 [08:11:59]line НДС 12% : 4.25 [08:11:59]line Наличными: 40.00 [08:11:59]line Безнал.: 0.00 [08:11:59]line Место: АЗС № 140 "Партнер Нефть" [08:11:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:11:59]line СНО: Общий режим [08:11:59]line Чек 38 15.07.2024 08:11 [08:11:59]line Смена: 370 ФФД: 1.0 [08:11:59]line ЗНМ: 0300000189 [08:11:59]line РНМ: 0000000000098025 [08:11:59]line Версия ККМ: 001 [08:11:59]line ФМ: 0000000000965389 [08:11:59]line ФД: 31597 [08:11:59]line ФПД: 72285958990013 [08:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081158&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31597&fm=72285958990013&tin=02508201610067®Number=0000000000098025&sum=4000 [08:11:59]line 0 [08:11:59]OFD Sender: Processing packet 31597 [packets to send 5, broken 4] [08:11:59]ProducePacketName [08:11:59]name=ofd_packets/00031597 [08:11:59]OFD Sender: To server: pG, [08:11:59]CommunicateWithHost lk.salyk.kg:30040 [08:11:59]ConnectInit lk.salyk.kg [08:11:59]written 0, free lines is 4095 [08:11:59]Connected sock=7 [08:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 E8 7B 22 01 0A A2 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 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 26 00 00 00 F4 03 04 00 CE D9 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6D 7B 00 00 35 04 06 00 41 BE 62 E8 68 BD FB A0 55 C7 17 9E 89 61 [08:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 38 78 47 00 24 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6D 7B 00 00 F4 03 04 00 DC 85 94 66 B6 04 01 00 00 7B 52 AA 28 46 9B A1 2A [08:11:59]CommunicateWithHost err = 0 [08:11:59]CheckOFDResponse [08:11:59]1017 (14) - 77093643461234 [08:11:59]1041 (16) - 0000000000965389 [08:11:59]1040 (4) - 31597 [08:11:59]1012 (4) - 15.07.2024 02:13 [08:11:59]1206 (1) - 0 [08:11:59]OFD Sender: Remove packet 31597 [08:11:59]ProducePacketName [08:11:59]name=ofd_packets/00031597 [08:11:59]NVStorageDeleteData [08:11:59]Write to MH i2c: 01 00 00 82 0A 8C [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 07 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: 01 07 00 82 0A 00 00 00 00 00 0F 0D AF [08:11:59]RasterBufferAndPrint [08:11:59]line [08:11:59]line [08:11:59]line [08:11:59]line [08:11:59]line [08:11:59]written 0, free lines is 3349 [08:11:59]MH_Cut [08:11:59]Write to MH i2c: D1 01 00 89 0A 01 65 [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: D1 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: D1 01 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: D1 01 00 89 0A 00 64 [08:11:59]Write to MH i2c: 01 00 00 8A 0A 94 [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:12:00]OFD Sender: No OFD packet to send [08:12:00]*** Cut start [08:12:00]*** Partial cut [08:12:00]*** CUTSNS_PIN = 1 [08:12:00]*** CUTSNS_PIN = 0 [08:12:00]*** Brake cut motor [08:12:01]Read from MH i2c: 01 [08:12:01]MH_I2C_Read... [08:12:01]*** Stop cut motor [08:12:01]*** Cut end [08:12:01]Read from MH i2c: 01 07 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 FF 0F A9 [08:12:01]process_action close_receipt done [08:12:01]requested_data is exist [08:12:01]produce_requested_data [08:12:01]requested_item fm.sn is exist - process it [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 11 00 00 [08:12:01]Write to MH i2c: E2 08 00 8B 0A 80 11 00 00 00 00 00 00 0F [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 17 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 17 00 8B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6A [08:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:12:01]wFMCommunicate OK [08:12:01]requested_item fd.num is exist - process it [08:12:01]SAM_PROTO_GetFieldsCounters [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 13 00 00 [08:12:01]Write to MH i2c: E2 08 00 8C 0A 80 13 00 00 00 00 00 00 12 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 62 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 62 00 8C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [08:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:01]wFMCommunicate OK [08:12:01]SAM_PROTO_GetFieldsCounters done [08:12:01]requested_item shift.num is exist - process it [08:12:01]requested_item shift.opened is exist - process it [08:12:01]req_shift_opened [08:12:01]FM_GetShiftState [08:12:01]SAM_PROTO_GetShiftState [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 13 01 00 [08:12:01]Write to MH i2c: E2 08 00 8D 0A 80 13 01 00 00 00 00 00 14 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 8D 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 07 [08:12:01]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:12:01]wFMCommunicate OK [08:12:01]SAM_PROTO_GetShiftState done [08:12:01]FM_GetShiftState done [08:12:01]req_shift_opened done [08:12:01]requested_item shift.open_date is exist - process it [08:12:01]req_shift_open_date [08:12:01]req_shift_open_date done [08:12:01]produce_requested_data done [08:12:01]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31597,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:12:01]process_action_free close_receipt [08:12:01]json_value_free [08:12:01]json_value_free done [08:12:01]process_json_proto returns [08:12:01]Send response to host [08:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31597,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:12:01]free response buf [08:12:01]execute_script done [08:12:01]execute_script returns [08:12:01]free content buf [08:12:01]Sock 6.Close socket [08:12:01]Sock 6.Thread stoped [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:49]accept exits with 5 [08:15:49]New connection [08:15:49]New thread 3067559268 created [08:15:49]Thread 3067415908 joined [08:15:49]Waiting for new connection... [08:15:49] Sock 5.Parse request [08:15:49]Sock 5.Check first char [08:15:49]Sock 5.First char is OK [08:15:49]request: POST /json_proto HTTP/1.0 [08:15:49]Method: POST [08:15:49]URL: /json_proto [08:15:49]Method is POST - this is cgi request [08:15:49]url: /json_proto [08:15:49]query_string will be loaded in cgi processing [08:15:49]execute_cgi json_proto POST (null) [08:15:49]execute_cgi path=json_proto method=POST [08:15:49]POST find Content-Length [08:15:49]Host: 172.17.39.68:8080 [08:15:49]Content-Length: 655 [08:15:49]Content-Type: application/json [08:15:49] [08:15:49]POST finish read [08:15:49]Found Content-Length = 655 [08:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214180", "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" : 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" ] } } [08:15:49]execute_script... [08:15: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)214180", "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" : 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" ] } } [08:15:49]POST & json_proto [08:15:49]process_json_proto [08:15:49]json parsed OK: [08:15:49]protocol is kg_v1.0 [08:15:49]action value=close_receipt [08:15:49]process_action close_receipt [08:15:49]cmd_close_receipt [08:15:49]MH_GetDate [08:15:49]Write to MH i2c: F0 00 00 8E 0A 87 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: F0 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: F0 09 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: F0 09 00 8E 0A 00 B6 DA 94 66 EC 7F 94 66 7F [08:15:49]GetLastDocTimeStamp 1721031118 [08:15:49]current date 1721031350 [08:15:49]FM_GetShiftState [08:15:49]SAM_PROTO_GetShiftState [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 13 01 00 [08:15:49]Write to MH i2c: E2 08 00 8F 0A 80 13 01 00 00 00 00 00 16 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 0E 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 0E 00 8F 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 09 [08:15:49]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:15:49]wFMCommunicate OK [08:15:49]SAM_PROTO_GetShiftState done [08:15:49]FM_GetShiftState done [08:15:49]opened in 1721001862 [08:15:49]opened+sec_in_day 1721088262 [08:15:49]quantity*price = 8500 [08:15:49]sum+1 = 8501 [08:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 39 15.07.2024 08:15 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31598 ФПД: 93315098672890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081550&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31598&fm=93315098672890&tin=02508201610067®Number=0000000000098025&sum=8500 0 [08:15:50]StoreToDocumentArchive [08:15:50]shift 370 fd 31598 [08:15:50]save to /storage/0370/doc_00031598 [08:15:50]save last doc name /storage/0370/doc_00031598 to /storage/kkm_last_doc_name [08:15:50]save OK [08:15:50]Clear old archive folders... [08:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=294 [08:15:50]tlvbuf is 0125EE20 [08:15:50]SAM_PROTO_ClearQueue [08:15:50]wFMCommunicate request_size=4 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 09 00 00 [08:15:50]Write to MH i2c: E2 08 00 9C 0A 80 09 00 00 00 00 00 00 18 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 9C 0A 00 90 00 1A [08:15:50]RAPDU: 90 00 [08:15:50]wFMCommunicate OK [08:15:50]SAM_PROTO_ClearQueue done [08:15:50]KKMCreateOFDPacket [08:15:50]OFDProtocolAddRootSTLVToBuf [08:15:50]FM_MakeSignedData [08:15:50]FM_MakeSignedData [08:15:50]SAM_PROTO_SignData [08:15:50]wFMCommunicate request_size=4 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 0D 01 02 [08:15:50]Write to MH i2c: E2 08 00 9D 0A 80 0D 01 02 00 00 00 00 20 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:50]Read from MH i2c: E2 03 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [08:15:50]RAPDU: 90 00 [08:15:50]wFMCommunicate OK [08:15:50]wFMCommunicate request_size=255 [08:15:50]MH_SAM_APDU [08:15:50]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 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 27 00 00 00 F4 03 04 00 B6 DA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [08:15:50]Write to MH i2c: E2 02 01 9E 0A 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 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 27 00 00 00 F4 03 04 00 B6 DA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 28 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]OFD Sender: No OFD packet to send [08:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [08:15:50]RAPDU: 90 00 [08:15:50]wFMCommunicate OK [08:15:50]wFMCommunicate request_size=53 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6E 7B 00 00 35 04 06 00 54 DE 9D 4E FE FA [08:15:50]Write to MH i2c: E2 38 00 9F 0A 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6E 7B 00 00 35 04 06 00 54 DE 9D 4E FE FA 00 00 1D [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [08:15:50]RAPDU: 90 00 [08:15:50]wFMCommunicate OK [08:15:50]wFMCommunicate request_size=4 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 0D 03 02 [08:15:50]Write to MH i2c: E2 08 00 A0 0A 80 0D 03 02 00 00 00 00 25 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 0B 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 0B 00 A0 0A 00 BB F4 1E B0 D0 21 BA E3 90 00 31 [08:15:50]RAPDU: BB F4 1E B0 D0 21 BA E3 90 00 [08:15:50]wFMCommunicate OK [08:15:50]SAM_PROTO_SignData done [08:15:50]FM_MakeSignedData done [08:15:50]CreateOFDProtocolMessage [08:15:50]wFMCommunicate request_size=4 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 11 00 00 [08:15:50]Write to MH i2c: E2 08 00 A1 0A 80 11 00 00 00 00 00 00 25 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 17 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 17 00 A1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 80 [08:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:15:50]wFMCommunicate OK [08:15:50]CreateOFDProtocolMessage done [08:15:50]OFDSenderStorePacket 31598 [08:15:50]StoreOFDPacket docnum=31598 [08:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 AB DD 32 01 4D A2 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 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 27 00 00 00 F4 03 04 00 B6 DA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6E 7B 00 00 35 04 06 00 54 DE 9D 4E FE FA BB F4 1E B0 D0 21 BA E3 [08:15:50]CheckFolder [08:15:50]dirname=/storage/ofd_packets [08:15:50]CheckFolder done [08:15:50]ProducePacketName [08:15:50]name=ofd_packets/00031598 [08:15:50]NVStorageSaveData ofd_packets/00031598 [08:15:50]File name is /storage/ofd_packets/00031598 [08:15:50]Write 344 bytes [08:15:50]NVStorageSaveData done [08:15:50]OFDSenderStorePacket done [08:15:50]KKMCreateOFDPacket done [08:15:50]NVStorageSaveData kkm_last_timestamp [08:15:50]File name is /storage/kkm_last_timestamp [08:15:50]Write 4 bytes [08:15:50]NVStorageSaveData done [08:15:50]ExternCall_PrintAddStr [08:15:50]wPrintStart [08:15:50]Write to MH i2c: 01 00 00 A2 0A AC [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 A2 0A 00 00 00 00 00 FF 0F C1 [08:15:50]RasterBufferAndPrint [08:15:50]line Счет N : (3)214180 [08:15:50]line ИНН: 02508201610067 [08:15:50]line Контрольно-Кассовый Чек [08:15:50]line ПРОДАЖА [08:15:50]line Товар: 4600682557456 [08:15:50]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:15:50]line 1.000 * 85.00 [08:15:50]line = 85.00 [08:15:50]line НДС 12% НСП 1% [08:15:50]line > о реализуемом товаре [08:15:50]line ИТОГО: 85.00 [08:15:50]line НСП 1% : 0.75 [08:15:50]line НДС 12% : 9.03 [08:15:50]line Наличными: 85.00 [08:15:50]line Безнал.: 0.00 [08:15:50]line Место: АЗС № 140 "Партнер Нефть" [08:15:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:15:50]line СНО: Общий режим [08:15:51]line Чек 39 15.07.2024 08:15 [08:15:51]line Смена: 370 ФФД: 1.0 [08:15:51]line ЗНМ: 0300000189 [08:15:51]line РНМ: 0000000000098025 [08:15:51]line Версия ККМ: 001 [08:15:51]line ФМ: 0000000000965389 [08:15:51]line ФД: 31598 [08:15:51]line ФПД: 93315098672890 [08:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081550&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31598&fm=93315098672890&tin=02508201610067®Number=0000000000098025&sum=8500 [08:15:51]line 0 [08:15:51]OFD Sender: Processing packet 31598 [packets to send 5, broken 4] [08:15:51]ProducePacketName [08:15:51]name=ofd_packets/00031598 [08:15:51]OFD Sender: To server: pG, [08:15:51]CommunicateWithHost lk.salyk.kg:30040 [08:15:51]ConnectInit lk.salyk.kg [08:15:51]written 0, free lines is 4095 [08:15:51]Connected sock=7 [08:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 AB DD 32 01 4D A2 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 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 27 00 00 00 F4 03 04 00 B6 DA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6E 7B 00 00 35 04 06 00 54 DE 9D 4E FE FA BB F4 1E B0 D0 21 BA E3 [08:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 85 D2 47 00 19 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6E 7B 00 00 F4 03 04 00 C4 86 94 66 B6 04 01 00 00 49 DB A0 F2 62 A0 3D D4 [08:15:51]CommunicateWithHost err = 0 [08:15:51]CheckOFDResponse [08:15:51]1017 (14) - 77093643461234 [08:15:51]1041 (16) - 0000000000965389 [08:15:51]1040 (4) - 31598 [08:15:51]1012 (4) - 15.07.2024 02:17 [08:15:51]1206 (1) - 0 [08:15:51]OFD Sender: Remove packet 31598 [08:15:51]ProducePacketName [08:15:51]name=ofd_packets/00031598 [08:15:51]NVStorageDeleteData [08:15:51]Write to MH i2c: 01 00 00 CB 0A D5 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: 01 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: 01 07 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FD 0C E5 [08:15:51]RasterBufferAndPrint [08:15:51]line [08:15:51]line [08:15:51]line [08:15:51]line [08:15:51]line [08:15:51]written 0, free lines is 3330 [08:15:51]MH_Cut [08:15:51]Write to MH i2c: D1 01 00 D2 0A 01 AE [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: D1 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: D1 01 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: D1 01 00 D2 0A 00 AD [08:15:51]Write to MH i2c: 01 00 00 D3 0A DD [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]OFD Sender: No OFD packet to send [08:15:52]*** Cut start [08:15:52]*** Partial cut [08:15:52]*** CUTSNS_PIN = 1 [08:15:52]*** CUTSNS_PIN = 0 [08:15:52]*** Brake cut motor [08:15:52]Read from MH i2c: 01 [08:15:52]MH_I2C_Read... [08:15:52]*** Stop cut motor [08:15:52]*** Cut end [08:15:52]Read from MH i2c: 01 07 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [08:15:52]process_action close_receipt done [08:15:52]requested_data is exist [08:15:52]produce_requested_data [08:15:52]requested_item fm.sn is exist - process it [08:15:52]wFMCommunicate request_size=4 [08:15:52]MH_SAM_APDU [08:15:52]CAPDU: 80 11 00 00 [08:15:52]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [08:15:52]Write i2c OK [08:15:52]MH_I2C_Read... [08:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:52]Read from MH i2c: E2 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 17 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B3 [08:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:15:52]wFMCommunicate OK [08:15:52]requested_item fd.num is exist - process it [08:15:52]SAM_PROTO_GetFieldsCounters [08:15:52]wFMCommunicate request_size=4 [08:15:52]MH_SAM_APDU [08:15:52]CAPDU: 80 13 00 00 [08:15:52]Write to MH i2c: E2 08 00 D5 0A 80 13 00 00 00 00 00 00 5B [08:15:52]Write i2c OK [08:15:52]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 62 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 62 00 D5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_GetFieldsCounters done [08:15:53]requested_item shift.num is exist - process it [08:15:53]requested_item shift.opened is exist - process it [08:15:53]req_shift_opened [08:15:53]FM_GetShiftState [08:15:53]SAM_PROTO_GetShiftState [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 13 01 00 [08:15:53]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0E 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 50 [08:15:53]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_GetShiftState done [08:15:53]FM_GetShiftState done [08:15:53]req_shift_opened done [08:15:53]requested_item shift.open_date is exist - process it [08:15:53]req_shift_open_date [08:15:53]req_shift_open_date done [08:15:53]produce_requested_data done [08:15:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31598,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:15:53]process_action_free close_receipt [08:15:53]json_value_free [08:15:53]json_value_free done [08:15:53]process_json_proto returns [08:15:53]Send response to host [08:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31598,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:15:53]free response buf [08:15:53]execute_script done [08:15:53]execute_script returns [08:15:53]free content buf [08:15:53]Sock 5.Close socket [08:15:53]Sock 5.Thread stoped [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:11]OFD Sender: No OFD packet to send [08:19:15]accept exits with 6 [08:19:15]New connection [08:19:15]New thread 3067415908 created [08:19:15]Thread 3067559268 joined [08:19:15]Waiting for new connection... [08:19:15] Sock 6.Parse request [08:19:15]Sock 6.Check first char [08:19:15]Sock 6.First char is OK [08:19:15]request: POST /json_proto HTTP/1.0 [08:19:15]Method: POST [08:19:15]URL: /json_proto [08:19:15]Method is POST - this is cgi request [08:19:15]url: /json_proto [08:19:15]query_string will be loaded in cgi processing [08:19:15]execute_cgi json_proto POST (null) [08:19:15]execute_cgi path=json_proto method=POST [08:19:15]POST find Content-Length [08:19:15]Host: 172.17.39.68:8080 [08:19:15]Content-Length: 644 [08:19:15]Content-Type: application/json [08:19:15] [08:19:15]POST finish read [08:19:15]Found Content-Length = 644 [08:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214181", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:15]execute_script... [08:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214181", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:15]POST & json_proto [08:19:15]process_json_proto [08:19:15]json parsed OK: [08:19:15]protocol is kg_v1.0 [08:19:15]action value=close_receipt [08:19:15]process_action close_receipt [08:19:15]cmd_close_receipt [08:19:15]MH_GetDate [08:19:15]Write to MH i2c: F0 00 00 D7 0A D0 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: F0 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: F0 09 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: F0 09 00 D7 0A 00 84 DB 94 66 EC 7F 94 66 97 [08:19:15]GetLastDocTimeStamp 1721031350 [08:19:15]current date 1721031556 [08:19:15]FM_GetShiftState [08:19:15]SAM_PROTO_GetShiftState [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 13 01 00 [08:19:15]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 0E 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 52 [08:19:15]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:19:15]wFMCommunicate OK [08:19:15]SAM_PROTO_GetShiftState done [08:19:15]FM_GetShiftState done [08:19:15]opened in 1721001862 [08:19:15]opened+sec_in_day 1721088262 [08:19:15]quantity*price = 11500 [08:19:15]sum+1 = 11501 [08:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 40 15.07.2024 08:19 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31599 ФПД: 238707414309125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31599&fm=238707414309125&tin=02508201610067®Number=0000000000098025&sum=11500 0 [08:19:16]StoreToDocumentArchive [08:19:16]shift 370 fd 31599 [08:19:16]save to /storage/0370/doc_00031599 [08:19:16]save last doc name /storage/0370/doc_00031599 to /storage/kkm_last_doc_name [08:19:16]save OK [08:19:16]Clear old archive folders... [08:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:19:16]tlvbuf is 01213840 [08:19:16]SAM_PROTO_ClearQueue [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 09 00 00 [08:19:16]Write to MH i2c: E2 08 00 E5 0A 80 09 00 00 00 00 00 00 61 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]SAM_PROTO_ClearQueue done [08:19:16]KKMCreateOFDPacket [08:19:16]OFDProtocolAddRootSTLVToBuf [08:19:16]FM_MakeSignedData [08:19:16]FM_MakeSignedData [08:19:16]SAM_PROTO_SignData [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 0D 01 02 [08:19:16]Write to MH i2c: E2 08 00 E6 0A 80 0D 01 02 00 00 00 00 69 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]wFMCommunicate request_size=255 [08:19:16]MH_SAM_APDU [08:19:16]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 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 EC 2C 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 84 DB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [08:19:16]Write to MH i2c: E2 02 01 E7 0A 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 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 EC 2C 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 84 DB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 9C [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]wFMCommunicate request_size=39 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6F 7B 00 00 35 04 06 00 D9 1A 66 A2 99 05 [08:19:16]Write to MH i2c: E2 2A 00 E8 0A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6F 7B 00 00 35 04 06 00 D9 1A 66 A2 99 05 00 00 B2 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 0D 03 02 [08:19:16]Write to MH i2c: E2 08 00 E9 0A 80 0D 03 02 00 00 00 00 6E [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0B 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0B 00 E9 0A 00 4A 4F 90 3C 26 01 52 1C 90 00 69 [08:19:16]RAPDU: 4A 4F 90 3C 26 01 52 1C 90 00 [08:19:16]wFMCommunicate OK [08:19:16]SAM_PROTO_SignData done [08:19:16]FM_MakeSignedData done [08:19:16]CreateOFDProtocolMessage [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 11 00 00 [08:19:16]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C9 [08:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:19:16]wFMCommunicate OK [08:19:16]CreateOFDProtocolMessage done [08:19:16]OFDSenderStorePacket 31599 [08:19:16]StoreOFDPacket docnum=31599 [08:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 DA A4 24 01 ED 34 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 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 EC 2C 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 84 DB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6F 7B 00 00 35 04 06 00 D9 1A 66 A2 99 05 4A 4F 90 3C 26 01 52 1C [08:19:16]CheckFolder [08:19:16]dirname=/storage/ofd_packets [08:19:16]CheckFolder done [08:19:16]ProducePacketName [08:19:16]name=ofd_packets/00031599 [08:19:16]NVStorageSaveData ofd_packets/00031599 [08:19:16]File name is /storage/ofd_packets/00031599 [08:19:16]Write 330 bytes [08:19:16]NVStorageSaveData done [08:19:16]OFDSenderStorePacket done [08:19:16]KKMCreateOFDPacket done [08:19:16]NVStorageSaveData kkm_last_timestamp [08:19:16]File name is /storage/kkm_last_timestamp [08:19:16]Write 4 bytes [08:19:16]NVStorageSaveData done [08:19:16]ExternCall_PrintAddStr [08:19:16]wPrintStart [08:19:16]Write to MH i2c: 01 00 00 EB 0A F5 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 07 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 07 00 EB 0A 00 00 00 00 00 FF 0F 0A [08:19:16]RasterBufferAndPrint [08:19:16]line Счет N : (3)214181 [08:19:16]line ИНН: 02508201610067 [08:19:16]line Контрольно-Кассовый Чек [08:19:16]line ПРОДАЖА [08:19:16]line Товар: 2000036210013 [08:19:16]line Кофе Капучино (GABB TRADE) [08:19:16]line 1.000 * 115.00 [08:19:16]line = 115.00 [08:19:16]line НДС 12% НСП 1% [08:19:16]line > о реализуемом товаре [08:19:16]line ИТОГО: 115.00 [08:19:16]line НСП 1% : 1.02 [08:19:16]line НДС 12% : 12.21 [08:19:16]line Наличными: 115.00 [08:19:16]line Безнал.: 0.00 [08:19:16]line Место: АЗС № 140 "Партнер Нефть" [08:19:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:19:16]line СНО: Общий режим [08:19:16]line Чек 40 15.07.2024 08:19 [08:19:16]line Смена: 370 ФФД: 1.0 [08:19:17]line ЗНМ: 0300000189 [08:19:17]line РНМ: 0000000000098025 [08:19:17]line Версия ККМ: 001 [08:19:17]line ФМ: 0000000000965389 [08:19:17]line ФД: 31599 [08:19:17]line ФПД: 238707414309125 [08:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31599&fm=238707414309125&tin=02508201610067®Number=0000000000098025&sum=11500 [08:19:17]line 0 [08:19:17]OFD Sender: Processing packet 31599 [packets to send 5, broken 4] [08:19:17]ProducePacketName [08:19:17]name=ofd_packets/00031599 [08:19:17]OFD Sender: To server: pG, [08:19:17]CommunicateWithHost lk.salyk.kg:30040 [08:19:17]ConnectInit lk.salyk.kg [08:19:17]written 0, free lines is 4095 [08:19:17]Connected sock=7 [08:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 DA A4 24 01 ED 34 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 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 EC 2C 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 84 DB 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6F 7B 00 00 35 04 06 00 D9 1A 66 A2 99 05 4A 4F 90 3C 26 01 52 1C [08:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6B E1 47 00 05 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 6F 7B 00 00 F4 03 04 00 92 87 94 66 B6 04 01 00 00 5C A4 82 34 58 E4 02 A5 [08:19:17]CommunicateWithHost err = 0 [08:19:17]CheckOFDResponse [08:19:17]1017 (14) - 77093643461234 [08:19:17]1041 (16) - 0000000000965389 [08:19:17]1040 (4) - 31599 [08:19:17]1012 (4) - 15.07.2024 02:21 [08:19:17]1206 (1) - 0 [08:19:17]OFD Sender: Remove packet 31599 [08:19:17]ProducePacketName [08:19:17]name=ofd_packets/00031599 [08:19:17]NVStorageDeleteData [08:19:17]Write to MH i2c: 01 00 00 13 0B 1E [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 07 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 0E 0D 40 [08:19:17]RasterBufferAndPrint [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]written 0, free lines is 3348 [08:19:17]MH_Cut [08:19:17]Write to MH i2c: D1 01 00 1A 0B 01 F7 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 01 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 01 00 1A 0B 00 F6 [08:19:17]Write to MH i2c: 01 00 00 1B 0B 26 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:18]OFD Sender: No OFD packet to send [08:19:18]*** Cut start [08:19:18]*** Partial cut [08:19:18]*** CUTSNS_PIN = 1 [08:19:18]*** CUTSNS_PIN = 0 [08:19:18]*** Brake cut motor [08:19:19]Read from MH i2c: 01 [08:19:19]MH_I2C_Read... [08:19:19]*** Stop cut motor [08:19:19]*** Cut end [08:19:19]Read from MH i2c: 01 07 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [08:19:19]process_action close_receipt done [08:19:19]requested_data is exist [08:19:19]produce_requested_data [08:19:19]requested_item fm.sn is exist - process it [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 11 00 00 [08:19:19]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 17 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FC [08:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:19:19]wFMCommunicate OK [08:19:19]requested_item fd.num is exist - process it [08:19:19]SAM_PROTO_GetFieldsCounters [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 13 00 00 [08:19:19]Write to MH i2c: E2 08 00 1D 0B 80 13 00 00 00 00 00 00 A4 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 62 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 62 00 1D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [08:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 6F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:19]wFMCommunicate OK [08:19:19]SAM_PROTO_GetFieldsCounters done [08:19:19]requested_item shift.num is exist - process it [08:19:19]requested_item shift.opened is exist - process it [08:19:19]req_shift_opened [08:19:19]FM_GetShiftState [08:19:19]SAM_PROTO_GetShiftState [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 13 01 00 [08:19:19]Write to MH i2c: E2 08 00 1E 0B 80 13 01 00 00 00 00 00 A6 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 0E 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 0E 00 1E 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 99 [08:19:19]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:19:19]wFMCommunicate OK [08:19:19]SAM_PROTO_GetShiftState done [08:19:19]FM_GetShiftState done [08:19:19]req_shift_opened done [08:19:19]requested_item shift.open_date is exist - process it [08:19:19]req_shift_open_date [08:19:19]req_shift_open_date done [08:19:19]produce_requested_data done [08:19:19]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31599,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:19:19]process_action_free close_receipt [08:19:19]json_value_free [08:19:19]json_value_free done [08:19:19]process_json_proto returns [08:19:19]Send response to host [08:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31599,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:19:19]free response buf [08:19:19]execute_script done [08:19:19]execute_script returns [08:19:19]free content buf [08:19:19]Sock 6.Close socket [08:19:19]Sock 6.Thread stoped [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:23]accept exits with 5 [08:22:23]New connection [08:22:23]New thread 3067559268 created [08:22:23]Thread 3067415908 joined [08:22:23]Waiting for new connection... [08:22:23] Sock 5.Parse request [08:22:23]Sock 5.Check first char [08:22:23]Sock 5.First char is OK [08:22:23]request: POST /json_proto HTTP/1.0 [08:22:23]Method: POST [08:22:23]URL: /json_proto [08:22:23]Method is POST - this is cgi request [08:22:23]url: /json_proto [08:22:23]query_string will be loaded in cgi processing [08:22:23]execute_cgi json_proto POST (null) [08:22:23]execute_cgi path=json_proto method=POST [08:22:23]POST find Content-Length [08:22:23]Host: 172.17.39.68:8080 [08:22:23]Content-Length: 644 [08:22:23]Content-Type: application/json [08:22:23] [08:22:23]POST finish read [08:22:23]Found Content-Length = 644 [08:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214182", "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:22:23]execute_script... [08:22:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214182", "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:22:23]POST & json_proto [08:22:23]process_json_proto [08:22:23]json parsed OK: [08:22:23]protocol is kg_v1.0 [08:22:23]action value=close_receipt [08:22:23]process_action close_receipt [08:22:23]cmd_close_receipt [08:22:23]MH_GetDate [08:22:23]Write to MH i2c: F0 00 00 1F 0B 19 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 09 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 09 00 1F 0B 00 40 DC 94 66 EC 7F 94 66 9D [08:22:23]GetLastDocTimeStamp 1721031556 [08:22:23]current date 1721031744 [08:22:23]FM_GetShiftState [08:22:23]SAM_PROTO_GetShiftState [08:22:23]wFMCommunicate request_size=4 [08:22:23]MH_SAM_APDU [08:22:23]CAPDU: 80 13 01 00 [08:22:23]Write to MH i2c: E2 08 00 20 0B 80 13 01 00 00 00 00 00 A8 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:23]Read from MH i2c: E2 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 20 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 9B [08:22:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:22:23]wFMCommunicate OK [08:22:23]SAM_PROTO_GetShiftState done [08:22:23]FM_GetShiftState done [08:22:23]opened in 1721001862 [08:22:23]opened+sec_in_day 1721088262 [08:22:23]quantity*price = 23000 [08:22:23]sum+1 = 23001 [08:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 41 15.07.2024 08:22 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31600 ФПД: 230859950500222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31600&fm=230859950500222&tin=02508201610067®Number=0000000000098025&sum=23000 0 [08:22:24]StoreToDocumentArchive [08:22:24]shift 370 fd 31600 [08:22:24]save to /storage/0370/doc_00031600 [08:22:24]save last doc name /storage/0370/doc_00031600 to /storage/kkm_last_doc_name [08:22:24]save OK [08:22:24]Clear old archive folders... [08:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:22:24]tlvbuf is 0122FA10 [08:22:24]SAM_PROTO_ClearQueue [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 09 00 00 [08:22:24]Write to MH i2c: E2 08 00 2D 0B 80 09 00 00 00 00 00 00 AA [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]SAM_PROTO_ClearQueue done [08:22:24]KKMCreateOFDPacket [08:22:24]OFDProtocolAddRootSTLVToBuf [08:22:24]FM_MakeSignedData [08:22:24]FM_MakeSignedData [08:22:24]SAM_PROTO_SignData [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 01 02 [08:22:24]Write to MH i2c: E2 08 00 2E 0B 80 0D 01 02 00 00 00 00 B2 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]wFMCommunicate request_size=255 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 02 02 FA 03 00 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 29 00 00 00 F4 03 04 00 40 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [08:22:24]Write to MH i2c: E2 02 01 2F 0B 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 29 00 00 00 F4 03 04 00 40 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 09 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]wFMCommunicate request_size=39 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 70 7B 00 00 35 04 06 00 D1 F7 45 57 A9 7E [08:22:24]Write to MH i2c: E2 2A 00 30 0B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 70 7B 00 00 35 04 06 00 D1 F7 45 57 A9 7E 00 00 EE [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 03 02 [08:22:24]Write to MH i2c: E2 08 00 31 0B 80 0D 03 02 00 00 00 00 B7 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0B 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0B 00 31 0B 00 F3 A0 17 BF 3E 33 CC 89 90 00 E7 [08:22:25]RAPDU: F3 A0 17 BF 3E 33 CC 89 90 00 [08:22:25]wFMCommunicate OK [08:22:25]SAM_PROTO_SignData done [08:22:25]FM_MakeSignedData done [08:22:25]CreateOFDProtocolMessage [08:22:25]wFMCommunicate request_size=4 [08:22:25]MH_SAM_APDU [08:22:25]CAPDU: 80 11 00 00 [08:22:25]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 17 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 12 [08:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:22:25]wFMCommunicate OK [08:22:25]CreateOFDProtocolMessage done [08:22:25]OFDSenderStorePacket 31600 [08:22:25]StoreOFDPacket docnum=31600 [08:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 30 99 24 01 AF 02 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 29 00 00 00 F4 03 04 00 40 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 70 7B 00 00 35 04 06 00 D1 F7 45 57 A9 7E F3 A0 17 BF 3E 33 CC 89 [08:22:25]CheckFolder [08:22:25]dirname=/storage/ofd_packets [08:22:25]CheckFolder done [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00031600 [08:22:25]NVStorageSaveData ofd_packets/00031600 [08:22:25]File name is /storage/ofd_packets/00031600 [08:22:25]Write 330 bytes [08:22:25]NVStorageSaveData done [08:22:25]OFDSenderStorePacket done [08:22:25]KKMCreateOFDPacket done [08:22:25]NVStorageSaveData kkm_last_timestamp [08:22:25]File name is /storage/kkm_last_timestamp [08:22:25]Write 4 bytes [08:22:25]NVStorageSaveData done [08:22:25]ExternCall_PrintAddStr [08:22:25]wPrintStart [08:22:25]Write to MH i2c: 01 00 00 33 0B 3E [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 FF 0F 53 [08:22:25]RasterBufferAndPrint [08:22:25]line Счет N : (3)214182 [08:22:25]line ИНН: 02508201610067 [08:22:25]line Контрольно-Кассовый Чек [08:22:25]line ПРОДАЖА [08:22:25]line Товар: 2000036210013 [08:22:25]line Кофе Капучино (GABB TRADE) [08:22:25]line 2.000 * 115.00 [08:22:25]line = 230.00 [08:22:25]line НДС 12% НСП 1% [08:22:25]line > о реализуемом товаре [08:22:25]line ИТОГО: 230.00 [08:22:25]line НСП 1% : 2.03 [08:22:25]line НДС 12% : 24.42 [08:22:25]line Наличными: 230.00 [08:22:25]line Безнал.: 0.00 [08:22:25]line Место: АЗС № 140 "Партнер Нефть" [08:22:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:22:25]line СНО: Общий режим [08:22:25]line Чек 41 15.07.2024 08:22 [08:22:25]line Смена: 370 ФФД: 1.0 [08:22:25]line ЗНМ: 0300000189 [08:22:25]line РНМ: 0000000000098025 [08:22:25]line Версия ККМ: 001 [08:22:25]line ФМ: 0000000000965389 [08:22:25]line ФД: 31600 [08:22:25]line ФПД: 230859950500222 [08:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31600&fm=230859950500222&tin=02508201610067®Number=0000000000098025&sum=23000 [08:22:25]line 0 [08:22:25]OFD Sender: Processing packet 31600 [packets to send 5, broken 4] [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00031600 [08:22:25]OFD Sender: To server: pG, [08:22:25]CommunicateWithHost lk.salyk.kg:30040 [08:22:25]ConnectInit lk.salyk.kg [08:22:25]written 0, free lines is 4095 [08:22:25]Connected sock=7 [08:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 30 99 24 01 AF 02 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 29 00 00 00 F4 03 04 00 40 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 70 7B 00 00 35 04 06 00 D1 F7 45 57 A9 7E F3 A0 17 BF 3E 33 CC 89 [08:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 72 98 47 00 57 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 70 7B 00 00 F4 03 04 00 4E 88 94 66 B6 04 01 00 00 F8 35 1D 18 FC 65 B3 F8 [08:22:25]CommunicateWithHost err = 0 [08:22:25]CheckOFDResponse [08:22:25]1017 (14) - 77093643461234 [08:22:25]1041 (16) - 0000000000965389 [08:22:25]1040 (4) - 31600 [08:22:25]1012 (4) - 15.07.2024 02:24 [08:22:25]1206 (1) - 0 [08:22:25]OFD Sender: Remove packet 31600 [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00031600 [08:22:25]NVStorageDeleteData [08:22:25]Write to MH i2c: 01 00 00 5B 0B 66 [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 27 0D A1 [08:22:25]RasterBufferAndPrint [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]written 0, free lines is 3373 [08:22:25]MH_Cut [08:22:25]Write to MH i2c: D1 01 00 62 0B 01 3F [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 01 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 01 00 62 0B 00 3E [08:22:25]Write to MH i2c: 01 00 00 63 0B 6E [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:26]OFD Sender: No OFD packet to send [08:22:26]*** Cut start [08:22:26]*** Partial cut [08:22:26]*** CUTSNS_PIN = 1 [08:22:26]*** CUTSNS_PIN = 0 [08:22:26]*** Brake cut motor [08:22:27]Read from MH i2c: 01 [08:22:27]MH_I2C_Read... [08:22:27]*** Stop cut motor [08:22:27]*** Cut end [08:22:27]Read from MH i2c: 01 07 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [08:22:27]process_action close_receipt done [08:22:27]requested_data is exist [08:22:27]produce_requested_data [08:22:27]requested_item fm.sn is exist - process it [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 11 00 00 [08:22:27]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 44 [08:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:22:27]wFMCommunicate OK [08:22:27]requested_item fd.num is exist - process it [08:22:27]SAM_PROTO_GetFieldsCounters [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 13 00 00 [08:22:27]Write to MH i2c: E2 08 00 65 0B 80 13 00 00 00 00 00 00 EC [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 62 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 62 00 65 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 70 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 70 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:27]wFMCommunicate OK [08:22:27]SAM_PROTO_GetFieldsCounters done [08:22:27]requested_item shift.num is exist - process it [08:22:27]requested_item shift.opened is exist - process it [08:22:27]req_shift_opened [08:22:27]FM_GetShiftState [08:22:27]SAM_PROTO_GetShiftState [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 13 01 00 [08:22:27]Write to MH i2c: E2 08 00 66 0B 80 13 01 00 00 00 00 00 EE [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0E 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0E 00 66 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E1 [08:22:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:22:27]wFMCommunicate OK [08:22:27]SAM_PROTO_GetShiftState done [08:22:27]FM_GetShiftState done [08:22:27]req_shift_opened done [08:22:27]requested_item shift.open_date is exist - process it [08:22:27]req_shift_open_date [08:22:27]req_shift_open_date done [08:22:27]produce_requested_data done [08:22:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31600,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:22:27]process_action_free close_receipt [08:22:27]json_value_free [08:22:27]json_value_free done [08:22:27]process_json_proto returns [08:22:27]Send response to host [08:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31600,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:22:27]free response buf [08:22:27]execute_script done [08:22:27]execute_script returns [08:22:27]free content buf [08:22:27]Sock 5.Close socket [08:22:27]Sock 5.Thread stoped [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:48]accept exits with 6 [08:24:48]New connection [08:24:48]New thread 3067415908 created [08:24:48]Thread 3067559268 joined [08:24:48]Waiting for new connection... [08:24:48] Sock 6.Parse request [08:24:48]Sock 6.Check first char [08:24:48]Sock 6.First char is OK [08:24:48]request: POST /json_proto HTTP/1.0 [08:24:48]Method: POST [08:24:48]URL: /json_proto [08:24:48]Method is POST - this is cgi request [08:24:48]url: /json_proto [08:24:48]query_string will be loaded in cgi processing [08:24:48]execute_cgi json_proto POST (null) [08:24:48]execute_cgi path=json_proto method=POST [08:24:48]POST find Content-Length [08:24:48]Host: 172.17.39.68:8080 [08:24:48]Content-Length: 888 [08:24:48]Content-Type: application/json [08:24:48] [08:24:48]POST finish read [08:24:48]Found Content-Length = 888 [08:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214183", "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 }]} ,{ "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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:48]execute_script... [08:24: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)214183", "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 }]} ,{ "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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:48]POST & json_proto [08:24:48]process_json_proto [08:24:48]json parsed OK: [08:24:48]protocol is kg_v1.0 [08:24:48]action value=close_receipt [08:24:48]process_action close_receipt [08:24:48]cmd_close_receipt [08:24:48]MH_GetDate [08:24:48]Write to MH i2c: F0 00 00 67 0B 61 [08:24:48]Write i2c OK [08:24:48]MH_I2C_Read... [08:24:48]Read from MH i2c: F0 [08:24:48]MH_I2C_Read... [08:24:48]Read from MH i2c: F0 09 00 [08:24:48]MH_I2C_Read... [08:24:48]Read from MH i2c: F0 09 00 67 0B 00 D1 DC 94 66 EC 7F 94 66 76 [08:24:48]GetLastDocTimeStamp 1721031744 [08:24:48]current date 1721031889 [08:24:48]FM_GetShiftState [08:24:48]SAM_PROTO_GetShiftState [08:24:48]wFMCommunicate request_size=4 [08:24:48]MH_SAM_APDU [08:24:48]CAPDU: 80 13 01 00 [08:24:48]Write to MH i2c: E2 08 00 68 0B 80 13 01 00 00 00 00 00 F0 [08:24:48]Write i2c OK [08:24:48]MH_I2C_Read... [08:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:48]Read from MH i2c: E2 [08:24:48]MH_I2C_Read... [08:24:48]Read from MH i2c: E2 0E 00 [08:24:48]MH_I2C_Read... [08:24:48]Read from MH i2c: E2 0E 00 68 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E3 [08:24:48]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:24:48]wFMCommunicate OK [08:24:48]SAM_PROTO_GetShiftState done [08:24:48]FM_GetShiftState done [08:24:48]opened in 1721001862 [08:24:48]opened+sec_in_day 1721088262 [08:24:48]quantity*price = 11500 [08:24:48]sum+1 = 11501 [08:24:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 42 15.07.2024 08:24 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31601 ФПД: 243383252008013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31601&fm=243383252008013&tin=02508201610067®Number=0000000000098025&sum=24500 0 [08:24:49]StoreToDocumentArchive [08:24:49]shift 370 fd 31601 [08:24:49]save to /storage/0370/doc_00031601 [08:24:49]save last doc name /storage/0370/doc_00031601 to /storage/kkm_last_doc_name [08:24:49]save OK [08:24:49]Clear old archive folders... [08:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=386 [08:24:49]tlvbuf is 01267440 [08:24:49]SAM_PROTO_ClearQueue [08:24:49]wFMCommunicate request_size=4 [08:24:49]MH_SAM_APDU [08:24:49]CAPDU: 80 09 00 00 [08:24:49]Write to MH i2c: E2 08 00 75 0B 80 09 00 00 00 00 00 00 F2 [08:24:49]Write i2c OK [08:24:49]MH_I2C_Read... [08:24:49]Read from MH i2c: E2 [08:24:49]MH_I2C_Read... [08:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:49]Read from MH i2c: E2 03 00 [08:24:49]MH_I2C_Read... [08:24:49]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [08:24:49]RAPDU: 90 00 [08:24:49]wFMCommunicate OK [08:24:49]SAM_PROTO_ClearQueue done [08:24:49]KKMCreateOFDPacket [08:24:49]OFDProtocolAddRootSTLVToBuf [08:24:49]FM_MakeSignedData [08:24:49]FM_MakeSignedData [08:24:49]SAM_PROTO_SignData [08:24:49]wFMCommunicate request_size=4 [08:24:49]MH_SAM_APDU [08:24:49]CAPDU: 80 0D 01 02 [08:24:49]Write to MH i2c: E2 08 00 76 0B 80 0D 01 02 00 00 00 00 FA [08:24:49]Write i2c OK [08:24:49]MH_I2C_Read... [08:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:49]Read from MH i2c: E2 [08:24:49]MH_I2C_Read... [08:24:49]Read from MH i2c: E2 03 00 [08:24:49]MH_I2C_Read... [08:24:49]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [08:24:49]RAPDU: 90 00 [08:24:49]wFMCommunicate OK [08:24:49]wFMCommunicate request_size=255 [08:24:49]MH_SAM_APDU [08:24:49]CAPDU: 80 0D 02 02 FA 03 00 82 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [08:24:49]Write to MH i2c: E2 02 01 77 0B 80 0D 02 02 FA 00 03 00 82 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 29 [08:24:49]Write i2c OK [08:24:49]MH_I2C_Read... [08:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:50]Read from MH i2c: E2 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 03 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [08:24:50]RAPDU: 90 00 [08:24:50]wFMCommunicate OK [08:24:50]wFMCommunicate request_size=145 [08:24:50]MH_SAM_APDU [08:24:50]CAPDU: 80 0D 02 02 8C 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D1 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 71 7B 00 00 35 04 06 00 DD 5B 14 47 BC 4D [08:24:50]Write to MH i2c: E2 94 00 78 0B 80 0D 02 02 8C 00 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D1 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 71 7B 00 00 35 04 06 00 DD 5B 14 47 BC 4D 00 00 3A [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:50]Read from MH i2c: E2 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 03 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [08:24:50]RAPDU: 90 00 [08:24:50]wFMCommunicate OK [08:24:50]wFMCommunicate request_size=4 [08:24:50]MH_SAM_APDU [08:24:50]CAPDU: 80 0D 03 02 [08:24:50]Write to MH i2c: E2 08 00 79 0B 80 0D 03 02 00 00 00 00 FF [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:50]Read from MH i2c: E2 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 0B 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 0B 00 79 0B 00 24 E6 87 6F BD DA 75 BA 90 00 C6 [08:24:50]RAPDU: 24 E6 87 6F BD DA 75 BA 90 00 [08:24:50]wFMCommunicate OK [08:24:50]SAM_PROTO_SignData done [08:24:50]FM_MakeSignedData done [08:24:50]CreateOFDProtocolMessage [08:24:50]wFMCommunicate request_size=4 [08:24:50]MH_SAM_APDU [08:24:50]CAPDU: 80 11 00 00 [08:24:50]Write to MH i2c: E2 08 00 7A 0B 80 11 00 00 00 00 00 00 FF [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:50]Read from MH i2c: E2 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 17 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 17 00 7A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5A [08:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:24:50]wFMCommunicate OK [08:24:50]CreateOFDProtocolMessage done [08:24:50]OFDSenderStorePacket 31601 [08:24:50]StoreOFDPacket docnum=31601 [08:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 96 01 00 00 3C 26 8E 01 1D 1B 5A 03 01 00 03 00 82 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D1 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 71 7B 00 00 35 04 06 00 DD 5B 14 47 BC 4D 24 E6 87 6F BD DA 75 BA [08:24:50]CheckFolder [08:24:50]dirname=/storage/ofd_packets [08:24:50]CheckFolder done [08:24:50]ProducePacketName [08:24:50]name=ofd_packets/00031601 [08:24:50]NVStorageSaveData ofd_packets/00031601 [08:24:50]File name is /storage/ofd_packets/00031601 [08:24:50]Write 436 bytes [08:24:50]NVStorageSaveData done [08:24:50]OFDSenderStorePacket done [08:24:50]KKMCreateOFDPacket done [08:24:50]NVStorageSaveData kkm_last_timestamp [08:24:50]File name is /storage/kkm_last_timestamp [08:24:50]Write 4 bytes [08:24:50]NVStorageSaveData done [08:24:50]ExternCall_PrintAddStr [08:24:50]wPrintStart [08:24:50]Write to MH i2c: 01 00 00 7B 0B 86 [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: 01 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: 01 07 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [08:24:50]RasterBufferAndPrint [08:24:50]line Счет N : (3)214183 [08:24:50]line ИНН: 02508201610067 [08:24:50]line Контрольно-Кассовый Чек [08:24:50]line ПРОДАЖА [08:24:50]line Товар: 2000036240010 [08:24:50]line Кофе Латте (GABB TRADE) [08:24:50]line 1.000 * 115.00 [08:24:50]line = 115.00 [08:24:50]line НДС 12% НСП 1% [08:24:50]line > о реализуемом товаре [08:24:50]line Товар: 2000036220012 [08:24:50]line Кофе Капучино XL(GABB TRADE) [08:24:50]line 1.000 * 130.00 [08:24:50]line = 130.00 [08:24:50]line НДС 12% НСП 1% [08:24:50]line > о реализуемом товаре [08:24:50]line ИТОГО: 245.00 [08:24:50]line НСП 1% : 2.17 [08:24:50]line НДС 12% : 26.01 [08:24:50]line Наличными: 245.00 [08:24:50]line Безнал.: 0.00 [08:24:50]line Место: АЗС № 140 "Партнер Нефть" [08:24:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:24:50]line СНО: Общий режим [08:24:50]line Чек 42 15.07.2024 08:24 [08:24:50]line Смена: 370 ФФД: 1.0 [08:24:50]line ЗНМ: 0300000189 [08:24:50]line РНМ: 0000000000098025 [08:24:50]line Версия ККМ: 001 [08:24:50]line ФМ: 0000000000965389 [08:24:50]line ФД: 31601 [08:24:50]line ФПД: 243383252008013 [08:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31601&fm=243383252008013&tin=02508201610067®Number=0000000000098025&sum=24500 [08:24:50]line 0 [08:24:50]OFD Sender: Processing packet 31601 [packets to send 5, broken 4] [08:24:50]ProducePacketName [08:24:50]name=ofd_packets/00031601 [08:24:50]OFD Sender: To server: pG, [08:24:50]CommunicateWithHost lk.salyk.kg:30040 [08:24:50]ConnectInit lk.salyk.kg [08:24:50]written 0, free lines is 4095 [08:24:50]Connected sock=7 [08:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 96 01 00 00 3C 26 8E 01 1D 1B 5A 03 01 00 03 00 82 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D1 DC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 71 7B 00 00 35 04 06 00 DD 5B 14 47 BC 4D 24 E6 87 6F BD DA 75 BA [08:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8C 81 47 00 24 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 71 7B 00 00 F4 03 04 00 E0 88 94 66 B6 04 01 00 00 40 21 C1 D2 F9 7B 6B D9 [08:24:51]CommunicateWithHost err = 0 [08:24:51]CheckOFDResponse [08:24:51]1017 (14) - 77093643461234 [08:24:51]1041 (16) - 0000000000965389 [08:24:51]1040 (4) - 31601 [08:24:51]1012 (4) - 15.07.2024 02:26 [08:24:51]1206 (1) - 0 [08:24:51]OFD Sender: Remove packet 31601 [08:24:51]ProducePacketName [08:24:51]name=ofd_packets/00031601 [08:24:51]NVStorageDeleteData [08:24:51]Write to MH i2c: 01 00 00 AA 0B B5 [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 07 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 AE 0C 76 [08:24:51]RasterBufferAndPrint [08:24:51]line [08:24:51]line [08:24:51]line [08:24:51]line [08:24:51]line [08:24:51]written 0, free lines is 3252 [08:24:51]MH_Cut [08:24:51]Write to MH i2c: D1 01 00 B1 0B 01 8E [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: D1 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: D1 01 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: D1 01 00 B1 0B 00 8D [08:24:51]Write to MH i2c: 01 00 00 B2 0B BD [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]OFD Sender: No OFD packet to send [08:24:51]*** Cut start [08:24:51]*** Partial cut [08:24:51]*** CUTSNS_PIN = 1 [08:24:52]*** CUTSNS_PIN = 0 [08:24:52]*** Brake cut motor [08:24:52]Read from MH i2c: 01 [08:24:52]MH_I2C_Read... [08:24:52]*** Stop cut motor [08:24:52]*** Cut end [08:24:52]Read from MH i2c: 01 07 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 FF 0F D2 [08:24:52]process_action close_receipt done [08:24:52]requested_data is exist [08:24:52]produce_requested_data [08:24:52]requested_item fm.sn is exist - process it [08:24:52]wFMCommunicate request_size=4 [08:24:52]MH_SAM_APDU [08:24:52]CAPDU: 80 11 00 00 [08:24:52]Write to MH i2c: E2 08 00 B3 0B 80 11 00 00 00 00 00 00 38 [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:52]Read from MH i2c: E2 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 17 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 17 00 B3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 93 [08:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:24:52]wFMCommunicate OK [08:24:52]requested_item fd.num is exist - process it [08:24:52]SAM_PROTO_GetFieldsCounters [08:24:52]wFMCommunicate request_size=4 [08:24:52]MH_SAM_APDU [08:24:52]CAPDU: 80 13 00 00 [08:24:52]Write to MH i2c: E2 08 00 B4 0B 80 13 00 00 00 00 00 00 3B [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:52]Read from MH i2c: E2 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 62 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 62 00 B4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 71 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [08:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 71 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:52]wFMCommunicate OK [08:24:52]SAM_PROTO_GetFieldsCounters done [08:24:52]requested_item shift.num is exist - process it [08:24:52]requested_item shift.opened is exist - process it [08:24:52]req_shift_opened [08:24:52]FM_GetShiftState [08:24:52]SAM_PROTO_GetShiftState [08:24:52]wFMCommunicate request_size=4 [08:24:52]MH_SAM_APDU [08:24:52]CAPDU: 80 13 01 00 [08:24:52]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:52]Read from MH i2c: E2 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 0E 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 30 [08:24:52]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:24:52]wFMCommunicate OK [08:24:52]SAM_PROTO_GetShiftState done [08:24:52]FM_GetShiftState done [08:24:52]req_shift_opened done [08:24:52]requested_item shift.open_date is exist - process it [08:24:52]req_shift_open_date [08:24:52]req_shift_open_date done [08:24:52]produce_requested_data done [08:24:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31601,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:24:52]process_action_free close_receipt [08:24:52]json_value_free [08:24:52]json_value_free done [08:24:52]process_json_proto returns [08:24:52]Send response to host [08:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31601,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:24:52]free response buf [08:24:52]execute_script done [08:24:52]execute_script returns [08:24:52]free content buf [08:24:52]Sock 6.Close socket [08:24:52]Sock 6.Thread stoped [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:23]accept exits with 5 [08:52:23]New connection [08:52:23]New thread 3067559268 created [08:52:23]Thread 3067415908 joined [08:52:23]Waiting for new connection... [08:52:23] Sock 5.Parse request [08:52:23]Sock 5.Check first char [08:52:23]Sock 5.First char is OK [08:52:23]request: POST /json_proto HTTP/1.0 [08:52:23]Method: POST [08:52:23]URL: /json_proto [08:52:23]Method is POST - this is cgi request [08:52:23]url: /json_proto [08:52:23]query_string will be loaded in cgi processing [08:52:23]execute_cgi json_proto POST (null) [08:52:23]execute_cgi path=json_proto method=POST [08:52:23]POST find Content-Length [08:52:23]Host: 172.17.39.68:8080 [08:52:23]Content-Length: 1049 [08:52:23]Content-Type: application/json [08:52:23] [08:52:23]POST finish read [08:52:23]Found Content-Length = 1049 [08:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214184", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\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" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:23]execute_script... [08:52: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)214184", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\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" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:23]POST & json_proto [08:52:23]process_json_proto [08:52:23]json parsed OK: [08:52:23]protocol is kg_v1.0 [08:52:23]action value=close_receipt [08:52:23]process_action close_receipt [08:52:23]cmd_close_receipt [08:52:23]MH_GetDate [08:52:23]Write to MH i2c: F0 00 00 B6 0B B0 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: F0 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: F0 09 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: F0 09 00 B6 0B 00 49 E3 94 66 EC 7F 94 66 44 [08:52:23]GetLastDocTimeStamp 1721031889 [08:52:23]current date 1721033545 [08:52:23]FM_GetShiftState [08:52:23]SAM_PROTO_GetShiftState [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 01 00 [08:52:23]Write to MH i2c: E2 08 00 B7 0B 80 13 01 00 00 00 00 00 3F [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 B7 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 32 [08:52:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetShiftState done [08:52:23]FM_GetShiftState done [08:52:23]opened in 1721001862 [08:52:23]opened+sec_in_day 1721088262 [08:52:23]quantity*price = 12500 [08:52:23]sum+1 = 12501 [08:52:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630056952563 Печ Юбилейное Торжество молочное 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.53 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 43 15.07.2024 08:52 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31602 ФПД: 152696791692524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085225&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31602&fm=152696791692524&tin=02508201610067®Number=0000000000098025&sum=18400 0 [08:52:24]StoreToDocumentArchive [08:52:24]shift 370 fd 31602 [08:52:24]save to /storage/0370/doc_00031602 [08:52:24]save last doc name /storage/0370/doc_00031602 to /storage/kkm_last_doc_name [08:52:24]save OK [08:52:24]Clear old archive folders... [08:52:24]ProcessDocumentItem done err = 0, tmpTLVsize=433 [08:52:24]tlvbuf is 0122FDF0 [08:52:24]SAM_PROTO_ClearQueue [08:52:24]wFMCommunicate request_size=4 [08:52:24]MH_SAM_APDU [08:52:24]CAPDU: 80 09 00 00 [08:52:24]Write to MH i2c: E2 08 00 C4 0B 80 09 00 00 00 00 00 00 41 [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 [08:52:24]MH_I2C_Read... [08:52:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:24]Read from MH i2c: E2 03 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [08:52:24]RAPDU: 90 00 [08:52:24]wFMCommunicate OK [08:52:24]SAM_PROTO_ClearQueue done [08:52:24]KKMCreateOFDPacket [08:52:24]OFDProtocolAddRootSTLVToBuf [08:52:24]FM_MakeSignedData [08:52:24]FM_MakeSignedData [08:52:24]SAM_PROTO_SignData [08:52:24]wFMCommunicate request_size=4 [08:52:24]MH_SAM_APDU [08:52:24]CAPDU: 80 0D 01 02 [08:52:24]Write to MH i2c: E2 08 00 C5 0B 80 0D 01 02 00 00 00 00 49 [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:24]Read from MH i2c: E2 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 03 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [08:52:24]RAPDU: 90 00 [08:52:24]wFMCommunicate OK [08:52:24]wFMCommunicate request_size=255 [08:52:24]MH_SAM_APDU [08:52:24]CAPDU: 80 0D 02 02 FA 03 00 B1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 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 [08:52:24]Write to MH i2c: E2 02 01 C6 0B 80 0D 02 02 FA 00 03 00 B1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 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 00 92 [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 03 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [08:52:25]RAPDU: 90 00 [08:52:25]wFMCommunicate OK [08:52:25]wFMCommunicate request_size=192 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 0D 02 02 BB 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 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 2B 00 00 00 F4 03 04 00 49 E3 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 72 7B 00 00 35 04 06 00 8A E0 7E 06 F4 EC [08:52:25]Write to MH i2c: E2 C3 00 C7 0B 80 0D 02 02 BB 00 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 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 2B 00 00 00 F4 03 04 00 49 E3 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 72 7B 00 00 35 04 06 00 8A E0 7E 06 F4 EC 00 00 FA [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 03 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [08:52:25]RAPDU: 90 00 [08:52:25]wFMCommunicate OK [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 0D 03 02 [08:52:25]Write to MH i2c: E2 08 00 C8 0B 80 0D 03 02 00 00 00 00 4E [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0B 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0B 00 C8 0B 00 3A F1 27 F0 17 C7 5A 48 90 00 11 [08:52:25]RAPDU: 3A F1 27 F0 17 C7 5A 48 90 00 [08:52:25]wFMCommunicate OK [08:52:25]SAM_PROTO_SignData done [08:52:25]FM_MakeSignedData done [08:52:25]CreateOFDProtocolMessage [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 11 00 00 [08:52:25]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 17 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A9 [08:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:52:25]wFMCommunicate OK [08:52:25]CreateOFDProtocolMessage done [08:52:25]OFDSenderStorePacket 31602 [08:52:25]StoreOFDPacket docnum=31602 [08:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C5 01 00 00 C0 7A BD 01 17 A0 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 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 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 2B 00 00 00 F4 03 04 00 49 E3 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 72 7B 00 00 35 04 06 00 8A E0 7E 06 F4 EC 3A F1 27 F0 17 C7 5A 48 [08:52:25]CheckFolder [08:52:25]dirname=/storage/ofd_packets [08:52:25]CheckFolder done [08:52:25]ProducePacketName [08:52:25]name=ofd_packets/00031602 [08:52:25]NVStorageSaveData ofd_packets/00031602 [08:52:25]File name is /storage/ofd_packets/00031602 [08:52:25]Write 483 bytes [08:52:25]NVStorageSaveData done [08:52:25]OFDSenderStorePacket done [08:52:25]KKMCreateOFDPacket done [08:52:25]NVStorageSaveData kkm_last_timestamp [08:52:25]File name is /storage/kkm_last_timestamp [08:52:25]Write 4 bytes [08:52:25]NVStorageSaveData done [08:52:25]ExternCall_PrintAddStr [08:52:25]wPrintStart [08:52:25]Write to MH i2c: 01 00 00 CA 0B D5 [08:52:25]OFD Sender: Processing packet 31602 [packets to send 5, broken 4] [08:52:25]ProducePacketName [08:52:25]name=ofd_packets/00031602 [08:52:25]OFD Sender: To server: pG, [08:52:25]CommunicateWithHost lk.salyk.kg:30040 [08:52:25]ConnectInit lk.salyk.kg [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: 01 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: 01 07 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [08:52:25]RasterBufferAndPrint [08:52:25]line Счет N : (3)214184 [08:52:25]line ИНН: 02508201610067 [08:52:25]line Контрольно-Кассовый Чек [08:52:25]line ПРОДАЖА [08:52:25]line Товар: 4870202521247 [08:52:25]line Напиток MAXI чай 1,2 черн.персик [08:52:25]line 1.000 * 125.00 [08:52:25]line = 125.00 [08:52:25]line НДС 12% НСП 1% [08:52:25]line > о реализуемом товаре [08:52:25]line Товар: 4630056952563 [08:52:25]line Печ Юбилейное Торжество молочное 120г [08:52:25]line 1.000 * 59.00 [08:52:25]line = 59.00 [08:52:25]line НДС 12% НСП 1% [08:52:25]line > о реализуемом товаре [08:52:25]line ИТОГО: 184.00 [08:52:25]line НСП 1% : 1.63 [08:52:25]line НДС 12% : 19.53 [08:52:25]line Наличными: 184.00 [08:52:25]line Безнал.: 0.00 [08:52:25]line Место: АЗС № 140 "Партнер Нефть" [08:52:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:52:25]line СНО: Общий режим [08:52:25]line Чек 43 15.07.2024 08:52 [08:52:25]line Смена: 370 ФФД: 1.0 [08:52:25]line ЗНМ: 0300000189 [08:52:25]line РНМ: 0000000000098025 [08:52:25]line Версия ККМ: 001 [08:52:25]line ФМ: 0000000000965389 [08:52:25]line ФД: 31602 [08:52:25]line ФПД: 152696791692524 [08:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085225&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31602&fm=152696791692524&tin=02508201610067®Number=0000000000098025&sum=18400 [08:52:25]line 0 [08:52:25]written 0, free lines is 4095 [08:52:25]Connected sock=9 [08:52:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C5 01 00 00 C0 7A BD 01 17 A0 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 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 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 2B 00 00 00 F4 03 04 00 49 E3 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 72 7B 00 00 35 04 06 00 8A E0 7E 06 F4 EC 3A F1 27 F0 17 C7 5A 48 [08:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B9 48 47 00 67 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 72 7B 00 00 F4 03 04 00 57 8F 94 66 B6 04 01 00 00 23 2D 5F 6D 16 0B 96 CA [08:52:26]CommunicateWithHost err = 0 [08:52:26]CheckOFDResponse [08:52:26]1017 (14) - 77093643461234 [08:52:26]1041 (16) - 0000000000965389 [08:52:26]1040 (4) - 31602 [08:52:26]1012 (4) - 15.07.2024 02:54 [08:52:26]1206 (1) - 0 [08:52:26]OFD Sender: Remove packet 31602 [08:52:26]ProducePacketName [08:52:26]name=ofd_packets/00031602 [08:52:26]NVStorageDeleteData [08:52:26]Write to MH i2c: 01 00 00 FA 0B 05 [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: 01 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: 01 07 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 95 0C AD [08:52:26]RasterBufferAndPrint [08:52:26]line [08:52:26]line [08:52:26]line [08:52:26]line [08:52:26]line [08:52:26]written 0, free lines is 3227 [08:52:26]MH_Cut [08:52:26]Write to MH i2c: D1 01 00 01 0C 01 DF [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: D1 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: D1 01 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: D1 01 00 01 0C 00 DE [08:52:26]Write to MH i2c: 01 00 00 02 0C 0E [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]OFD Sender: No OFD packet to send [08:52:27]*** Cut start [08:52:27]*** Partial cut [08:52:27]*** CUTSNS_PIN = 1 [08:52:27]*** CUTSNS_PIN = 0 [08:52:27]*** Brake cut motor [08:52:27]Read from MH i2c: 01 [08:52:27]MH_I2C_Read... [08:52:27]*** Stop cut motor [08:52:27]*** Cut end [08:52:27]Read from MH i2c: 01 07 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [08:52:27]process_action close_receipt done [08:52:27]requested_data is exist [08:52:27]produce_requested_data [08:52:27]requested_item fm.sn is exist - process it [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 11 00 00 [08:52:27]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E4 [08:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:52:27]wFMCommunicate OK [08:52:27]requested_item fd.num is exist - process it [08:52:27]SAM_PROTO_GetFieldsCounters [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 13 00 00 [08:52:27]Write to MH i2c: E2 08 00 04 0C 80 13 00 00 00 00 00 00 8C [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 62 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 62 00 04 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 72 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [08:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 72 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_GetFieldsCounters done [08:52:27]requested_item shift.num is exist - process it [08:52:27]requested_item shift.opened is exist - process it [08:52:27]req_shift_opened [08:52:27]FM_GetShiftState [08:52:27]SAM_PROTO_GetShiftState [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 13 01 00 [08:52:27]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0E 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 81 [08:52:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_GetShiftState done [08:52:27]FM_GetShiftState done [08:52:27]req_shift_opened done [08:52:27]requested_item shift.open_date is exist - process it [08:52:27]req_shift_open_date [08:52:27]req_shift_open_date done [08:52:27]produce_requested_data done [08:52:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31602,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:52:27]process_action_free close_receipt [08:52:27]json_value_free [08:52:27]json_value_free done [08:52:27]process_json_proto returns [08:52:27]Send response to host [08:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31602,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:52:27]free response buf [08:52:27]execute_script done [08:52:27]execute_script returns [08:52:27]free content buf [08:52:27]Sock 5.Close socket [08:52:27]Sock 5.Thread stoped [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:54]accept exits with 6 [08:56:54]New connection [08:56:54]New thread 3067415908 created [08:56:54]Thread 3067559268 joined [08:56:54]Waiting for new connection... [08:56:54] Sock 6.Parse request [08:56:54]Sock 6.Check first char [08:56:54]Sock 6.First char is OK [08:56:54]request: POST /json_proto HTTP/1.0 [08:56:54]Method: POST [08:56:54]URL: /json_proto [08:56:54]Method is POST - this is cgi request [08:56:54]url: /json_proto [08:56:54]query_string will be loaded in cgi processing [08:56:54]execute_cgi json_proto POST (null) [08:56:54]execute_cgi path=json_proto method=POST [08:56:54]POST find Content-Length [08:56:54]Host: 172.17.39.68:8080 [08:56:54]Content-Length: 709 [08:56:54]Content-Type: application/json [08:56:54] [08:56:54]POST finish read [08:56:54]Found Content-Length = 709 [08:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214185", "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" ] } } [08:56:54]execute_script... [08:56: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)214185", "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" ] } } [08:56:54]POST & json_proto [08:56:54]process_json_proto [08:56:54]json parsed OK: [08:56:54]protocol is kg_v1.0 [08:56:54]action value=close_receipt [08:56:54]process_action close_receipt [08:56:54]cmd_close_receipt [08:56:54]MH_GetDate [08:56:54]Write to MH i2c: F0 00 00 06 0C 01 [08:56:54]Write i2c OK [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: F0 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: F0 09 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: F0 09 00 06 0C 00 57 E4 94 66 EC 7F 94 66 A4 [08:56:54]GetLastDocTimeStamp 1721033545 [08:56:54]current date 1721033815 [08:56:54]FM_GetShiftState [08:56:54]SAM_PROTO_GetShiftState [08:56:54]wFMCommunicate request_size=4 [08:56:54]MH_SAM_APDU [08:56:54]CAPDU: 80 13 01 00 [08:56:54]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [08:56:54]Write i2c OK [08:56:54]MH_I2C_Read... [08:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:54]Read from MH i2c: E2 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 0E 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 83 [08:56:54]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:56:54]wFMCommunicate OK [08:56:54]SAM_PROTO_GetShiftState done [08:56:54]FM_GetShiftState done [08:56:54]opened in 1721001862 [08:56:54]opened+sec_in_day 1721088262 [08:56:54]quantity*price = 9500 [08:56:54]sum+1 = 9501 [08:56:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 44 15.07.2024 08:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31603 ФПД: 47667091883192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085655&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31603&fm=47667091883192&tin=02508201610067®Number=0000000000098025&sum=9500 0 [08:56:55]StoreToDocumentArchive [08:56:55]shift 370 fd 31603 [08:56:55]save to /storage/0370/doc_00031603 [08:56:55]save last doc name /storage/0370/doc_00031603 to /storage/kkm_last_doc_name [08:56:55]save OK [08:56:55]Clear old archive folders... [08:56:55]ProcessDocumentItem done err = 0, tmpTLVsize=304 [08:56:55]tlvbuf is 0124F7A0 [08:56:55]SAM_PROTO_ClearQueue [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 09 00 00 [08:56:55]Write to MH i2c: E2 08 00 14 0C 80 09 00 00 00 00 00 00 92 [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [08:56:55]RAPDU: 90 00 [08:56:55]wFMCommunicate OK [08:56:55]SAM_PROTO_ClearQueue done [08:56:55]KKMCreateOFDPacket [08:56:55]OFDProtocolAddRootSTLVToBuf [08:56:55]FM_MakeSignedData [08:56:55]FM_MakeSignedData [08:56:55]SAM_PROTO_SignData [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 0D 01 02 [08:56:55]Write to MH i2c: E2 08 00 15 0C 80 0D 01 02 00 00 00 00 9A [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [08:56:55]RAPDU: 90 00 [08:56:55]wFMCommunicate OK [08:56:55]wFMCommunicate request_size=255 [08:56:55]MH_SAM_APDU [08:56:55]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 2C 00 00 00 F4 03 04 00 57 E4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 [08:56:55]Write to MH i2c: E2 02 01 16 0C 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 2C 00 00 00 F4 03 04 00 57 E4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 00 00 B4 [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [08:56:55]RAPDU: 90 00 [08:56:55]wFMCommunicate OK [08:56:55]wFMCommunicate request_size=63 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 73 7B 00 00 35 04 06 00 2B 5A 5C 14 44 B8 [08:56:55]Write to MH i2c: E2 42 00 17 0C 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 73 7B 00 00 35 04 06 00 2B 5A 5C 14 44 B8 00 00 CD [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [08:56:55]RAPDU: 90 00 [08:56:55]wFMCommunicate OK [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 0D 03 02 [08:56:55]Write to MH i2c: E2 08 00 18 0C 80 0D 03 02 00 00 00 00 9F [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 0B 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 0B 00 18 0C 00 23 AB A4 7E 60 85 E9 67 90 00 C5 [08:56:55]RAPDU: 23 AB A4 7E 60 85 E9 67 90 00 [08:56:55]wFMCommunicate OK [08:56:55]SAM_PROTO_SignData done [08:56:55]FM_MakeSignedData done [08:56:55]CreateOFDProtocolMessage [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 11 00 00 [08:56:55]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 17 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 17 00 19 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FA [08:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:56:55]wFMCommunicate OK [08:56:55]CreateOFDProtocolMessage done [08:56:55]OFDSenderStorePacket 31603 [08:56:55]StoreOFDPacket docnum=31603 [08:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 86 0A 3C 01 51 3D 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 2C 00 00 00 F4 03 04 00 57 E4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 73 7B 00 00 35 04 06 00 2B 5A 5C 14 44 B8 23 AB A4 7E 60 85 E9 67 [08:56:55]CheckFolder [08:56:55]dirname=/storage/ofd_packets [08:56:55]CheckFolder done [08:56:55]ProducePacketName [08:56:55]name=ofd_packets/00031603 [08:56:55]NVStorageSaveData ofd_packets/00031603 [08:56:55]File name is /storage/ofd_packets/00031603 [08:56:55]Write 354 bytes [08:56:55]NVStorageSaveData done [08:56:55]OFDSenderStorePacket done [08:56:55]KKMCreateOFDPacket done [08:56:55]NVStorageSaveData kkm_last_timestamp [08:56:55]File name is /storage/kkm_last_timestamp [08:56:55]Write 4 bytes [08:56:55]NVStorageSaveData done [08:56:55]ExternCall_PrintAddStr [08:56:55]wPrintStart [08:56:55]Write to MH i2c: 01 00 00 1A 0C 26 [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: 01 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: 01 07 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [08:56:55]RasterBufferAndPrint [08:56:55]line Счет N : (3)214185 [08:56:55]line ИНН: 02508201610067 [08:56:55]line Контрольно-Кассовый Чек [08:56:55]line ПРОДАЖА [08:56:55]line Товар: 4700000480302 [08:56:55]line Напиток энерг Nitro манго-клуб 0.45 ж/б [08:56:55]line 1.000 * 95.00 [08:56:55]line = 95.00 [08:56:55]line НДС 12% НСП 1% [08:56:55]line > о реализуемом товаре [08:56:55]line ИТОГО: 95.00 [08:56:55]line НСП 1% : 0.84 [08:56:55]line НДС 12% : 10.09 [08:56:55]line Наличными: 95.00 [08:56:55]line Безнал.: 0.00 [08:56:55]line Место: АЗС № 140 "Партнер Нефть" [08:56:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:56:55]line СНО: Общий режим [08:56:55]line Чек 44 15.07.2024 08:56 [08:56:55]line Смена: 370 ФФД: 1.0 [08:56:55]line ЗНМ: 0300000189 [08:56:55]line РНМ: 0000000000098025 [08:56:55]line Версия ККМ: 001 [08:56:56]line ФМ: 0000000000965389 [08:56:56]line ФД: 31603 [08:56:56]line ФПД: 47667091883192 [08:56:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085655&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31603&fm=47667091883192&tin=02508201610067®Number=0000000000098025&sum=9500 [08:56:56]line 0 [08:56:56]OFD Sender: Processing packet 31603 [packets to send 5, broken 4] [08:56:56]ProducePacketName [08:56:56]name=ofd_packets/00031603 [08:56:56]OFD Sender: To server: pG, [08:56:56]CommunicateWithHost lk.salyk.kg:30040 [08:56:56]ConnectInit lk.salyk.kg [08:56:56]written 0, free lines is 4095 [08:56:56]Connected sock=7 [08:56:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 86 0A 3C 01 51 3D 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 2C 00 00 00 F4 03 04 00 57 E4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 73 7B 00 00 35 04 06 00 2B 5A 5C 14 44 B8 23 AB A4 7E 60 85 E9 67 [08:56:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 39 E0 47 00 17 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 73 7B 00 00 F4 03 04 00 65 90 94 66 B6 04 01 00 00 D6 53 CE 1D 21 10 E6 02 [08:56:56]CommunicateWithHost err = 0 [08:56:56]CheckOFDResponse [08:56:56]1017 (14) - 77093643461234 [08:56:56]1041 (16) - 0000000000965389 [08:56:56]1040 (4) - 31603 [08:56:56]1012 (4) - 15.07.2024 02:58 [08:56:56]1206 (1) - 0 [08:56:56]OFD Sender: Remove packet 31603 [08:56:56]ProducePacketName [08:56:56]name=ofd_packets/00031603 [08:56:56]NVStorageDeleteData [08:56:56]Write to MH i2c: 01 00 00 43 0C 4F [08:56:56]Write i2c OK [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: 01 [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: 01 07 00 [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FE 0C 60 [08:56:56]RasterBufferAndPrint [08:56:56]line [08:56:56]line [08:56:56]line [08:56:56]line [08:56:56]line [08:56:56]written 0, free lines is 3331 [08:56:56]MH_Cut [08:56:56]Write to MH i2c: D1 01 00 4A 0C 01 28 [08:56:56]Write i2c OK [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: D1 [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: D1 01 00 [08:56:56]MH_I2C_Read... [08:56:56]Read from MH i2c: D1 01 00 4A 0C 00 27 [08:56:56]Write to MH i2c: 01 00 00 4B 0C 57 [08:56:56]Write i2c OK [08:56:56]MH_I2C_Read... [08:56:57]OFD Sender: No OFD packet to send [08:56:57]*** Cut start [08:56:57]*** Partial cut [08:56:57]*** CUTSNS_PIN = 1 [08:56:57]*** CUTSNS_PIN = 0 [08:56:57]*** Brake cut motor [08:56:58]Read from MH i2c: 01 [08:56:58]MH_I2C_Read... [08:56:58]*** Stop cut motor [08:56:58]*** Cut end [08:56:58]Read from MH i2c: 01 07 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 FF 0F 6C [08:56:58]process_action close_receipt done [08:56:58]requested_data is exist [08:56:58]produce_requested_data [08:56:58]requested_item fm.sn is exist - process it [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 11 00 00 [08:56:58]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 17 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2D [08:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:56:58]wFMCommunicate OK [08:56:58]requested_item fd.num is exist - process it [08:56:58]SAM_PROTO_GetFieldsCounters [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 13 00 00 [08:56:58]Write to MH i2c: E2 08 00 4D 0C 80 13 00 00 00 00 00 00 D5 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 62 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 62 00 4D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 73 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [08:56:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 73 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_GetFieldsCounters done [08:56:58]requested_item shift.num is exist - process it [08:56:58]requested_item shift.opened is exist - process it [08:56:58]req_shift_opened [08:56:58]FM_GetShiftState [08:56:58]SAM_PROTO_GetShiftState [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 13 01 00 [08:56:58]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0E 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CA [08:56:58]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_GetShiftState done [08:56:58]FM_GetShiftState done [08:56:58]req_shift_opened done [08:56:58]requested_item shift.open_date is exist - process it [08:56:58]req_shift_open_date [08:56:58]req_shift_open_date done [08:56:58]produce_requested_data done [08:56:58]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31603,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [08:56:58]process_action_free close_receipt [08:56:58]json_value_free [08:56:58]json_value_free done [08:56:58]process_json_proto returns [08:56:58]Send response to host [08:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31603,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [08:56:58]free response buf [08:56:58]execute_script done [08:56:58]execute_script returns [08:56:58]free content buf [08:56:58]Sock 6.Close socket [08:56:58]Sock 6.Thread stoped [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:25]accept exits with 5 [09:01:25]New connection [09:01:25]New thread 3067559268 created [09:01:25]Thread 3067415908 joined [09:01:25]Waiting for new connection... [09:01:25] Sock 5.Parse request [09:01:25]Sock 5.Check first char [09:01:25]Sock 5.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.39.68:8080 [09:01:25]Content-Length: 650 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 650 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214186", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [09:01:25]execute_script... [09:01: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)214186", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=close_receipt [09:01:25]process_action close_receipt [09:01:25]cmd_close_receipt [09:01:25]MH_GetDate [09:01:25]Write to MH i2c: F0 00 00 4F 0C 4A [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 4F 0C 00 66 E5 94 66 EC 7F 94 66 FD [09:01:25]GetLastDocTimeStamp 1721033815 [09:01:25]current date 1721034086 [09:01:25]FM_GetShiftState [09:01:25]SAM_PROTO_GetShiftState [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 01 00 [09:01:25]Write to MH i2c: E2 08 00 50 0C 80 13 01 00 00 00 00 00 D9 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 50 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CC [09:01:25]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetShiftState done [09:01:25]FM_GetShiftState done [09:01:25]opened in 1721001862 [09:01:25]opened+sec_in_day 1721088262 [09:01:25]quantity*price = 10500 [09:01:25]sum+1 = 10501 [09:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 45 15.07.2024 09:01 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31604 ФПД: 61299040834436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090126&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31604&fm=61299040834436&tin=02508201610067®Number=0000000000098025&sum=10500 0 [09:01:26]StoreToDocumentArchive [09:01:26]shift 370 fd 31604 [09:01:26]save to /storage/0370/doc_00031604 [09:01:26]save last doc name /storage/0370/doc_00031604 to /storage/kkm_last_doc_name [09:01:26]save OK [09:01:26]Clear old archive folders... [09:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:01:26]tlvbuf is 0122CF60 [09:01:26]SAM_PROTO_ClearQueue [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 09 00 00 [09:01:26]Write to MH i2c: E2 08 00 5D 0C 80 09 00 00 00 00 00 00 DB [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 [09:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_ClearQueue done [09:01:26]KKMCreateOFDPacket [09:01:26]OFDProtocolAddRootSTLVToBuf [09:01:26]FM_MakeSignedData [09:01:26]FM_MakeSignedData [09:01:26]SAM_PROTO_SignData [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 0D 01 02 [09:01:26]Write to MH i2c: E2 08 00 5E 0C 80 0D 01 02 00 00 00 00 E3 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=255 [09:01:26]MH_SAM_APDU [09:01:26]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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2D 00 00 00 F4 03 04 00 66 E5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [09:01:26]Write to MH i2c: E2 02 01 5F 0C 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2D 00 00 00 F4 03 04 00 66 E5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 8F [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=41 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 74 7B 00 00 35 04 06 00 37 C0 4B 8D D3 84 [09:01:26]Write to MH i2c: E2 2C 00 60 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 74 7B 00 00 35 04 06 00 37 C0 4B 8D D3 84 00 00 D2 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 0D 03 02 [09:01:26]Write to MH i2c: E2 08 00 61 0C 80 0D 03 02 00 00 00 00 E8 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0B 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0B 00 61 0C 00 B0 41 9D 7A 6D BB 8E 4B 90 00 F2 [09:01:26]RAPDU: B0 41 9D 7A 6D BB 8E 4B 90 00 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_SignData done [09:01:26]FM_MakeSignedData done [09:01:26]CreateOFDProtocolMessage [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 11 00 00 [09:01:26]Write to MH i2c: E2 08 00 62 0C 80 11 00 00 00 00 00 00 E8 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 62 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 43 [09:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:01:26]wFMCommunicate OK [09:01:26]CreateOFDProtocolMessage done [09:01:26]OFDSenderStorePacket 31604 [09:01:26]StoreOFDPacket docnum=31604 [09:01:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 31 E2 26 01 8D 37 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2D 00 00 00 F4 03 04 00 66 E5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 74 7B 00 00 35 04 06 00 37 C0 4B 8D D3 84 B0 41 9D 7A 6D BB 8E 4B [09:01:26]CheckFolder [09:01:26]dirname=/storage/ofd_packets [09:01:26]CheckFolder done [09:01:26]ProducePacketName [09:01:26]name=ofd_packets/00031604 [09:01:26]NVStorageSaveData ofd_packets/00031604 [09:01:26]File name is /storage/ofd_packets/00031604 [09:01:26]Write 332 bytes [09:01:26]NVStorageSaveData done [09:01:26]OFDSenderStorePacket done [09:01:26]KKMCreateOFDPacket done [09:01:26]NVStorageSaveData kkm_last_timestamp [09:01:26]File name is /storage/kkm_last_timestamp [09:01:26]Write 4 bytes [09:01:26]NVStorageSaveData done [09:01:26]ExternCall_PrintAddStr [09:01:26]wPrintStart [09:01:26]Write to MH i2c: 01 00 00 63 0C 6F [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [09:01:26]RasterBufferAndPrint [09:01:26]line Счет N : (3)214186 [09:01:26]line ИНН: 02508201610067 [09:01:26]line Контрольно-Кассовый Чек [09:01:26]line ПРОДАЖА [09:01:26]line Товар: 2000034730018 [09:01:26]line Кофе Американо (GABB TRADE) [09:01:26]line 1.000 * 105.00 [09:01:26]line = 105.00 [09:01:26]line НДС 12% НСП 1% [09:01:26]line > о реализуемом товаре [09:01:26]line ИТОГО: 105.00 [09:01:26]line НСП 1% : 0.93 [09:01:26]line НДС 12% : 11.15 [09:01:26]line Наличными: 105.00 [09:01:26]line Безнал.: 0.00 [09:01:26]line Место: АЗС № 140 "Партнер Нефть" [09:01:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:01:26]line СНО: Общий режим [09:01:26]line Чек 45 15.07.2024 09:01 [09:01:26]line Смена: 370 ФФД: 1.0 [09:01:26]line ЗНМ: 0300000189 [09:01:26]line РНМ: 0000000000098025 [09:01:26]line Версия ККМ: 001 [09:01:26]line ФМ: 0000000000965389 [09:01:26]line ФД: 31604 [09:01:26]line ФПД: 61299040834436 [09:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090126&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31604&fm=61299040834436&tin=02508201610067®Number=0000000000098025&sum=10500 [09:01:27]line 0 [09:01:27]OFD Sender: Processing packet 31604 [packets to send 5, broken 4] [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00031604 [09:01:27]OFD Sender: To server: pG, [09:01:27]CommunicateWithHost lk.salyk.kg:30040 [09:01:27]ConnectInit lk.salyk.kg [09:01:27]written 0, free lines is 4095 [09:01:27]Connected sock=7 [09:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 31 E2 26 01 8D 37 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2D 00 00 00 F4 03 04 00 66 E5 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 74 7B 00 00 35 04 06 00 37 C0 4B 8D D3 84 B0 41 9D 7A 6D BB 8E 4B [09:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6B 77 47 00 CA A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 74 7B 00 00 F4 03 04 00 74 91 94 66 B6 04 01 00 00 12 03 C9 D1 03 C2 7F 0D [09:01:27]CommunicateWithHost err = 0 [09:01:27]CheckOFDResponse [09:01:27]1017 (14) - 77093643461234 [09:01:27]1041 (16) - 0000000000965389 [09:01:27]1040 (4) - 31604 [09:01:27]1012 (4) - 15.07.2024 03:03 [09:01:27]1206 (1) - 0 [09:01:27]OFD Sender: Remove packet 31604 [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00031604 [09:01:27]NVStorageDeleteData [09:01:27]Write to MH i2c: 01 00 00 8C 0C 98 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FB 0C A6 [09:01:27]RasterBufferAndPrint [09:01:27]line [09:01:27]line [09:01:27]line [09:01:27]line [09:01:27]line [09:01:27]written 0, free lines is 3329 [09:01:27]MH_Cut [09:01:27]Write to MH i2c: D1 01 00 93 0C 01 71 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: D1 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: D1 01 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: D1 01 00 93 0C 00 70 [09:01:27]Write to MH i2c: 01 00 00 94 0C A0 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:28]OFD Sender: No OFD packet to send [09:01:28]*** Cut start [09:01:28]*** Partial cut [09:01:28]*** CUTSNS_PIN = 1 [09:01:28]*** CUTSNS_PIN = 0 [09:01:28]*** Brake cut motor [09:01:29]Read from MH i2c: 01 [09:01:29]MH_I2C_Read... [09:01:29]*** Stop cut motor [09:01:29]*** Cut end [09:01:29]Read from MH i2c: 01 07 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [09:01:29]process_action close_receipt done [09:01:29]requested_data is exist [09:01:29]produce_requested_data [09:01:29]requested_item fm.sn is exist - process it [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 11 00 00 [09:01:29]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [09:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:01:29]wFMCommunicate OK [09:01:29]requested_item fd.num is exist - process it [09:01:29]SAM_PROTO_GetFieldsCounters [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 00 00 [09:01:29]Write to MH i2c: E2 08 00 96 0C 80 13 00 00 00 00 00 00 1E [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 96 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 74 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 74 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetFieldsCounters done [09:01:29]requested_item shift.num is exist - process it [09:01:29]requested_item shift.opened is exist - process it [09:01:29]req_shift_opened [09:01:29]FM_GetShiftState [09:01:29]SAM_PROTO_GetShiftState [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 01 00 [09:01:29]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 13 [09:01:29]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetShiftState done [09:01:29]FM_GetShiftState done [09:01:29]req_shift_opened done [09:01:29]requested_item shift.open_date is exist - process it [09:01:29]req_shift_open_date [09:01:29]req_shift_open_date done [09:01:29]produce_requested_data done [09:01:29]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31604,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:01:29]process_action_free close_receipt [09:01:29]json_value_free [09:01:29]json_value_free done [09:01:29]process_json_proto returns [09:01:29]Send response to host [09:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31604,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:01:29]free response buf [09:01:29]execute_script done [09:01:29]execute_script returns [09:01:29]free content buf [09:01:29]Sock 5.Close socket [09:01:29]Sock 5.Thread stoped [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:35]accept exits with 6 [09:07:35]New connection [09:07:35]New thread 3067415908 created [09:07:35]Thread 3067559268 joined [09:07:35]Waiting for new connection... [09:07:35] Sock 6.Parse request [09:07:35]Sock 6.Check first char [09:07:35]Sock 6.First char is OK [09:07:35]request: POST /json_proto HTTP/1.0 [09:07:35]Method: POST [09:07:35]URL: /json_proto [09:07:35]Method is POST - this is cgi request [09:07:35]url: /json_proto [09:07:35]query_string will be loaded in cgi processing [09:07:35]execute_cgi json_proto POST (null) [09:07:35]execute_cgi path=json_proto method=POST [09:07:35]POST find Content-Length [09:07:35]Host: 172.17.39.68:8080 [09:07:35]Content-Length: 1079 [09:07:35]Content-Type: application/json [09:07:35] [09:07:35]POST finish read [09:07:35]Found Content-Length = 1079 [09:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214187", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:35]execute_script... [09:07: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)214187", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:35]POST & json_proto [09:07:35]process_json_proto [09:07:35]json parsed OK: [09:07:35]protocol is kg_v1.0 [09:07:35]action value=close_receipt [09:07:35]process_action close_receipt [09:07:35]cmd_close_receipt [09:07:35]MH_GetDate [09:07:35]Write to MH i2c: F0 00 00 98 0C 93 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 09 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 09 00 98 0C 00 D9 E6 94 66 EC 7F 94 66 BA [09:07:35]GetLastDocTimeStamp 1721034086 [09:07:35]current date 1721034457 [09:07:35]FM_GetShiftState [09:07:35]SAM_PROTO_GetShiftState [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 13 01 00 [09:07:35]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0E 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 15 [09:07:35]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:07:35]wFMCommunicate OK [09:07:35]SAM_PROTO_GetShiftState done [09:07:35]FM_GetShiftState done [09:07:35]opened in 1721001862 [09:07:35]opened+sec_in_day 1721088262 [09:07:35]quantity*price = 15500 [09:07:35]sum+1 = 15501 [09:07:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 204.00 НСП 1% : 1.80 НДС 12% : 21.66 Наличными: 0.00 Безнал.: 204.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 46 15.07.2024 09:07 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31605 ФПД: 105089257357424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090737&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31605&fm=105089257357424&tin=02508201610067®Number=0000000000098025&sum=20400 0 [09:07:36]StoreToDocumentArchive [09:07:36]shift 370 fd 31605 [09:07:36]save to /storage/0370/doc_00031605 [09:07:36]save last doc name /storage/0370/doc_00031605 to /storage/kkm_last_doc_name [09:07:36]save OK [09:07:36]Clear old archive folders... [09:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=382 [09:07:36]tlvbuf is 01256800 [09:07:36]SAM_PROTO_ClearQueue [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 09 00 00 [09:07:36]Write to MH i2c: E2 08 00 A6 0C 80 09 00 00 00 00 00 00 24 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_ClearQueue done [09:07:36]KKMCreateOFDPacket [09:07:36]OFDProtocolAddRootSTLVToBuf [09:07:36]FM_MakeSignedData [09:07:36]FM_MakeSignedData [09:07:36]SAM_PROTO_SignData [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 01 02 [09:07:36]Write to MH i2c: E2 08 00 A7 0C 80 0D 01 02 00 00 00 00 2C [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=255 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 02 02 FA 03 00 7E 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 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 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 [09:07:36]Write to MH i2c: E2 02 01 A8 0C 80 0D 02 02 FA 00 03 00 7E 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 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 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 20 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [09:07:37]RAPDU: 90 00 [09:07:37]wFMCommunicate OK [09:07:37]wFMCommunicate request_size=141 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D9 E6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 75 7B 00 00 35 04 06 00 5F 93 FF DA C0 70 [09:07:37]Write to MH i2c: E2 90 00 A9 0C 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D9 E6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 75 7B 00 00 35 04 06 00 5F 93 FF DA C0 70 00 00 35 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [09:07:37]RAPDU: 90 00 [09:07:37]wFMCommunicate OK [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 0D 03 02 [09:07:37]Write to MH i2c: E2 08 00 AA 0C 80 0D 03 02 00 00 00 00 31 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 0B 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 0B 00 AA 0C 00 E0 78 00 BD 7D 14 23 A1 90 00 9C [09:07:37]RAPDU: E0 78 00 BD 7D 14 23 A1 90 00 [09:07:37]wFMCommunicate OK [09:07:37]SAM_PROTO_SignData done [09:07:37]FM_MakeSignedData done [09:07:37]CreateOFDProtocolMessage [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 11 00 00 [09:07:37]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8C [09:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:07:37]wFMCommunicate OK [09:07:37]CreateOFDProtocolMessage done [09:07:37]OFDSenderStorePacket 31605 [09:07:37]StoreOFDPacket docnum=31605 [09:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 92 01 00 00 7D C3 8A 01 40 93 5A 03 01 00 03 00 7E 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 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 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D9 E6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 75 7B 00 00 35 04 06 00 5F 93 FF DA C0 70 E0 78 00 BD 7D 14 23 A1 [09:07:37]CheckFolder [09:07:37]dirname=/storage/ofd_packets [09:07:37]CheckFolder done [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00031605 [09:07:37]NVStorageSaveData ofd_packets/00031605 [09:07:37]File name is /storage/ofd_packets/00031605 [09:07:37]Write 432 bytes [09:07:37]NVStorageSaveData done [09:07:37]OFDSenderStorePacket done [09:07:37]KKMCreateOFDPacket done [09:07:37]NVStorageSaveData kkm_last_timestamp [09:07:37]File name is /storage/kkm_last_timestamp [09:07:37]Write 4 bytes [09:07:37]NVStorageSaveData done [09:07:37]ExternCall_PrintAddStr [09:07:37]wPrintStart [09:07:37]Write to MH i2c: 01 00 00 AC 0C B8 [09:07:37]OFD Sender: Processing packet 31605 [packets to send 5, broken 4] [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00031605 [09:07:37]OFD Sender: To server: pG, [09:07:37]CommunicateWithHost lk.salyk.kg:30040 [09:07:37]ConnectInit lk.salyk.kg [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 FF 0F CD [09:07:37]RasterBufferAndPrint [09:07:37]line Счет N : (3)214187 [09:07:37]line ИНН: 02508201610067 [09:07:37]line Контрольно-Кассовый Чек [09:07:37]line ПРОДАЖА [09:07:37]line Товар: 47803152 [09:07:37]line Сигареты Mevius Revo [09:07:37]line 1.000 * 155.00 [09:07:37]line = 155.00 [09:07:37]line НДС 12% НСП 1% [09:07:37]line > о реализуемом товаре [09:07:37]line Товар: 46227737 [09:07:37]line Р/ж mentos pure fresh арбуз ролл 15,5г [09:07:37]line 1.000 * 49.00 [09:07:37]line = 49.00 [09:07:37]line НДС 12% НСП 1% [09:07:37]line > о реализуемом товаре [09:07:37]line ИТОГО: 204.00 [09:07:37]line НСП 1% : 1.80 [09:07:37]line НДС 12% : 21.66 [09:07:37]line Наличными: 0.00 [09:07:37]line Безнал.: 204.00 [09:07:37]line Место: АЗС № 140 "Партнер Нефть" [09:07:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:07:37]line СНО: Общий режим [09:07:37]line Чек 46 15.07.2024 09:07 [09:07:37]line Смена: 370 ФФД: 1.0 [09:07:37]line ЗНМ: 0300000189 [09:07:37]line РНМ: 0000000000098025 [09:07:37]line Версия ККМ: 001 [09:07:37]line Платежная система: АКБ Кыргызстан [09:07:37]line ФМ: 0000000000965389 [09:07:37]line ФД: 31605 [09:07:37]line ФПД: 105089257357424 [09:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090737&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31605&fm=105089257357424&tin=02508201610067®Number=0000000000098025&sum=20400 [09:07:37]line 0 [09:07:37]written 0, free lines is 4095 [09:07:37]Connected sock=7 [09:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 92 01 00 00 7D C3 8A 01 40 93 5A 03 01 00 03 00 7E 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 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 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D9 E6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 75 7B 00 00 35 04 06 00 5F 93 FF DA C0 70 E0 78 00 BD 7D 14 23 A1 [09:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8A EB 47 00 64 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 75 7B 00 00 F4 03 04 00 E7 92 94 66 B6 04 01 00 00 5B DC 2B 1E 76 BD 3E 8E [09:07:37]CommunicateWithHost err = 0 [09:07:37]CheckOFDResponse [09:07:37]1017 (14) - 77093643461234 [09:07:37]1041 (16) - 0000000000965389 [09:07:37]1040 (4) - 31605 [09:07:37]1012 (4) - 15.07.2024 03:09 [09:07:37]1206 (1) - 0 [09:07:37]OFD Sender: Remove packet 31605 [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00031605 [09:07:37]NVStorageDeleteData [09:07:38]Write to MH i2c: 01 00 00 DD 0C E9 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 07 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 8A 0C 86 [09:07:38]RasterBufferAndPrint [09:07:38]line [09:07:38]line [09:07:38]line [09:07:38]line [09:07:38]line [09:07:38]written 0, free lines is 3215 [09:07:38]MH_Cut [09:07:38]Write to MH i2c: D1 01 00 E4 0C 01 C2 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: D1 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: D1 01 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: D1 01 00 E4 0C 00 C1 [09:07:38]Write to MH i2c: 01 00 00 E5 0C F1 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]OFD Sender: No OFD packet to send [09:07:38]*** Cut start [09:07:38]*** Partial cut [09:07:38]*** CUTSNS_PIN = 1 [09:07:39]*** CUTSNS_PIN = 0 [09:07:39]*** Brake cut motor [09:07:39]Read from MH i2c: 01 [09:07:39]MH_I2C_Read... [09:07:39]*** Stop cut motor [09:07:39]*** Cut end [09:07:39]Read from MH i2c: 01 07 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [09:07:39]process_action close_receipt done [09:07:39]requested_data is exist [09:07:39]produce_requested_data [09:07:39]requested_item fm.sn is exist - process it [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 11 00 00 [09:07:39]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 17 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C7 [09:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:07:39]wFMCommunicate OK [09:07:39]requested_item fd.num is exist - process it [09:07:39]SAM_PROTO_GetFieldsCounters [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 13 00 00 [09:07:39]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 62 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 75 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [09:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 75 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:39]wFMCommunicate OK [09:07:39]SAM_PROTO_GetFieldsCounters done [09:07:39]requested_item shift.num is exist - process it [09:07:39]requested_item shift.opened is exist - process it [09:07:39]req_shift_opened [09:07:39]FM_GetShiftState [09:07:39]SAM_PROTO_GetShiftState [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 13 01 00 [09:07:39]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 0E 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 64 [09:07:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:07:39]wFMCommunicate OK [09:07:39]SAM_PROTO_GetShiftState done [09:07:39]FM_GetShiftState done [09:07:39]req_shift_opened done [09:07:39]requested_item shift.open_date is exist - process it [09:07:39]req_shift_open_date [09:07:39]req_shift_open_date done [09:07:39]produce_requested_data done [09:07:39]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31605,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:07:39]process_action_free close_receipt [09:07:39]json_value_free [09:07:39]json_value_free done [09:07:39]process_json_proto returns [09:07:39]Send response to host [09:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31605,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:07:39]free response buf [09:07:39]execute_script done [09:07:39]execute_script returns [09:07:39]free content buf [09:07:39]Sock 6.Close socket [09:07:39]Sock 6.Thread stoped [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:05]accept exits with 5 [09:11:05]New connection [09:11:05]New thread 3067559268 created [09:11:05]Thread 3067415908 joined [09:11:05]Waiting for new connection... [09:11:05] Sock 5.Parse request [09:11:05]Sock 5.Check first char [09:11:05]Sock 5.First char is OK [09:11:05]request: POST /json_proto HTTP/1.0 [09:11:05]Method: POST [09:11:05]URL: /json_proto [09:11:05]Method is POST - this is cgi request [09:11:05]url: /json_proto [09:11:05]query_string will be loaded in cgi processing [09:11:05]execute_cgi json_proto POST (null) [09:11:05]execute_cgi path=json_proto method=POST [09:11:05]POST find Content-Length [09:11:05]Host: 172.17.39.68:8080 [09:11:05]Content-Length: 650 [09:11:05]Content-Type: application/json [09:11:05] [09:11:05]POST finish read [09:11:05]Found Content-Length = 650 [09:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214188", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [09:11:05]execute_script... [09: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 : (3)214188", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [09:11:05]POST & json_proto [09:11:05]process_json_proto [09:11:05]json parsed OK: [09:11:05]protocol is kg_v1.0 [09:11:05]action value=close_receipt [09:11:05]process_action close_receipt [09:11:05]cmd_close_receipt [09:11:05]MH_GetDate [09:11:05]Write to MH i2c: F0 00 00 E9 0C E4 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: F0 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: F0 09 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: F0 09 00 E9 0C 00 AA E7 94 66 EC 7F 94 66 DD [09:11:05]GetLastDocTimeStamp 1721034457 [09:11:05]current date 1721034666 [09:11:05]FM_GetShiftState [09:11:05]SAM_PROTO_GetShiftState [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 13 01 00 [09:11:05]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0E 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 86 67 94 66 00 00 00 00 90 00 66 [09:11:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:11:05]wFMCommunicate OK [09:11:05]SAM_PROTO_GetShiftState done [09:11:05]FM_GetShiftState done [09:11:05]opened in 1721001862 [09:11:05]opened+sec_in_day 1721088262 [09:11:05]quantity*price = 10500 [09:11:05]sum+1 = 10501 [09:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 47 15.07.2024 09:11 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31606 ФПД: 211782902423384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091106&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31606&fm=211782902423384&tin=02508201610067®Number=0000000000098025&sum=10500 0 [09:11:06]StoreToDocumentArchive [09:11:06]shift 370 fd 31606 [09:11:06]save to /storage/0370/doc_00031606 [09:11:06]save last doc name /storage/0370/doc_00031606 to /storage/kkm_last_doc_name [09:11:06]save OK [09:11:06]Clear old archive folders... [09:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:11:06]tlvbuf is 01274220 [09:11:06]SAM_PROTO_ClearQueue [09:11:06]wFMCommunicate request_size=4 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 09 00 00 [09:11:06]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [09:11:06]RAPDU: 90 00 [09:11:06]wFMCommunicate OK [09:11:06]SAM_PROTO_ClearQueue done [09:11:06]KKMCreateOFDPacket [09:11:06]OFDProtocolAddRootSTLVToBuf [09:11:06]FM_MakeSignedData [09:11:06]FM_MakeSignedData [09:11:06]SAM_PROTO_SignData [09:11:06]wFMCommunicate request_size=4 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 0D 01 02 [09:11:06]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [09:11:06]RAPDU: 90 00 [09:11:06]wFMCommunicate OK [09:11:06]wFMCommunicate request_size=255 [09:11:06]MH_SAM_APDU [09:11:06]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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2F 00 00 00 F4 03 04 00 AA E7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [09:11:06]Write to MH i2c: E2 02 01 F9 0C 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2F 00 00 00 F4 03 04 00 AA E7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 71 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [09:11:06]RAPDU: 90 00 [09:11:06]wFMCommunicate OK [09:11:06]wFMCommunicate request_size=41 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 76 7B 00 00 35 04 06 00 C0 9D 8C AB 1F 58 [09:11:06]Write to MH i2c: E2 2C 00 FA 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 76 7B 00 00 35 04 06 00 C0 9D 8C AB 1F 58 00 00 53 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [09:11:06]RAPDU: 90 00 [09:11:06]wFMCommunicate OK [09:11:06]wFMCommunicate request_size=4 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 0D 03 02 [09:11:06]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 0B 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 0B 00 FB 0C 00 FD 2F C7 79 13 11 19 03 90 00 2F [09:11:06]RAPDU: FD 2F C7 79 13 11 19 03 90 00 [09:11:06]wFMCommunicate OK [09:11:06]SAM_PROTO_SignData done [09:11:06]FM_MakeSignedData done [09:11:06]CreateOFDProtocolMessage [09:11:06]wFMCommunicate request_size=4 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 11 00 00 [09:11:06]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 17 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DD [09:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:11:06]wFMCommunicate OK [09:11:06]CreateOFDProtocolMessage done [09:11:06]OFDSenderStorePacket 31606 [09:11:06]StoreOFDPacket docnum=31606 [09:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 05 37 26 01 6D 27 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2F 00 00 00 F4 03 04 00 AA E7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 76 7B 00 00 35 04 06 00 C0 9D 8C AB 1F 58 FD 2F C7 79 13 11 19 03 [09:11:06]CheckFolder [09:11:06]dirname=/storage/ofd_packets [09:11:06]CheckFolder done [09:11:06]ProducePacketName [09:11:06]name=ofd_packets/00031606 [09:11:06]NVStorageSaveData ofd_packets/00031606 [09:11:06]File name is /storage/ofd_packets/00031606 [09:11:06]Write 332 bytes [09:11:06]NVStorageSaveData done [09:11:06]OFDSenderStorePacket done [09:11:06]KKMCreateOFDPacket done [09:11:06]NVStorageSaveData kkm_last_timestamp [09:11:06]File name is /storage/kkm_last_timestamp [09:11:06]Write 4 bytes [09:11:06]NVStorageSaveData done [09:11:06]ExternCall_PrintAddStr [09:11:06]wPrintStart [09:11:06]Write to MH i2c: 01 00 00 FD 0C 09 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [09:11:06]RasterBufferAndPrint [09:11:06]line Счет N : (3)214188 [09:11:06]line ИНН: 02508201610067 [09:11:06]line Контрольно-Кассовый Чек [09:11:06]line ПРОДАЖА [09:11:06]line Товар: 2000034730018 [09:11:06]line Кофе Американо (GABB TRADE) [09:11:06]line 1.000 * 105.00 [09:11:06]line = 105.00 [09:11:06]line НДС 12% НСП 1% [09:11:06]line > о реализуемом товаре [09:11:06]line ИТОГО: 105.00 [09:11:06]line НСП 1% : 0.93 [09:11:06]line НДС 12% : 11.15 [09:11:06]line Наличными: 105.00 [09:11:06]line Безнал.: 0.00 [09:11:06]line Место: АЗС № 140 "Партнер Нефть" [09:11:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:11:06]line СНО: Общий режим [09:11:06]line Чек 47 15.07.2024 09:11 [09:11:06]line Смена: 370 ФФД: 1.0 [09:11:06]line ЗНМ: 0300000189 [09:11:06]line РНМ: 0000000000098025 [09:11:06]line Версия ККМ: 001 [09:11:06]line ФМ: 0000000000965389 [09:11:06]line ФД: 31606 [09:11:06]line ФПД: 211782902423384 [09:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091106&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31606&fm=211782902423384&tin=02508201610067®Number=0000000000098025&sum=10500 [09:11:07]line 0 [09:11:07]OFD Sender: Processing packet 31606 [packets to send 5, broken 4] [09:11:07]ProducePacketName [09:11:07]name=ofd_packets/00031606 [09:11:07]OFD Sender: To server: pG, [09:11:07]CommunicateWithHost lk.salyk.kg:30040 [09:11:07]ConnectInit lk.salyk.kg [09:11:07]written 0, free lines is 4095 [09:11:07]Connected sock=7 [09:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 05 37 26 01 6D 27 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 34 37 33 30 30 31 38 06 04 28 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 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 04 29 00 00 00 00 13 04 06 00 04 29 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 2F 00 00 00 F4 03 04 00 AA E7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 76 7B 00 00 35 04 06 00 C0 9D 8C AB 1F 58 FD 2F C7 79 13 11 19 03 [09:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 59 70 47 00 E8 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 76 7B 00 00 F4 03 04 00 B8 93 94 66 B6 04 01 00 00 B2 09 FB E1 1C 40 0A 44 [09:11:07]CommunicateWithHost err = 0 [09:11:07]CheckOFDResponse [09:11:07]1017 (14) - 77093643461234 [09:11:07]1041 (16) - 0000000000965389 [09:11:07]1040 (4) - 31606 [09:11:07]1012 (4) - 15.07.2024 03:12 [09:11:07]1206 (1) - 0 [09:11:07]OFD Sender: Remove packet 31606 [09:11:07]ProducePacketName [09:11:07]name=ofd_packets/00031606 [09:11:07]NVStorageDeleteData [09:11:07]Write to MH i2c: 01 00 00 26 0D 33 [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: 01 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: 01 07 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 08 0D 4F [09:11:07]RasterBufferAndPrint [09:11:07]line [09:11:07]line [09:11:07]line [09:11:07]line [09:11:07]line [09:11:07]written 0, free lines is 3342 [09:11:07]MH_Cut [09:11:07]Write to MH i2c: D1 01 00 2D 0D 01 0C [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: D1 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: D1 01 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: D1 01 00 2D 0D 00 0B [09:11:07]Write to MH i2c: 01 00 00 2E 0D 3B [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:08]OFD Sender: No OFD packet to send [09:11:08]*** Cut start [09:11:08]*** Partial cut [09:11:08]*** CUTSNS_PIN = 1 [09:11:08]*** CUTSNS_PIN = 0 [09:11:08]*** Brake cut motor [09:11:09]Read from MH i2c: 01 [09:11:09]MH_I2C_Read... [09:11:09]*** Stop cut motor [09:11:09]*** Cut end [09:11:09]Read from MH i2c: 01 07 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [09:11:09]process_action close_receipt done [09:11:09]requested_data is exist [09:11:09]produce_requested_data [09:11:09]requested_item fm.sn is exist - process it [09:11:09]wFMCommunicate request_size=4 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 11 00 00 [09:11:09]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 17 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 17 00 2F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 11 [09:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:11:09]wFMCommunicate OK [09:11:09]requested_item fd.num is exist - process it [09:11:09]SAM_PROTO_GetFieldsCounters [09:11:09]wFMCommunicate request_size=4 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 13 00 00 [09:11:09]Write to MH i2c: E2 08 00 30 0D 80 13 00 00 00 00 00 00 B9 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 62 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 62 00 30 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 76 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 76 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:09]wFMCommunicate OK [09:11:09]SAM_PROTO_GetFieldsCounters done [09:11:09]requested_item shift.num is exist - process it [09:11:09]requested_item shift.opened is exist - process it [09:11:09]req_shift_opened [09:11:09]FM_GetShiftState [09:11:09]SAM_PROTO_GetShiftState [09:11:09]wFMCommunicate request_size=4 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 13 01 00 [09:11:09]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 0E 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 AE [09:11:09]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:11:09]wFMCommunicate OK [09:11:09]SAM_PROTO_GetShiftState done [09:11:09]FM_GetShiftState done [09:11:09]req_shift_opened done [09:11:09]requested_item shift.open_date is exist - process it [09:11:09]req_shift_open_date [09:11:09]req_shift_open_date done [09:11:09]produce_requested_data done [09:11:09]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31606,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:11:09]process_action_free close_receipt [09:11:09]json_value_free [09:11:09]json_value_free done [09:11:09]process_json_proto returns [09:11:09]Send response to host [09:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31606,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:11:09]free response buf [09:11:09]execute_script done [09:11:09]execute_script returns [09:11:09]free content buf [09:11:09]Sock 5.Close socket [09:11:09]Sock 5.Thread stoped [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:30]accept exits with 6 [09:22:30]New connection [09:22:30]New thread 3067415908 created [09:22:30]Thread 3067559268 joined [09:22:30]Waiting for new connection... [09:22:30] Sock 6.Parse request [09:22:30]Sock 6.Check first char [09:22:30]Sock 6.First char is OK [09:22:30]request: POST /json_proto HTTP/1.0 [09:22:30]Method: POST [09:22:30]URL: /json_proto [09:22:30]Method is POST - this is cgi request [09:22:30]url: /json_proto [09:22:30]query_string will be loaded in cgi processing [09:22:30]execute_cgi json_proto POST (null) [09:22:30]execute_cgi path=json_proto method=POST [09:22:30]POST find Content-Length [09:22:30]Host: 172.17.39.68:8080 [09:22:30]Content-Length: 807 [09:22:30]Content-Type: application/json [09:22:30] [09:22:30]POST finish read [09:22:30]Found Content-Length = 807 [09:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214189", "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 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:30]execute_script... [09:22: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)214189", "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 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:30]POST & json_proto [09:22:30]process_json_proto [09:22:30]json parsed OK: [09:22:30]protocol is kg_v1.0 [09:22:30]action value=close_receipt [09:22:30]process_action close_receipt [09:22:30]cmd_close_receipt [09:22:30]MH_GetDate [09:22:30]Write to MH i2c: F0 00 00 32 0D 2E [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: F0 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: F0 09 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: F0 09 00 32 0D 00 57 EA 94 66 EC 7F 94 66 D7 [09:22:30]GetLastDocTimeStamp 1721034666 [09:22:30]current date 1721035351 [09:22:30]FM_GetShiftState [09:22:30]SAM_PROTO_GetShiftState [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 13 01 00 [09:22:30]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 0E 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B0 [09:22:30]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:22:30]wFMCommunicate OK [09:22:30]SAM_PROTO_GetShiftState done [09:22:30]FM_GetShiftState done [09:22:30]opened in 1721001862 [09:22:30]opened+sec_in_day 1721088262 [09:22:30]quantity*price = 13000 [09:22:30]sum+1 = 13001 [09:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 48 15.07.2024 09:22 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31607 ФПД: 184002830560393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092231&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31607&fm=184002830560393&tin=02508201610067®Number=0000000000098025&sum=13000 0 [09:22:31]StoreToDocumentArchive [09:22:31]shift 370 fd 31607 [09:22:31]save to /storage/0370/doc_00031607 [09:22:31]save last doc name /storage/0370/doc_00031607 to /storage/kkm_last_doc_name [09:22:31]save OK [09:22:31]Clear old archive folders... [09:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:22:31]tlvbuf is 012458A0 [09:22:31]SAM_PROTO_ClearQueue [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 09 00 00 [09:22:31]Write to MH i2c: E2 08 00 40 0D 80 09 00 00 00 00 00 00 BF [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [09:22:31]RAPDU: 90 00 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_ClearQueue done [09:22:31]KKMCreateOFDPacket [09:22:31]OFDProtocolAddRootSTLVToBuf [09:22:31]FM_MakeSignedData [09:22:31]FM_MakeSignedData [09:22:31]SAM_PROTO_SignData [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 0D 01 02 [09:22:31]Write to MH i2c: E2 08 00 41 0D 80 0D 01 02 00 00 00 00 C7 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [09:22:31]RAPDU: 90 00 [09:22:31]wFMCommunicate OK [09:22:31]wFMCommunicate request_size=255 [09:22:31]MH_SAM_APDU [09:22:31]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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 57 EA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [09:22:31]Write to MH i2c: E2 02 01 42 0D 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 57 EA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 B3 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [09:22:31]RAPDU: 90 00 [09:22:31]wFMCommunicate OK [09:22:31]wFMCommunicate request_size=41 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 77 7B 00 00 35 04 06 00 A7 59 7F 5A 6C 89 [09:22:31]Write to MH i2c: E2 2C 00 43 0D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 77 7B 00 00 35 04 06 00 A7 59 7F 5A 6C 89 00 00 61 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [09:22:31]RAPDU: 90 00 [09:22:31]wFMCommunicate OK [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 0D 03 02 [09:22:31]Write to MH i2c: E2 08 00 44 0D 80 0D 03 02 00 00 00 00 CC [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0B 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0B 00 44 0D 00 4D ED 25 56 90 77 53 34 90 00 10 [09:22:31]RAPDU: 4D ED 25 56 90 77 53 34 90 00 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_SignData done [09:22:31]FM_MakeSignedData done [09:22:31]CreateOFDProtocolMessage [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 11 00 00 [09:22:31]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 17 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 27 [09:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:22:31]wFMCommunicate OK [09:22:31]CreateOFDProtocolMessage done [09:22:31]OFDSenderStorePacket 31607 [09:22:31]StoreOFDPacket docnum=31607 [09:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 A7 39 26 01 A5 3A 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 57 EA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 77 7B 00 00 35 04 06 00 A7 59 7F 5A 6C 89 4D ED 25 56 90 77 53 34 [09:22:31]CheckFolder [09:22:31]dirname=/storage/ofd_packets [09:22:31]CheckFolder done [09:22:31]ProducePacketName [09:22:31]name=ofd_packets/00031607 [09:22:31]NVStorageSaveData ofd_packets/00031607 [09:22:31]File name is /storage/ofd_packets/00031607 [09:22:31]Write 332 bytes [09:22:31]NVStorageSaveData done [09:22:31]OFDSenderStorePacket done [09:22:31]KKMCreateOFDPacket done [09:22:31]NVStorageSaveData kkm_last_timestamp [09:22:31]File name is /storage/kkm_last_timestamp [09:22:31]Write 4 bytes [09:22:31]NVStorageSaveData done [09:22:31]ExternCall_PrintAddStr [09:22:31]wPrintStart [09:22:31]Write to MH i2c: 01 00 00 46 0D 53 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: 01 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: 01 07 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [09:22:31]RasterBufferAndPrint [09:22:31]line Счет N : (3)214189 [09:22:31]line ИНН: 02508201610067 [09:22:31]line Контрольно-Кассовый Чек [09:22:31]line ПРОДАЖА [09:22:31]line Товар: 2000036220012 [09:22:31]line Кофе Капучино XL(GABB TRADE) [09:22:31]line 1.000 * 130.00 [09:22:31]line = 130.00 [09:22:31]line НДС 12% НСП 1% [09:22:31]line > о реализуемом товаре [09:22:31]line ИТОГО: 130.00 [09:22:31]line НСП 1% : 1.15 [09:22:31]line НДС 12% : 13.80 [09:22:31]line Наличными: 0.00 [09:22:31]line Безнал.: 130.00 [09:22:31]line Место: АЗС № 140 "Партнер Нефть" [09:22:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:22:31]line СНО: Общий режим [09:22:31]line Чек 48 15.07.2024 09:22 [09:22:31]line Смена: 370 ФФД: 1.0 [09:22:31]line ЗНМ: 0300000189 [09:22:31]line РНМ: 0000000000098025 [09:22:31]line Версия ККМ: 001 [09:22:31]line Платежная система: O! деньги [09:22:31]line ФМ: 0000000000965389 [09:22:31]line ФД: 31607 [09:22:31]line ФПД: 184002830560393 [09:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092231&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31607&fm=184002830560393&tin=02508201610067®Number=0000000000098025&sum=13000 [09:22:32]line 0 [09:22:32]OFD Sender: Processing packet 31607 [packets to send 5, broken 4] [09:22:32]ProducePacketName [09:22:32]name=ofd_packets/00031607 [09:22:32]OFD Sender: To server: pG, [09:22:32]CommunicateWithHost lk.salyk.kg:30040 [09:22:32]ConnectInit lk.salyk.kg [09:22:32]written 0, free lines is 4095 [09:22:32]Connected sock=5 [09:22:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 A7 39 26 01 A5 3A 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 57 EA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 77 7B 00 00 35 04 06 00 A7 59 7F 5A 6C 89 4D ED 25 56 90 77 53 34 [09:22:32]Write to MH i2c: 01 00 00 71 0D 7E [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: 01 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: 01 07 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 D5 0C 66 [09:22:32]RasterBufferAndPrint [09:22:32]line [09:22:32]line [09:22:32]line [09:22:32]line [09:22:32]line [09:22:32]written 0, free lines is 3291 [09:22:32]MH_Cut [09:22:32]Write to MH i2c: D1 01 00 78 0D 01 57 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: D1 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: D1 01 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: D1 01 00 78 0D 00 56 [09:22:32]Write to MH i2c: 01 00 00 79 0D 86 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 91 E8 47 00 B8 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 77 7B 00 00 F4 03 04 00 66 96 94 66 B6 04 01 00 00 3A 0C 7D 43 F1 27 77 29 [09:22:33]CommunicateWithHost err = 0 [09:22:33]CheckOFDResponse [09:22:33]1017 (14) - 77093643461234 [09:22:33]1041 (16) - 0000000000965389 [09:22:33]1040 (4) - 31607 [09:22:33]1012 (4) - 15.07.2024 03:24 [09:22:33]1206 (1) - 0 [09:22:33]OFD Sender: Remove packet 31607 [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00031607 [09:22:33]NVStorageDeleteData [09:22:33]*** Cut start [09:22:33]*** Partial cut [09:22:33]*** CUTSNS_PIN = 1 [09:22:33]*** CUTSNS_PIN = 0 [09:22:33]OFD Sender: No OFD packet to send [09:22:33]*** Brake cut motor [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]*** Stop cut motor [09:22:34]*** Cut end [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [09:22:34]process_action close_receipt done [09:22:34]requested_data is exist [09:22:34]produce_requested_data [09:22:34]requested_item fm.sn is exist - process it [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 11 00 00 [09:22:34]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5C [09:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:22:34]wFMCommunicate OK [09:22:34]requested_item fd.num is exist - process it [09:22:34]SAM_PROTO_GetFieldsCounters [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 13 00 00 [09:22:34]Write to MH i2c: E2 08 00 7B 0D 80 13 00 00 00 00 00 00 04 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 62 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 62 00 7B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 77 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 77 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_GetFieldsCounters done [09:22:34]requested_item shift.num is exist - process it [09:22:34]requested_item shift.opened is exist - process it [09:22:34]req_shift_opened [09:22:34]FM_GetShiftState [09:22:34]SAM_PROTO_GetShiftState [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 13 01 00 [09:22:34]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:34]Read from MH i2c: E2 0E 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F9 [09:22:34]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_GetShiftState done [09:22:34]FM_GetShiftState done [09:22:34]req_shift_opened done [09:22:34]requested_item shift.open_date is exist - process it [09:22:34]req_shift_open_date [09:22:34]req_shift_open_date done [09:22:34]produce_requested_data done [09:22:34]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31607,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:22:34]process_action_free close_receipt [09:22:34]json_value_free [09:22:34]json_value_free done [09:22:34]process_json_proto returns [09:22:34]Send response to host [09:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31607,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:22:34]free response buf [09:22:34]execute_script done [09:22:34]execute_script returns [09:22:34]free content buf [09:22:34]Sock 6.Close socket [09:22:34]Sock 6.Thread stoped [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:44]accept exits with 7 [09:31:44]New connection [09:31:44]New thread 3067559268 created [09:31:44]Thread 3067415908 joined [09:31:44]Waiting for new connection... [09:31:44] Sock 7.Parse request [09:31:44]Sock 7.Check first char [09:31:44]Sock 7.First char is OK [09:31:44]request: POST /json_proto HTTP/1.0 [09:31:44]Method: POST [09:31:44]URL: /json_proto [09:31:44]Method is POST - this is cgi request [09:31:44]url: /json_proto [09:31:44]query_string will be loaded in cgi processing [09:31:44]execute_cgi json_proto POST (null) [09:31:44]execute_cgi path=json_proto method=POST [09:31:44]POST find Content-Length [09:31:44]Host: 172.17.39.68:8080 [09:31:44]Content-Length: 684 [09:31:44]Content-Type: application/json [09:31:44] [09:31:44]POST finish read [09:31:44]Found Content-Length = 684 [09:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214190", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:44]execute_script... [09:31: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)214190", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:44]POST & json_proto [09:31:44]process_json_proto [09:31:44]json parsed OK: [09:31:44]protocol is kg_v1.0 [09:31:44]action value=close_receipt [09:31:44]process_action close_receipt [09:31:44]cmd_close_receipt [09:31:44]MH_GetDate [09:31:44]Write to MH i2c: F0 00 00 7D 0D 79 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 09 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 09 00 7D 0D 00 81 EC 94 66 EC 7F 94 66 4E [09:31:44]GetLastDocTimeStamp 1721035351 [09:31:44]current date 1721035905 [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FB [09:31:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]opened in 1721001862 [09:31:44]opened+sec_in_day 1721088262 [09:31:44]quantity*price = 12500 [09:31:44]sum+1 = 12501 [09:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 49 15.07.2024 09:31 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31608 ФПД: 21452946005599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093145&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31608&fm=21452946005599&tin=02508201610067®Number=0000000000098025&sum=12500 0 [09:31:45]StoreToDocumentArchive [09:31:45]shift 370 fd 31608 [09:31:45]save to /storage/0370/doc_00031608 [09:31:45]save last doc name /storage/0370/doc_00031608 to /storage/kkm_last_doc_name [09:31:45]save OK [09:31:45]Clear old archive folders... [09:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=292 [09:31:45]tlvbuf is 01280B10 [09:31:45]SAM_PROTO_ClearQueue [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 09 00 00 [09:31:45]Write to MH i2c: E2 08 00 8B 0D 80 09 00 00 00 00 00 00 0A [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [09:31:45]RAPDU: 90 00 [09:31:45]wFMCommunicate OK [09:31:45]SAM_PROTO_ClearQueue done [09:31:45]KKMCreateOFDPacket [09:31:45]OFDProtocolAddRootSTLVToBuf [09:31:45]FM_MakeSignedData [09:31:45]FM_MakeSignedData [09:31:45]SAM_PROTO_SignData [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 0D 01 02 [09:31:45]Write to MH i2c: E2 08 00 8C 0D 80 0D 01 02 00 00 00 00 12 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [09:31:45]RAPDU: 90 00 [09:31:45]wFMCommunicate OK [09:31:45]wFMCommunicate request_size=255 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 EC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [09:31:45]Write to MH i2c: E2 02 01 8D 0D 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 EC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 E3 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [09:31:45]RAPDU: 90 00 [09:31:45]wFMCommunicate OK [09:31:45]wFMCommunicate request_size=51 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 0D 02 02 2E 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 78 7B 00 00 35 04 06 00 13 82 E7 39 DE 5F [09:31:45]Write to MH i2c: E2 36 00 8E 0D 80 0D 02 02 2E 00 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 78 7B 00 00 35 04 06 00 13 82 E7 39 DE 5F 00 00 92 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [09:31:45]RAPDU: 90 00 [09:31:45]wFMCommunicate OK [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 0D 03 02 [09:31:45]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0B 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0B 00 8F 0D 00 CB 9E 6A 7B 09 23 88 AF 90 00 C9 [09:31:45]RAPDU: CB 9E 6A 7B 09 23 88 AF 90 00 [09:31:45]wFMCommunicate OK [09:31:45]SAM_PROTO_SignData done [09:31:45]FM_MakeSignedData done [09:31:45]CreateOFDProtocolMessage [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 11 00 00 [09:31:45]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 17 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 72 [09:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:31:45]wFMCommunicate OK [09:31:45]CreateOFDProtocolMessage done [09:31:45]OFDSenderStorePacket 31608 [09:31:45]StoreOFDPacket docnum=31608 [09:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 43 D9 30 01 DC CE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 EC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 78 7B 00 00 35 04 06 00 13 82 E7 39 DE 5F CB 9E 6A 7B 09 23 88 AF [09:31:45]CheckFolder [09:31:45]dirname=/storage/ofd_packets [09:31:45]CheckFolder done [09:31:45]ProducePacketName [09:31:45]name=ofd_packets/00031608 [09:31:45]NVStorageSaveData ofd_packets/00031608 [09:31:45]File name is /storage/ofd_packets/00031608 [09:31:45]Write 342 bytes [09:31:45]NVStorageSaveData done [09:31:45]OFDSenderStorePacket done [09:31:45]KKMCreateOFDPacket done [09:31:45]NVStorageSaveData kkm_last_timestamp [09:31:45]File name is /storage/kkm_last_timestamp [09:31:45]Write 4 bytes [09:31:45]NVStorageSaveData done [09:31:45]ExternCall_PrintAddStr [09:31:45]wPrintStart [09:31:45]Write to MH i2c: 01 00 00 91 0D 9E [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [09:31:45]RasterBufferAndPrint [09:31:45]line Счет N : (3)214190 [09:31:45]line ИНН: 02508201610067 [09:31:45]line Контрольно-Кассовый Чек [09:31:45]line ПРОДАЖА [09:31:45]line Товар: 4870202521230 [09:31:45]line Напиток MAXI чай 1,2 черн.лимон [09:31:45]line 1.000 * 125.00 [09:31:45]line = 125.00 [09:31:45]line НДС 12% НСП 1% [09:31:45]line > о реализуемом товаре [09:31:45]line ИТОГО: 125.00 [09:31:45]line НСП 1% : 1.11 [09:31:45]line НДС 12% : 13.27 [09:31:45]line Наличными: 125.00 [09:31:45]line Безнал.: 0.00 [09:31:45]line Место: АЗС № 140 "Партнер Нефть" [09:31:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:31:45]line СНО: Общий режим [09:31:45]line Чек 49 15.07.2024 09:31 [09:31:45]line Смена: 370 ФФД: 1.0 [09:31:45]line ЗНМ: 0300000189 [09:31:45]line РНМ: 0000000000098025 [09:31:45]line Версия ККМ: 001 [09:31:45]line ФМ: 0000000000965389 [09:31:45]line ФД: 31608 [09:31:45]line ФПД: 21452946005599 [09:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093145&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31608&fm=21452946005599&tin=02508201610067®Number=0000000000098025&sum=12500 [09:31:46]line 0 [09:31:46]OFD Sender: Processing packet 31608 [packets to send 5, broken 4] [09:31:46]ProducePacketName [09:31:46]name=ofd_packets/00031608 [09:31:46]OFD Sender: To server: pG, [09:31:46]CommunicateWithHost lk.salyk.kg:30040 [09:31:46]ConnectInit lk.salyk.kg [09:31:46]written 0, free lines is 4095 [09:31:46]Connected sock=6 [09:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 43 D9 30 01 DC CE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 EC 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 78 7B 00 00 35 04 06 00 13 82 E7 39 DE 5F CB 9E 6A 7B 09 23 88 AF [09:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C6 FB 47 00 83 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 78 7B 00 00 F4 03 04 00 8F 98 94 66 B6 04 01 00 00 40 41 D7 44 8B BE 6C A0 [09:31:46]CommunicateWithHost err = 0 [09:31:46]CheckOFDResponse [09:31:46]1017 (14) - 77093643461234 [09:31:46]1041 (16) - 0000000000965389 [09:31:46]1040 (4) - 31608 [09:31:46]1012 (4) - 15.07.2024 03:33 [09:31:46]1206 (1) - 0 [09:31:46]OFD Sender: Remove packet 31608 [09:31:46]ProducePacketName [09:31:46]name=ofd_packets/00031608 [09:31:46]NVStorageDeleteData [09:31:46]Write to MH i2c: 01 00 00 BA 0D C7 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 07 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 F6 0C D0 [09:31:46]RasterBufferAndPrint [09:31:46]line [09:31:46]line [09:31:46]line [09:31:46]line [09:31:46]line [09:31:46]written 0, free lines is 3326 [09:31:46]MH_Cut [09:31:46]Write to MH i2c: D1 01 00 C1 0D 01 A0 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: D1 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: D1 01 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: D1 01 00 C1 0D 00 9F [09:31:46]Write to MH i2c: 01 00 00 C2 0D CF [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:47]OFD Sender: No OFD packet to send [09:31:47]*** Cut start [09:31:47]*** Partial cut [09:31:47]*** CUTSNS_PIN = 1 [09:31:47]*** CUTSNS_PIN = 0 [09:31:47]*** Brake cut motor [09:31:48]Read from MH i2c: 01 [09:31:48]MH_I2C_Read... [09:31:48]*** Stop cut motor [09:31:48]*** Cut end [09:31:48]Read from MH i2c: 01 07 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 FF 0F E4 [09:31:48]process_action close_receipt done [09:31:48]requested_data is exist [09:31:48]produce_requested_data [09:31:48]requested_item fm.sn is exist - process it [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 11 00 00 [09:31:48]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 17 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A5 [09:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:31:48]wFMCommunicate OK [09:31:48]requested_item fd.num is exist - process it [09:31:48]SAM_PROTO_GetFieldsCounters [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 13 00 00 [09:31:48]Write to MH i2c: E2 08 00 C4 0D 80 13 00 00 00 00 00 00 4D [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 62 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 62 00 C4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 78 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [09:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 78 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_GetFieldsCounters done [09:31:48]requested_item shift.num is exist - process it [09:31:48]requested_item shift.opened is exist - process it [09:31:48]req_shift_opened [09:31:48]FM_GetShiftState [09:31:48]SAM_PROTO_GetShiftState [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 13 01 00 [09:31:48]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 0E 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 42 [09:31:48]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_GetShiftState done [09:31:48]FM_GetShiftState done [09:31:48]req_shift_opened done [09:31:48]requested_item shift.open_date is exist - process it [09:31:48]req_shift_open_date [09:31:48]req_shift_open_date done [09:31:48]produce_requested_data done [09:31:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31608,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:31:48]process_action_free close_receipt [09:31:48]json_value_free [09:31:48]json_value_free done [09:31:48]process_json_proto returns [09:31:48]Send response to host [09:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31608,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:31:48]free response buf [09:31:48]execute_script done [09:31:48]execute_script returns [09:31:48]free content buf [09:31:48]Sock 7.Close socket [09:31:48]Sock 7.Thread stoped [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37: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:15]accept exits with 5 [09:40:15]New connection [09:40:15]New thread 3067415908 created [09:40:15]Thread 3067559268 joined [09:40:15]Waiting for new connection... [09:40:15] Sock 5.Parse request [09:40:15]Sock 5.Check first char [09:40:15]Sock 5.First char is OK [09:40:15]request: POST /json_proto HTTP/1.0 [09:40:15]Method: POST [09:40:15]URL: /json_proto [09:40:15]Method is POST - this is cgi request [09:40:15]url: /json_proto [09:40:15]query_string will be loaded in cgi processing [09:40:15]execute_cgi json_proto POST (null) [09:40:15]execute_cgi path=json_proto method=POST [09:40:15]POST find Content-Length [09:40:15]Host: 172.17.39.68:8080 [09:40:15]Content-Length: 669 [09:40:15]Content-Type: application/json [09:40:15] [09:40:15]POST finish read [09:40:15]Found Content-Length = 669 [09:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214191", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]execute_script... [09:40: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)214191", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]POST & json_proto [09:40:15]process_json_proto [09:40:15]json parsed OK: [09:40:15]protocol is kg_v1.0 [09:40:15]action value=close_receipt [09:40:15]process_action close_receipt [09:40:15]cmd_close_receipt [09:40:15]MH_GetDate [09:40:15]Write to MH i2c: F0 00 00 C6 0D C2 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 09 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 09 00 C6 0D 00 80 EE 94 66 EC 7F 94 66 98 [09:40:15]GetLastDocTimeStamp 1721035905 [09:40:15]current date 1721036416 [09:40:15]FM_GetShiftState [09:40:15]SAM_PROTO_GetShiftState [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 13 01 00 [09:40:15]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 86 67 94 66 00 00 00 00 90 00 44 [09:40:15]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_GetShiftState done [09:40:15]FM_GetShiftState done [09:40:15]opened in 1721001862 [09:40:15]opened+sec_in_day 1721088262 [09:40:15]quantity*price = 11000 [09:40:15]sum+1 = 11001 [09:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 50 15.07.2024 09:40 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31609 ФПД: 81002167065232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094017&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31609&fm=81002167065232&tin=02508201610067®Number=0000000000098025&sum=11000 0 [09:40:16]StoreToDocumentArchive [09:40:16]shift 370 fd 31609 [09:40:16]save to /storage/0370/doc_00031609 [09:40:16]save last doc name /storage/0370/doc_00031609 to /storage/kkm_last_doc_name [09:40:16]save OK [09:40:16]Clear old archive folders... [09:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:40:16]tlvbuf is 01286500 [09:40:16]SAM_PROTO_ClearQueue [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 09 00 00 [09:40:16]Write to MH i2c: E2 08 00 D4 0D 80 09 00 00 00 00 00 00 53 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_ClearQueue done [09:40:16]KKMCreateOFDPacket [09:40:16]OFDProtocolAddRootSTLVToBuf [09:40:16]FM_MakeSignedData [09:40:16]FM_MakeSignedData [09:40:16]SAM_PROTO_SignData [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 01 02 [09:40:16]Write to MH i2c: E2 08 00 D5 0D 80 0D 01 02 00 00 00 00 5B [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=255 [09:40:16]MH_SAM_APDU [09:40:16]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 81 EE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:40:16]Write to MH i2c: E2 02 01 D6 0D 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 81 EE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 83 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=52 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 79 7B 00 00 35 04 06 00 49 AB C9 64 DA 90 [09:40:16]Write to MH i2c: E2 37 00 D7 0D 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 79 7B 00 00 35 04 06 00 49 AB C9 64 DA 90 00 00 A7 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 03 02 [09:40:16]Write to MH i2c: E2 08 00 D8 0D 80 0D 03 02 00 00 00 00 60 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 D8 0D 00 C4 E3 15 25 85 62 3A B0 90 00 13 [09:40:16]RAPDU: C4 E3 15 25 85 62 3A B0 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_SignData done [09:40:16]FM_MakeSignedData done [09:40:16]CreateOFDProtocolMessage [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 11 00 00 [09:40:16]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 D9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BB [09:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:40:17]wFMCommunicate OK [09:40:17]CreateOFDProtocolMessage done [09:40:17]OFDSenderStorePacket 31609 [09:40:17]StoreOFDPacket docnum=31609 [09:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 65 4A 31 01 0E 12 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 81 EE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 79 7B 00 00 35 04 06 00 49 AB C9 64 DA 90 C4 E3 15 25 85 62 3A B0 [09:40:17]CheckFolder [09:40:17]dirname=/storage/ofd_packets [09:40:17]CheckFolder done [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00031609 [09:40:17]NVStorageSaveData ofd_packets/00031609 [09:40:17]File name is /storage/ofd_packets/00031609 [09:40:17]Write 343 bytes [09:40:17]NVStorageSaveData done [09:40:17]OFDSenderStorePacket done [09:40:17]KKMCreateOFDPacket done [09:40:17]NVStorageSaveData kkm_last_timestamp [09:40:17]File name is /storage/kkm_last_timestamp [09:40:17]Write 4 bytes [09:40:17]NVStorageSaveData done [09:40:17]ExternCall_PrintAddStr [09:40:17]wPrintStart [09:40:17]Write to MH i2c: 01 00 00 DA 0D E7 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 DA 0D 00 00 00 00 00 FF 0F FC [09:40:17]RasterBufferAndPrint [09:40:17]line Счет N : (3)214191 [09:40:17]line ИНН: 02508201610067 [09:40:17]line Контрольно-Кассовый Чек [09:40:17]line ПРОДАЖА [09:40:17]line Товар: 4870022003305 [09:40:17]line Напиток Gorilla эн нат ж/б 0,5/0,45л [09:40:17]line 1.000 * 110.00 [09:40:17]line = 110.00 [09:40:17]line НДС 12% НСП 1% [09:40:17]line > о реализуемом товаре [09:40:17]line ИТОГО: 110.00 [09:40:17]line НСП 1% : 0.97 [09:40:17]line НДС 12% : 11.68 [09:40:17]line Наличными: 110.00 [09:40:17]line Безнал.: 0.00 [09:40:17]line Место: АЗС № 140 "Партнер Нефть" [09:40:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:40:17]line СНО: Общий режим [09:40:17]line Чек 50 15.07.2024 09:40 [09:40:17]line Смена: 370 ФФД: 1.0 [09:40:17]line ЗНМ: 0300000189 [09:40:17]line РНМ: 0000000000098025 [09:40:17]line Версия ККМ: 001 [09:40:17]line ФМ: 0000000000965389 [09:40:17]line ФД: 31609 [09:40:17]line ФПД: 81002167065232 [09:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094017&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31609&fm=81002167065232&tin=02508201610067®Number=0000000000098025&sum=11000 [09:40:17]line 0 [09:40:17]written 0, free lines is 4095 [09:40:17]OFD Sender: Processing packet 31609 [packets to send 5, broken 4] [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00031609 [09:40:17]OFD Sender: To server: pG, [09:40:17]CommunicateWithHost lk.salyk.kg:30040 [09:40:17]ConnectInit lk.salyk.kg [09:40:17]Connected sock=7 [09:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 65 4A 31 01 0E 12 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 81 EE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 79 7B 00 00 35 04 06 00 49 AB C9 64 DA 90 C4 E3 15 25 85 62 3A B0 [09:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 47 26 47 00 70 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 79 7B 00 00 F4 03 04 00 8E 9A 94 66 B6 04 01 00 00 6B D5 4A D6 81 CD 46 36 [09:40:17]CommunicateWithHost err = 0 [09:40:17]CheckOFDResponse [09:40:17]1017 (14) - 77093643461234 [09:40:17]1041 (16) - 0000000000965389 [09:40:17]1040 (4) - 31609 [09:40:17]1012 (4) - 15.07.2024 03:42 [09:40:17]1206 (1) - 0 [09:40:17]OFD Sender: Remove packet 31609 [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00031609 [09:40:17]NVStorageDeleteData [09:40:17]Write to MH i2c: 01 00 00 03 0E 11 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 03 0E 00 00 00 00 00 F6 0C 1A [09:40:17]RasterBufferAndPrint [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]written 0, free lines is 3324 [09:40:17]MH_Cut [09:40:17]Write to MH i2c: D1 01 00 0A 0E 01 EA [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 0A 0E 00 E9 [09:40:17]Write to MH i2c: 01 00 00 0B 0E 19 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]OFD Sender: No OFD packet to send [09:40:18]*** Cut start [09:40:18]*** Partial cut [09:40:18]*** CUTSNS_PIN = 1 [09:40:18]*** CUTSNS_PIN = 0 [09:40:18]*** Brake cut motor [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]*** Stop cut motor [09:40:18]*** Cut end [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 FF 0F 2E [09:40:18]process_action close_receipt done [09:40:18]requested_data is exist [09:40:18]produce_requested_data [09:40:18]requested_item fm.sn is exist - process it [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 0C 0E 80 11 00 00 00 00 00 00 94 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 0C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EF [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:40:18]wFMCommunicate OK [09:40:18]requested_item fd.num is exist - process it [09:40:18]SAM_PROTO_GetFieldsCounters [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 00 00 [09:40:18]Write to MH i2c: E2 08 00 0D 0E 80 13 00 00 00 00 00 00 97 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 0D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 79 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 79 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetFieldsCounters done [09:40:19]requested_item shift.num is exist - process it [09:40:19]requested_item shift.opened is exist - process it [09:40:19]req_shift_opened [09:40:19]FM_GetShiftState [09:40:19]SAM_PROTO_GetShiftState [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 01 00 [09:40:19]Write to MH i2c: E2 08 00 0E 0E 80 13 01 00 00 00 00 00 99 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 0E 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8C [09:40:19]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetShiftState done [09:40:19]FM_GetShiftState done [09:40:19]req_shift_opened done [09:40:19]requested_item shift.open_date is exist - process it [09:40:19]req_shift_open_date [09:40:19]req_shift_open_date done [09:40:19]produce_requested_data done [09:40:19]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31609,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [09:40:19]process_action_free close_receipt [09:40:19]json_value_free [09:40:19]json_value_free done [09:40:19]process_json_proto returns [09:40:19]Send response to host [09:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31609,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [09:40:19]free response buf [09:40:19]execute_script done [09:40:19]execute_script returns [09:40:19]free content buf [09:40:19]Sock 5.Close socket [09:40:19]Sock 5.Thread stoped [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:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:44]accept exits with 6 [10:04:44]New connection [10:04:44]New thread 3067559268 created [10:04:44]Thread 3067415908 joined [10:04:44]Waiting for new connection... [10:04:44] Sock 6.Parse request [10:04:44]Sock 6.Check first char [10:04:44]Sock 6.First char is OK [10:04:44]request: POST /json_proto HTTP/1.0 [10:04:44]Method: POST [10:04:44]URL: /json_proto [10:04:44]Method is POST - this is cgi request [10:04:44]url: /json_proto [10:04:44]query_string will be loaded in cgi processing [10:04:44]execute_cgi json_proto POST (null) [10:04:44]execute_cgi path=json_proto method=POST [10:04:44]POST find Content-Length [10:04:44]Host: 172.17.39.68:8080 [10:04:44]Content-Length: 654 [10:04:44]Content-Type: application/json [10:04:44] [10:04:44]POST finish read [10:04:44]Found Content-Length = 654 [10:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214192", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [10:04:44]execute_script... [10:04: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)214192", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [10:04:44]POST & json_proto [10:04:44]process_json_proto [10:04:44]json parsed OK: [10:04:44]protocol is kg_v1.0 [10:04:44]action value=close_receipt [10:04:44]process_action close_receipt [10:04:44]cmd_close_receipt [10:04:44]MH_GetDate [10:04:44]Write to MH i2c: F0 00 00 0F 0E 0C [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: F0 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: F0 09 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: F0 09 00 0F 0E 00 3D F4 94 66 EC 7F 94 66 A5 [10:04:44]GetLastDocTimeStamp 1721036417 [10:04:44]current date 1721037885 [10:04:44]FM_GetShiftState [10:04:44]SAM_PROTO_GetShiftState [10:04:44]wFMCommunicate request_size=4 [10:04:44]MH_SAM_APDU [10:04:44]CAPDU: 80 13 01 00 [10:04:44]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:44]Read from MH i2c: E2 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 0E 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8E [10:04:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:04:44]wFMCommunicate OK [10:04:44]SAM_PROTO_GetShiftState done [10:04:44]FM_GetShiftState done [10:04:44]opened in 1721001862 [10:04:44]opened+sec_in_day 1721088262 [10:04:44]quantity*price = 9500 [10:04:44]sum+1 = 9501 [10:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 51 15.07.2024 10:04 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31610 ФПД: 95585817619576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100445&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31610&fm=95585817619576&tin=02508201610067®Number=0000000000098025&sum=9500 0 [10:04:45]StoreToDocumentArchive [10:04:45]shift 370 fd 31610 [10:04:45]save to /storage/0370/doc_00031610 [10:04:45]save last doc name /storage/0370/doc_00031610 to /storage/kkm_last_doc_name [10:04:45]save OK [10:04:45]Clear old archive folders... [10:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:04:45]tlvbuf is 01274B30 [10:04:45]SAM_PROTO_ClearQueue [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 09 00 00 [10:04:45]Write to MH i2c: E2 08 00 1D 0E 80 09 00 00 00 00 00 00 9D [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [10:04:45]RAPDU: 90 00 [10:04:45]wFMCommunicate OK [10:04:45]SAM_PROTO_ClearQueue done [10:04:45]KKMCreateOFDPacket [10:04:45]OFDProtocolAddRootSTLVToBuf [10:04:45]FM_MakeSignedData [10:04:45]FM_MakeSignedData [10:04:45]SAM_PROTO_SignData [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 0D 01 02 [10:04:45]Write to MH i2c: E2 08 00 1E 0E 80 0D 01 02 00 00 00 00 A5 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [10:04:45]RAPDU: 90 00 [10:04:45]wFMCommunicate OK [10:04:45]wFMCommunicate request_size=255 [10:04:45]MH_SAM_APDU [10:04:45]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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 33 00 00 00 F4 03 04 00 3D F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:04:45]Write to MH i2c: E2 02 01 1F 0E 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 33 00 00 00 F4 03 04 00 3D F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 16 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [10:04:45]RAPDU: 90 00 [10:04:45]wFMCommunicate OK [10:04:45]wFMCommunicate request_size=52 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7A 7B 00 00 35 04 06 00 56 EF 4E B4 6C 78 [10:04:45]Write to MH i2c: E2 37 00 20 0E 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7A 7B 00 00 35 04 06 00 56 EF 4E B4 6C 78 00 00 92 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [10:04:45]RAPDU: 90 00 [10:04:45]wFMCommunicate OK [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 0D 03 02 [10:04:45]Write to MH i2c: E2 08 00 21 0E 80 0D 03 02 00 00 00 00 AA [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0B 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0B 00 21 0E 00 AE 06 3A 41 CA 85 B8 8E 90 00 6F [10:04:45]RAPDU: AE 06 3A 41 CA 85 B8 8E 90 00 [10:04:45]wFMCommunicate OK [10:04:45]SAM_PROTO_SignData done [10:04:45]FM_MakeSignedData done [10:04:45]CreateOFDProtocolMessage [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 11 00 00 [10:04:45]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 17 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [10:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:04:45]wFMCommunicate OK [10:04:45]CreateOFDProtocolMessage done [10:04:45]OFDSenderStorePacket 31610 [10:04:45]StoreOFDPacket docnum=31610 [10:04:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 CC 1F 31 01 C5 18 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 33 00 00 00 F4 03 04 00 3D F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7A 7B 00 00 35 04 06 00 56 EF 4E B4 6C 78 AE 06 3A 41 CA 85 B8 8E [10:04:45]CheckFolder [10:04:45]dirname=/storage/ofd_packets [10:04:45]CheckFolder done [10:04:45]ProducePacketName [10:04:45]name=ofd_packets/00031610 [10:04:45]NVStorageSaveData ofd_packets/00031610 [10:04:45]File name is /storage/ofd_packets/00031610 [10:04:45]Write 343 bytes [10:04:45]NVStorageSaveData done [10:04:45]OFDSenderStorePacket done [10:04:45]KKMCreateOFDPacket done [10:04:45]NVStorageSaveData kkm_last_timestamp [10:04:45]File name is /storage/kkm_last_timestamp [10:04:45]Write 4 bytes [10:04:45]NVStorageSaveData done [10:04:45]ExternCall_PrintAddStr [10:04:45]wPrintStart [10:04:45]Write to MH i2c: 01 00 00 23 0E 31 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: 01 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: 01 07 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [10:04:45]RasterBufferAndPrint [10:04:45]line Счет N : (3)214192 [10:04:45]line ИНН: 02508201610067 [10:04:45]line Контрольно-Кассовый Чек [10:04:45]line ПРОДАЖА [10:04:45]line Товар: 4700000480050 [10:04:45]line Напиток Nitro Energy эн green ж/б 0,45л [10:04:45]line 1.000 * 95.00 [10:04:45]line = 95.00 [10:04:45]line НДС 12% НСП 1% [10:04:45]line > о реализуемом товаре [10:04:45]line ИТОГО: 95.00 [10:04:45]line НСП 1% : 0.84 [10:04:45]line НДС 12% : 10.09 [10:04:45]line Наличными: 95.00 [10:04:45]line Безнал.: 0.00 [10:04:45]line Место: АЗС № 140 "Партнер Нефть" [10:04:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:04:45]line СНО: Общий режим [10:04:45]line Чек 51 15.07.2024 10:04 [10:04:45]line Смена: 370 ФФД: 1.0 [10:04:45]line ЗНМ: 0300000189 [10:04:45]line РНМ: 0000000000098025 [10:04:45]line Версия ККМ: 001 [10:04:45]line ФМ: 0000000000965389 [10:04:46]line ФД: 31610 [10:04:46]line ФПД: 95585817619576 [10:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100445&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31610&fm=95585817619576&tin=02508201610067®Number=0000000000098025&sum=9500 [10:04:46]line 0 [10:04:46]OFD Sender: Processing packet 31610 [packets to send 5, broken 4] [10:04:46]ProducePacketName [10:04:46]name=ofd_packets/00031610 [10:04:46]OFD Sender: To server: pG, [10:04:46]CommunicateWithHost lk.salyk.kg:30040 [10:04:46]ConnectInit lk.salyk.kg [10:04:46]written 0, free lines is 4095 [10:04:46]Connected sock=7 [10:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 CC 1F 31 01 C5 18 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 33 00 00 00 F4 03 04 00 3D F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7A 7B 00 00 35 04 06 00 56 EF 4E B4 6C 78 AE 06 3A 41 CA 85 B8 8E [10:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FD 42 47 00 0F 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7A 7B 00 00 F4 03 04 00 4B A0 94 66 B6 04 01 00 00 98 E4 4E 30 EF E4 48 86 [10:04:46]CommunicateWithHost err = 0 [10:04:46]CheckOFDResponse [10:04:46]1017 (14) - 77093643461234 [10:04:46]1041 (16) - 0000000000965389 [10:04:46]1040 (4) - 31610 [10:04:46]1012 (4) - 15.07.2024 04:06 [10:04:46]1206 (1) - 0 [10:04:46]OFD Sender: Remove packet 31610 [10:04:46]ProducePacketName [10:04:46]name=ofd_packets/00031610 [10:04:46]NVStorageDeleteData [10:04:46]Write to MH i2c: 01 00 00 4C 0E 5A [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: 01 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: 01 07 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 E4 0C 51 [10:04:46]RasterBufferAndPrint [10:04:46]line [10:04:46]line [10:04:46]line [10:04:46]line [10:04:46]line [10:04:46]written 0, free lines is 3307 [10:04:46]MH_Cut [10:04:46]Write to MH i2c: D1 01 00 53 0E 01 33 [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: D1 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: D1 01 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: D1 01 00 53 0E 00 32 [10:04:46]Write to MH i2c: 01 00 00 54 0E 62 [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]OFD Sender: No OFD packet to send [10:04:47]*** Cut start [10:04:47]*** Partial cut [10:04:47]*** CUTSNS_PIN = 1 [10:04:47]*** CUTSNS_PIN = 0 [10:04:47]*** Brake cut motor [10:04:47]Read from MH i2c: 01 [10:04:47]MH_I2C_Read... [10:04:47]*** Stop cut motor [10:04:47]*** Cut end [10:04:47]Read from MH i2c: 01 07 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 FF 0F 77 [10:04:47]process_action close_receipt done [10:04:47]requested_data is exist [10:04:47]produce_requested_data [10:04:47]requested_item fm.sn is exist - process it [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 11 00 00 [10:04:47]Write to MH i2c: E2 08 00 55 0E 80 11 00 00 00 00 00 00 DD [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 17 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 17 00 55 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 38 [10:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:04:48]wFMCommunicate OK [10:04:48]requested_item fd.num is exist - process it [10:04:48]SAM_PROTO_GetFieldsCounters [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 13 00 00 [10:04:48]Write to MH i2c: E2 08 00 56 0E 80 13 00 00 00 00 00 00 E0 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 62 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 62 00 56 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:04:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:48]wFMCommunicate OK [10:04:48]SAM_PROTO_GetFieldsCounters done [10:04:48]requested_item shift.num is exist - process it [10:04:48]requested_item shift.opened is exist - process it [10:04:48]req_shift_opened [10:04:48]FM_GetShiftState [10:04:48]SAM_PROTO_GetShiftState [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 13 01 00 [10:04:48]Write to MH i2c: E2 08 00 57 0E 80 13 01 00 00 00 00 00 E2 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 0E 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 0E 00 57 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 D5 [10:04:48]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:04:48]wFMCommunicate OK [10:04:48]SAM_PROTO_GetShiftState done [10:04:48]FM_GetShiftState done [10:04:48]req_shift_opened done [10:04:48]requested_item shift.open_date is exist - process it [10:04:48]req_shift_open_date [10:04:48]req_shift_open_date done [10:04:48]produce_requested_data done [10:04:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31610,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:04:48]process_action_free close_receipt [10:04:48]json_value_free [10:04:48]json_value_free done [10:04:48]process_json_proto returns [10:04:48]Send response to host [10:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31610,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:04:48]free response buf [10:04:48]execute_script done [10:04:48]execute_script returns [10:04:48]free content buf [10:04:48]Sock 6.Close socket [10:04:48]Sock 6.Thread stoped [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:00]accept exits with 5 [10:06:00]New connection [10:06:00]New thread 3067415908 created [10:06:00]Thread 3067559268 joined [10:06:00]Waiting for new connection... [10:06:00] Sock 5.Parse request [10:06:00]Sock 5.Check first char [10:06:00]Sock 5.First char is OK [10:06:00]request: POST /json_proto HTTP/1.0 [10:06:00]Method: POST [10:06:00]URL: /json_proto [10:06:00]Method is POST - this is cgi request [10:06:00]url: /json_proto [10:06:00]query_string will be loaded in cgi processing [10:06:00]execute_cgi json_proto POST (null) [10:06:00]execute_cgi path=json_proto method=POST [10:06:00]POST find Content-Length [10:06:00]Host: 172.17.39.68:8080 [10:06:00]Content-Length: 789 [10:06:00]Content-Type: application/json [10:06:00] [10:06:00]POST finish read [10:06:00]Found Content-Length = 789 [10:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214193", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:00]execute_script... [10:06: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)214193", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:00]POST & json_proto [10:06:00]process_json_proto [10:06:00]json parsed OK: [10:06:00]protocol is kg_v1.0 [10:06:00]action value=close_receipt [10:06:00]process_action close_receipt [10:06:00]cmd_close_receipt [10:06:00]MH_GetDate [10:06:00]Write to MH i2c: F0 00 00 58 0E 55 [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: F0 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: F0 09 00 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: F0 09 00 58 0E 00 89 F4 94 66 EC 7F 94 66 3A [10:06:00]GetLastDocTimeStamp 1721037885 [10:06:00]current date 1721037961 [10:06:00]FM_GetShiftState [10:06:00]SAM_PROTO_GetShiftState [10:06:00]wFMCommunicate request_size=4 [10:06:00]MH_SAM_APDU [10:06:00]CAPDU: 80 13 01 00 [10:06:00]Write to MH i2c: E2 08 00 59 0E 80 13 01 00 00 00 00 00 E4 [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:00]Read from MH i2c: E2 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: E2 0E 00 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: E2 0E 00 59 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 D7 [10:06:00]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:06:00]wFMCommunicate OK [10:06:00]SAM_PROTO_GetShiftState done [10:06:00]FM_GetShiftState done [10:06:00]opened in 1721001862 [10:06:00]opened+sec_in_day 1721088262 [10:06:00]quantity*price = 13000 [10:06:00]sum+1 = 13001 [10:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 52 15.07.2024 10:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31611 ФПД: 174867695857312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100601&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31611&fm=174867695857312&tin=02508201610067®Number=0000000000098025&sum=13000 0 [10:06:01]StoreToDocumentArchive [10:06:01]shift 370 fd 31611 [10:06:01]save to /storage/0370/doc_00031611 [10:06:01]save last doc name /storage/0370/doc_00031611 to /storage/kkm_last_doc_name [10:06:01]save OK [10:06:01]Clear old archive folders... [10:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:06:01]tlvbuf is 012863E0 [10:06:01]SAM_PROTO_ClearQueue [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 09 00 00 [10:06:01]Write to MH i2c: E2 08 00 66 0E 80 09 00 00 00 00 00 00 E6 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [10:06:01]RAPDU: 90 00 [10:06:01]wFMCommunicate OK [10:06:01]SAM_PROTO_ClearQueue done [10:06:01]KKMCreateOFDPacket [10:06:01]OFDProtocolAddRootSTLVToBuf [10:06:01]FM_MakeSignedData [10:06:01]FM_MakeSignedData [10:06:01]SAM_PROTO_SignData [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 0D 01 02 [10:06:01]Write to MH i2c: E2 08 00 67 0E 80 0D 01 02 00 00 00 00 EE [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [10:06:01]RAPDU: 90 00 [10:06:01]wFMCommunicate OK [10:06:01]wFMCommunicate request_size=255 [10:06:01]MH_SAM_APDU [10:06:01]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 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [10:06:01]Write to MH i2c: E2 02 01 68 0E 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 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 26 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [10:06:01]RAPDU: 90 00 [10:06:01]wFMCommunicate OK [10:06:01]wFMCommunicate request_size=35 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7B 7B 00 00 35 04 06 00 9F 0A 8E E4 EE A0 [10:06:01]Write to MH i2c: E2 26 00 69 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7B 7B 00 00 35 04 06 00 9F 0A 8E E4 EE A0 00 00 8B [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [10:06:01]RAPDU: 90 00 [10:06:01]wFMCommunicate OK [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 0D 03 02 [10:06:01]Write to MH i2c: E2 08 00 6A 0E 80 0D 03 02 00 00 00 00 F3 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 0B 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 0B 00 6A 0E 00 C8 42 2D DF 06 EA 8E 03 90 00 8B [10:06:01]RAPDU: C8 42 2D DF 06 EA 8E 03 90 00 [10:06:01]wFMCommunicate OK [10:06:01]SAM_PROTO_SignData done [10:06:01]FM_MakeSignedData done [10:06:01]CreateOFDProtocolMessage [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 11 00 00 [10:06:01]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 17 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4E [10:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:06:01]wFMCommunicate OK [10:06:01]CreateOFDProtocolMessage done [10:06:01]OFDSenderStorePacket 31611 [10:06:01]StoreOFDPacket docnum=31611 [10:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 AB 5A 20 01 74 0F 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 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7B 7B 00 00 35 04 06 00 9F 0A 8E E4 EE A0 C8 42 2D DF 06 EA 8E 03 [10:06:01]CheckFolder [10:06:01]dirname=/storage/ofd_packets [10:06:01]CheckFolder done [10:06:01]ProducePacketName [10:06:01]name=ofd_packets/00031611 [10:06:01]NVStorageSaveData ofd_packets/00031611 [10:06:01]File name is /storage/ofd_packets/00031611 [10:06:01]Write 326 bytes [10:06:01]NVStorageSaveData done [10:06:01]OFDSenderStorePacket done [10:06:01]KKMCreateOFDPacket done [10:06:01]NVStorageSaveData kkm_last_timestamp [10:06:01]File name is /storage/kkm_last_timestamp [10:06:01]Write 4 bytes [10:06:01]NVStorageSaveData done [10:06:01]ExternCall_PrintAddStr [10:06:01]wPrintStart [10:06:01]Write to MH i2c: 01 00 00 6C 0E 7A [10:06:01]OFD Sender: Processing packet 31611 [packets to send 5, broken 4] [10:06:01]ProducePacketName [10:06:01]name=ofd_packets/00031611 [10:06:01]OFD Sender: To server: pG, [10:06:01]CommunicateWithHost lk.salyk.kg:30040 [10:06:01]ConnectInit lk.salyk.kg [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: 01 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: 01 07 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [10:06:01]RasterBufferAndPrint [10:06:01]line Счет N : (3)214193 [10:06:01]line ИНН: 02508201610067 [10:06:01]line Контрольно-Кассовый Чек [10:06:01]line ПРОДАЖА [10:06:01]line Товар: 2000036230011 [10:06:01]line Кофе Латте XL(GABB TRADE) [10:06:01]line 1.000 * 130.00 [10:06:01]line = 130.00 [10:06:01]line НДС 12% НСП 1% [10:06:01]line > о реализуемом товаре [10:06:01]line ИТОГО: 130.00 [10:06:01]line НСП 1% : 1.15 [10:06:01]line НДС 12% : 13.80 [10:06:01]line Наличными: 0.00 [10:06:01]line Безнал.: 130.00 [10:06:01]line Место: АЗС № 140 "Партнер Нефть" [10:06:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:06:01]line СНО: Общий режим [10:06:01]line Чек 52 15.07.2024 10:06 [10:06:01]line Смена: 370 ФФД: 1.0 [10:06:01]line ЗНМ: 0300000189 [10:06:01]line РНМ: 0000000000098025 [10:06:01]line Версия ККМ: 001 [10:06:01]line Платежная система: O! деньги [10:06:01]line ФМ: 0000000000965389 [10:06:01]line ФД: 31611 [10:06:01]line ФПД: 174867695857312 [10:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100601&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31611&fm=174867695857312&tin=02508201610067®Number=0000000000098025&sum=13000 [10:06:02]line 0 [10:06:02]Connected sock=7 [10:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 AB 5A 20 01 74 0F 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 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 F4 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7B 7B 00 00 35 04 06 00 9F 0A 8E E4 EE A0 C8 42 2D DF 06 EA 8E 03 [10:06:02]written 0, free lines is 4095 [10:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 04 C5 47 00 A9 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7B 7B 00 00 F4 03 04 00 97 A0 94 66 B6 04 01 00 00 48 70 32 C0 FB AB 01 3C [10:06:02]CommunicateWithHost err = 0 [10:06:02]CheckOFDResponse [10:06:02]1017 (14) - 77093643461234 [10:06:02]1041 (16) - 0000000000965389 [10:06:02]1040 (4) - 31611 [10:06:02]1012 (4) - 15.07.2024 04:07 [10:06:02]1206 (1) - 0 [10:06:02]OFD Sender: Remove packet 31611 [10:06:02]ProducePacketName [10:06:02]name=ofd_packets/00031611 [10:06:02]NVStorageDeleteData [10:06:02]Write to MH i2c: 01 00 00 96 0E A4 [10:06:02]Write i2c OK [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: 01 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: 01 07 00 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 E8 0C 9F [10:06:02]RasterBufferAndPrint [10:06:02]line [10:06:02]line [10:06:02]line [10:06:02]line [10:06:02]line [10:06:02]written 0, free lines is 3310 [10:06:02]MH_Cut [10:06:02]Write to MH i2c: D1 01 00 9D 0E 01 7D [10:06:02]Write i2c OK [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: D1 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: D1 01 00 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: D1 01 00 9D 0E 00 7C [10:06:02]Write to MH i2c: 01 00 00 9E 0E AC [10:06:02]Write i2c OK [10:06:02]MH_I2C_Read... [10:06:02]OFD Sender: No OFD packet to send [10:06:03]*** Cut start [10:06:03]*** Partial cut [10:06:03]*** CUTSNS_PIN = 1 [10:06:03]*** CUTSNS_PIN = 0 [10:06:03]*** Brake cut motor [10:06:04]Read from MH i2c: 01 [10:06:04]MH_I2C_Read... [10:06:04]*** Stop cut motor [10:06:04]*** Cut end [10:06:04]Read from MH i2c: 01 07 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 FF 0F C1 [10:06:04]process_action close_receipt done [10:06:04]requested_data is exist [10:06:04]produce_requested_data [10:06:04]requested_item fm.sn is exist - process it [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 11 00 00 [10:06:04]Write to MH i2c: E2 08 00 9F 0E 80 11 00 00 00 00 00 00 27 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 9F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 82 [10:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:06:04]wFMCommunicate OK [10:06:04]requested_item fd.num is exist - process it [10:06:04]SAM_PROTO_GetFieldsCounters [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 13 00 00 [10:06:04]Write to MH i2c: E2 08 00 A0 0E 80 13 00 00 00 00 00 00 2A [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 62 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 62 00 A0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:04]wFMCommunicate OK [10:06:04]SAM_PROTO_GetFieldsCounters done [10:06:04]requested_item shift.num is exist - process it [10:06:04]requested_item shift.opened is exist - process it [10:06:04]req_shift_opened [10:06:04]FM_GetShiftState [10:06:04]SAM_PROTO_GetShiftState [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 13 01 00 [10:06:04]Write to MH i2c: E2 08 00 A1 0E 80 13 01 00 00 00 00 00 2C [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 0E 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 0E 00 A1 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 1F [10:06:04]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:06:04]wFMCommunicate OK [10:06:04]SAM_PROTO_GetShiftState done [10:06:04]FM_GetShiftState done [10:06:04]req_shift_opened done [10:06:04]requested_item shift.open_date is exist - process it [10:06:04]req_shift_open_date [10:06:04]req_shift_open_date done [10:06:04]produce_requested_data done [10:06:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31611,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:06:04]process_action_free close_receipt [10:06:04]json_value_free [10:06:04]json_value_free done [10:06:04]process_json_proto returns [10:06:04]Send response to host [10:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31611,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:06:04]free response buf [10:06:04]execute_script done [10:06:04]execute_script returns [10:06:04]free content buf [10:06:04]Sock 5.Close socket [10:06:04]Sock 5.Thread stoped [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:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]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:22]accept exits with 6 [10:14:22]New connection [10:14:22]New thread 3067559268 created [10:14:22]Thread 3067415908 joined [10:14:22]Waiting for new connection... [10:14:22] Sock 6.Parse request [10:14:22]Sock 6.Check first char [10:14:22]Sock 6.First char is OK [10:14:22]request: POST /json_proto HTTP/1.0 [10:14:22]Method: POST [10:14:22]URL: /json_proto [10:14:22]Method is POST - this is cgi request [10:14:22]url: /json_proto [10:14:22]query_string will be loaded in cgi processing [10:14:22]execute_cgi json_proto POST (null) [10:14:22]execute_cgi path=json_proto method=POST [10:14:22]POST find Content-Length [10:14:22]Host: 172.17.39.68:8080 [10:14:22]Content-Length: 995 [10:14:22]Content-Type: application/json [10:14:22] [10:14:22]POST finish read [10:14:22]Found Content-Length = 995 [10:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214194", "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": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [10:14:22]execute_script... [10:14: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)214194", "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": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [10:14:22]POST & json_proto [10:14:22]process_json_proto [10:14:22]json parsed OK: [10:14:22]protocol is kg_v1.0 [10:14:22]action value=close_receipt [10:14:22]process_action close_receipt [10:14:22]cmd_close_receipt [10:14:22]MH_GetDate [10:14:22]Write to MH i2c: F0 00 00 A2 0E 9F [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: F0 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: F0 09 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: F0 09 00 A2 0E 00 80 F6 94 66 EC 7F 94 66 7D [10:14:22]GetLastDocTimeStamp 1721037961 [10:14:22]current date 1721038464 [10:14:22]FM_GetShiftState [10:14:22]SAM_PROTO_GetShiftState [10:14:22]wFMCommunicate request_size=4 [10:14:22]MH_SAM_APDU [10:14:22]CAPDU: 80 13 01 00 [10:14:22]Write to MH i2c: E2 08 00 A3 0E 80 13 01 00 00 00 00 00 2E [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:22]Read from MH i2c: E2 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 0E 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 0E 00 A3 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 21 [10:14:22]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:14:22]wFMCommunicate OK [10:14:22]SAM_PROTO_GetShiftState done [10:14:22]FM_GetShiftState done [10:14:22]opened in 1721001862 [10:14:22]opened+sec_in_day 1721088262 [10:14:22]quantity*price = 9500 [10:14:22]sum+1 = 9501 [10:14:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 53 15.07.2024 10:14 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31612 ФПД: 125051510543064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101424&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31612&fm=125051510543064&tin=02508201610067®Number=0000000000098025&sum=20500 0 [10:14:23]StoreToDocumentArchive [10:14:23]shift 370 fd 31612 [10:14:23]save to /storage/0370/doc_00031612 [10:14:23]save last doc name /storage/0370/doc_00031612 to /storage/kkm_last_doc_name [10:14:23]save OK [10:14:23]Clear old archive folders... [10:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=427 [10:14:23]tlvbuf is 01245AE0 [10:14:23]SAM_PROTO_ClearQueue [10:14:23]wFMCommunicate request_size=4 [10:14:23]MH_SAM_APDU [10:14:23]CAPDU: 80 09 00 00 [10:14:23]Write to MH i2c: E2 08 00 B0 0E 80 09 00 00 00 00 00 00 30 [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:23]Read from MH i2c: E2 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [10:14:23]RAPDU: 90 00 [10:14:23]wFMCommunicate OK [10:14:23]SAM_PROTO_ClearQueue done [10:14:23]KKMCreateOFDPacket [10:14:23]OFDProtocolAddRootSTLVToBuf [10:14:23]FM_MakeSignedData [10:14:23]FM_MakeSignedData [10:14:23]SAM_PROTO_SignData [10:14:23]wFMCommunicate request_size=4 [10:14:23]MH_SAM_APDU [10:14:23]CAPDU: 80 0D 01 02 [10:14:23]Write to MH i2c: E2 08 00 B1 0E 80 0D 01 02 00 00 00 00 38 [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:23]Read from MH i2c: E2 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [10:14:23]RAPDU: 90 00 [10:14:23]wFMCommunicate OK [10:14:23]wFMCommunicate request_size=255 [10:14:23]MH_SAM_APDU [10:14:23]CAPDU: 80 0D 02 02 FA 03 00 AB 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 [10:14:23]Write to MH i2c: E2 02 01 B2 0E 80 0D 02 02 FA 00 03 00 AB 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 00 CF [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:23]Read from MH i2c: E2 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [10:14:23]RAPDU: 90 00 [10:14:23]wFMCommunicate OK [10:14:23]wFMCommunicate request_size=186 [10:14:23]MH_SAM_APDU [10:14:23]CAPDU: 80 0D 02 02 B5 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 35 00 00 00 F4 03 04 00 80 F6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7C 7B 00 00 35 04 06 00 71 BB D2 DD 52 D8 [10:14:23]Write to MH i2c: E2 BD 00 B3 0E 80 0D 02 02 B5 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 35 00 00 00 F4 03 04 00 80 F6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7C 7B 00 00 35 04 06 00 71 BB D2 DD 52 D8 00 00 BC [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 03 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [10:14:24]RAPDU: 90 00 [10:14:24]wFMCommunicate OK [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 0D 03 02 [10:14:24]Write to MH i2c: E2 08 00 B4 0E 80 0D 03 02 00 00 00 00 3D [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0B 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0B 00 B4 0E 00 D6 E3 1F 5F 51 68 F1 85 90 00 A4 [10:14:24]RAPDU: D6 E3 1F 5F 51 68 F1 85 90 00 [10:14:24]wFMCommunicate OK [10:14:24]SAM_PROTO_SignData done [10:14:24]FM_MakeSignedData done [10:14:24]CreateOFDProtocolMessage [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 11 00 00 [10:14:24]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 17 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 17 00 B5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 98 [10:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:14:24]wFMCommunicate OK [10:14:24]CreateOFDProtocolMessage done [10:14:24]OFDSenderStorePacket 31612 [10:14:24]StoreOFDPacket docnum=31612 [10:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BF 01 00 00 9A 9C B7 01 B0 80 5A 03 01 00 03 00 AB 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 35 00 00 00 F4 03 04 00 80 F6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7C 7B 00 00 35 04 06 00 71 BB D2 DD 52 D8 D6 E3 1F 5F 51 68 F1 85 [10:14:24]CheckFolder [10:14:24]dirname=/storage/ofd_packets [10:14:24]CheckFolder done [10:14:24]ProducePacketName [10:14:24]name=ofd_packets/00031612 [10:14:24]NVStorageSaveData ofd_packets/00031612 [10:14:24]File name is /storage/ofd_packets/00031612 [10:14:24]Write 477 bytes [10:14:24]NVStorageSaveData done [10:14:24]OFDSenderStorePacket done [10:14:24]KKMCreateOFDPacket done [10:14:24]NVStorageSaveData kkm_last_timestamp [10:14:24]File name is /storage/kkm_last_timestamp [10:14:24]Write 4 bytes [10:14:24]NVStorageSaveData done [10:14:24]ExternCall_PrintAddStr [10:14:24]wPrintStart [10:14:24]Write to MH i2c: 01 00 00 B6 0E C4 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]OFD Sender: Processing packet 31612 [packets to send 5, broken 4] [10:14:24]ProducePacketName [10:14:24]name=ofd_packets/00031612 [10:14:24]OFD Sender: To server: pG, [10:14:24]CommunicateWithHost lk.salyk.kg:30040 [10:14:24]ConnectInit lk.salyk.kg [10:14:24]Read from MH i2c: 01 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: 01 07 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [10:14:24]RasterBufferAndPrint [10:14:24]line Счет N : (3)214194 [10:14:24]line ИНН: 02508201610067 [10:14:24]line Контрольно-Кассовый Чек [10:14:24]line ПРОДАЖА [10:14:24]line Товар: 4700000480302 [10:14:24]line Напиток энерг Nitro манго-клуб 0.45 ж/б [10:14:24]line 1.000 * 95.00 [10:14:24]line = 95.00 [10:14:24]line НДС 12% НСП 1% [10:14:24]line > о реализуемом товаре [10:14:24]line Товар: 4870022003305 [10:14:24]line Напиток Gorilla эн нат ж/б 0,5/0,45л [10:14:24]line 1.000 * 110.00 [10:14:24]line = 110.00 [10:14:24]line НДС 12% НСП 1% [10:14:24]line > о реализуемом товаре [10:14:24]line ИТОГО: 205.00 [10:14:24]line НСП 1% : 1.81 [10:14:24]line НДС 12% : 21.77 [10:14:24]line Наличными: 205.00 [10:14:24]line Безнал.: 0.00 [10:14:24]line Место: АЗС № 140 "Партнер Нефть" [10:14:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:14:24]line СНО: Общий режим [10:14:24]line Чек 53 15.07.2024 10:14 [10:14:24]line Смена: 370 ФФД: 1.0 [10:14:24]line ЗНМ: 0300000189 [10:14:24]line РНМ: 0000000000098025 [10:14:24]line Версия ККМ: 001 [10:14:24]line ФМ: 0000000000965389 [10:14:24]line ФД: 31612 [10:14:24]line ФПД: 125051510543064 [10:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101424&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31612&fm=125051510543064&tin=02508201610067®Number=0000000000098025&sum=20500 [10:14:24]line 0 [10:14:24]written 0, free lines is 4095 [10:14:24]Connected sock=7 [10:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BF 01 00 00 9A 9C B7 01 B0 80 5A 03 01 00 03 00 AB 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 35 00 00 00 F4 03 04 00 80 F6 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7C 7B 00 00 35 04 06 00 71 BB D2 DD 52 D8 D6 E3 1F 5F 51 68 F1 85 [10:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 CC 0D 47 00 4D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7C 7B 00 00 F4 03 04 00 8E A2 94 66 B6 04 01 00 00 73 0D 40 C9 27 6E 97 A5 [10:14:24]CommunicateWithHost err = 0 [10:14:24]CheckOFDResponse [10:14:24]1017 (14) - 77093643461234 [10:14:24]1041 (16) - 0000000000965389 [10:14:24]1040 (4) - 31612 [10:14:24]1012 (4) - 15.07.2024 04:16 [10:14:24]1206 (1) - 0 [10:14:24]OFD Sender: Remove packet 31612 [10:14:24]ProducePacketName [10:14:24]name=ofd_packets/00031612 [10:14:24]NVStorageDeleteData [10:14:25]Write to MH i2c: 01 00 00 E6 0E F4 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: 01 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: 01 07 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 80 0C 87 [10:14:25]RasterBufferAndPrint [10:14:25]line [10:14:25]line [10:14:25]line [10:14:25]line [10:14:25]line [10:14:25]written 0, free lines is 3210 [10:14:25]MH_Cut [10:14:25]Write to MH i2c: D1 01 00 ED 0E 01 CD [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: D1 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: D1 01 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: D1 01 00 ED 0E 00 CC [10:14:25]Write to MH i2c: 01 00 00 EE 0E FC [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]OFD Sender: No OFD packet to send [10:14:25]*** Cut start [10:14:25]*** Partial cut [10:14:25]*** CUTSNS_PIN = 1 [10:14:25]*** CUTSNS_PIN = 0 [10:14:26]*** Brake cut motor [10:14:26]Read from MH i2c: 01 [10:14:26]MH_I2C_Read... [10:14:26]*** Stop cut motor [10:14:26]*** Cut end [10:14:26]Read from MH i2c: 01 07 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [10:14:26]process_action close_receipt done [10:14:26]requested_data is exist [10:14:26]produce_requested_data [10:14:26]requested_item fm.sn is exist - process it [10:14:26]wFMCommunicate request_size=4 [10:14:26]MH_SAM_APDU [10:14:26]CAPDU: 80 11 00 00 [10:14:26]Write to MH i2c: E2 08 00 EF 0E 80 11 00 00 00 00 00 00 77 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 17 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 17 00 EF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [10:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:14:26]wFMCommunicate OK [10:14:26]requested_item fd.num is exist - process it [10:14:26]SAM_PROTO_GetFieldsCounters [10:14:26]wFMCommunicate request_size=4 [10:14:26]MH_SAM_APDU [10:14:26]CAPDU: 80 13 00 00 [10:14:26]Write to MH i2c: E2 08 00 F0 0E 80 13 00 00 00 00 00 00 7A [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 62 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 62 00 F0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:26]wFMCommunicate OK [10:14:26]SAM_PROTO_GetFieldsCounters done [10:14:26]requested_item shift.num is exist - process it [10:14:26]requested_item shift.opened is exist - process it [10:14:26]req_shift_opened [10:14:26]FM_GetShiftState [10:14:26]SAM_PROTO_GetShiftState [10:14:26]wFMCommunicate request_size=4 [10:14:26]MH_SAM_APDU [10:14:26]CAPDU: 80 13 01 00 [10:14:26]Write to MH i2c: E2 08 00 F1 0E 80 13 01 00 00 00 00 00 7C [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0E 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0E 00 F1 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6F [10:14:26]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:14:26]wFMCommunicate OK [10:14:26]SAM_PROTO_GetShiftState done [10:14:26]FM_GetShiftState done [10:14:26]req_shift_opened done [10:14:26]requested_item shift.open_date is exist - process it [10:14:26]req_shift_open_date [10:14:26]req_shift_open_date done [10:14:26]produce_requested_data done [10:14:26]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31612,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:14:26]process_action_free close_receipt [10:14:26]json_value_free [10:14:26]json_value_free done [10:14:26]process_json_proto returns [10:14:26]Send response to host [10:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31612,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:14:26]free response buf [10:14:26]execute_script done [10:14:26]execute_script returns [10:14:26]free content buf [10:14:26]Sock 6.Close socket [10:14:26]Sock 6.Thread stoped [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]accept exits with 5 [10:16:40]New connection [10:16:40]New thread 3067415908 created [10:16:40]Thread 3067559268 joined [10:16:40]Waiting for new connection... [10:16:40] Sock 5.Parse request [10:16:40]Sock 5.Check first char [10:16:40]Sock 5.First char is OK [10:16:40]request: POST /json_proto HTTP/1.0 [10:16:40]Method: POST [10:16:40]URL: /json_proto [10:16:40]Method is POST - this is cgi request [10:16:40]url: /json_proto [10:16:40]query_string will be loaded in cgi processing [10:16:40]execute_cgi json_proto POST (null) [10:16:40]execute_cgi path=json_proto method=POST [10:16:40]POST find Content-Length [10:16:40]Host: 172.17.39.68:8080 [10:16:40]Content-Length: 935 [10:16:40]Content-Type: application/json [10:16:40] [10:16:40]POST finish read [10:16:40]Found Content-Length = 935 [10:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214195", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:40]execute_script... [10:16: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)214195", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:40]POST & json_proto [10:16:40]process_json_proto [10:16:40]json parsed OK: [10:16:40]protocol is kg_v1.0 [10:16:40]action value=close_receipt [10:16:40]process_action close_receipt [10:16:40]cmd_close_receipt [10:16:40]MH_GetDate [10:16:40]Write to MH i2c: F0 00 00 F2 0E EF [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: F0 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: F0 09 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: F0 09 00 F2 0E 00 09 F7 94 66 EC 7F 94 66 57 [10:16:40]GetLastDocTimeStamp 1721038464 [10:16:40]current date 1721038601 [10:16:40]FM_GetShiftState [10:16:40]SAM_PROTO_GetShiftState [10:16:40]wFMCommunicate request_size=4 [10:16:40]MH_SAM_APDU [10:16:40]CAPDU: 80 13 01 00 [10:16:40]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:40]Read from MH i2c: E2 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 0E 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 86 67 94 66 00 00 00 00 90 00 71 [10:16:40]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:16:40]wFMCommunicate OK [10:16:40]SAM_PROTO_GetShiftState done [10:16:40]FM_GetShiftState done [10:16:40]opened in 1721001862 [10:16:40]opened+sec_in_day 1721088262 [10:16:40]quantity*price = 39500 [10:16:40]sum+1 = 39501 [10:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 0.00 Безнал.: 395.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 54 15.07.2024 10:16 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31613 ФПД: 138560769082149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101642&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31613&fm=138560769082149&tin=02508201610067®Number=0000000000098025&sum=39500 0 [10:16:41]StoreToDocumentArchive [10:16:41]shift 370 fd 31613 [10:16:41]save to /storage/0370/doc_00031613 [10:16:41]save last doc name /storage/0370/doc_00031613 to /storage/kkm_last_doc_name [10:16:41]save OK [10:16:41]Clear old archive folders... [10:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=306 [10:16:41]tlvbuf is 01245ED0 [10:16:41]SAM_PROTO_ClearQueue [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 09 00 00 [10:16:41]Write to MH i2c: E2 08 00 00 0F 80 09 00 00 00 00 00 00 81 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]SAM_PROTO_ClearQueue done [10:16:41]KKMCreateOFDPacket [10:16:41]OFDProtocolAddRootSTLVToBuf [10:16:41]FM_MakeSignedData [10:16:41]FM_MakeSignedData [10:16:41]SAM_PROTO_SignData [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 01 02 [10:16:41]Write to MH i2c: E2 08 00 01 0F 80 0D 01 02 00 00 00 00 89 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]wFMCommunicate request_size=255 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A F7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 [10:16:41]Write to MH i2c: E2 02 01 02 0F 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A F7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 00 41 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]wFMCommunicate request_size=65 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7D 7B 00 00 35 04 06 00 7E 05 31 6B C3 25 [10:16:41]Write to MH i2c: E2 44 00 03 0F 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7D 7B 00 00 35 04 06 00 7E 05 31 6B C3 25 00 00 E1 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 03 02 [10:16:41]Write to MH i2c: E2 08 00 04 0F 80 0D 03 02 00 00 00 00 8E [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0B 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0B 00 04 0F 00 3E 46 CD 56 35 2A 15 1E 90 00 C8 [10:16:41]RAPDU: 3E 46 CD 56 35 2A 15 1E 90 00 [10:16:41]wFMCommunicate OK [10:16:41]SAM_PROTO_SignData done [10:16:41]FM_MakeSignedData done [10:16:41]CreateOFDProtocolMessage [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 11 00 00 [10:16:41]Write to MH i2c: E2 08 00 05 0F 80 11 00 00 00 00 00 00 8E [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 05 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E9 [10:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:16:41]wFMCommunicate OK [10:16:41]CreateOFDProtocolMessage done [10:16:41]OFDSenderStorePacket 31613 [10:16:41]StoreOFDPacket docnum=31613 [10:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 46 01 00 00 1A 83 3E 01 4C FB 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A F7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7D 7B 00 00 35 04 06 00 7E 05 31 6B C3 25 3E 46 CD 56 35 2A 15 1E [10:16:41]CheckFolder [10:16:41]dirname=/storage/ofd_packets [10:16:41]CheckFolder done [10:16:41]ProducePacketName [10:16:41]name=ofd_packets/00031613 [10:16:41]NVStorageSaveData ofd_packets/00031613 [10:16:41]File name is /storage/ofd_packets/00031613 [10:16:41]Write 356 bytes [10:16:41]NVStorageSaveData done [10:16:41]OFDSenderStorePacket done [10:16:41]KKMCreateOFDPacket done [10:16:41]NVStorageSaveData kkm_last_timestamp [10:16:41]File name is /storage/kkm_last_timestamp [10:16:41]Write 4 bytes [10:16:41]NVStorageSaveData done [10:16:41]ExternCall_PrintAddStr [10:16:41]wPrintStart [10:16:41]Write to MH i2c: 01 00 00 06 0F 15 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 07 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 FF 0F 2A [10:16:41]RasterBufferAndPrint [10:16:41]line Счет N : (3)214195 [10:16:41]line ИНН: 02508201610067 [10:16:41]line Контрольно-Кассовый Чек [10:16:41]line ПРОДАЖА [10:16:41]line Товар: 0010420131003133 [10:16:41]line Уголь древесный Партнер Нефть 3кг [10:16:41]line 1.000 * 395.00 [10:16:41]line = 395.00 [10:16:41]line НДС 12% НСП 1% [10:16:41]line > о реализуемом товаре [10:16:41]line ИТОГО: 395.00 [10:16:41]line НСП 1% : 3.50 [10:16:41]line НДС 12% : 41.95 [10:16:41]line Наличными: 0.00 [10:16:41]line Безнал.: 395.00 [10:16:41]line Место: АЗС № 140 "Партнер Нефть" [10:16:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:16:41]line СНО: Общий режим [10:16:41]line Чек 54 15.07.2024 10:16 [10:16:41]line Смена: 370 ФФД: 1.0 [10:16:41]line ЗНМ: 0300000189 [10:16:41]line РНМ: 0000000000098025 [10:16:41]line Версия ККМ: 001 [10:16:41]line Платежная система: АКБ Кыргызстан [10:16:42]line ФМ: 0000000000965389 [10:16:42]line ФД: 31613 [10:16:42]line ФПД: 138560769082149 [10:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101642&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31613&fm=138560769082149&tin=02508201610067®Number=0000000000098025&sum=39500 [10:16:42]line 0 [10:16:42]OFD Sender: Processing packet 31613 [packets to send 5, broken 4] [10:16:42]ProducePacketName [10:16:42]name=ofd_packets/00031613 [10:16:42]OFD Sender: To server: pG, [10:16:42]CommunicateWithHost lk.salyk.kg:30040 [10:16:42]ConnectInit lk.salyk.kg [10:16:42]written 0, free lines is 4095 [10:16:42]Connected sock=7 [10:16:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 46 01 00 00 1A 83 3E 01 4C FB 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A F7 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7D 7B 00 00 35 04 06 00 7E 05 31 6B C3 25 3E 46 CD 56 35 2A 15 1E [10:16:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 34 BB 47 00 F1 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7D 7B 00 00 F4 03 04 00 17 A3 94 66 B6 04 01 00 00 4B F2 4B 5E EE 76 94 76 [10:16:42]CommunicateWithHost err = 0 [10:16:42]CheckOFDResponse [10:16:42]1017 (14) - 77093643461234 [10:16:42]1041 (16) - 0000000000965389 [10:16:42]1040 (4) - 31613 [10:16:42]1012 (4) - 15.07.2024 04:18 [10:16:42]1206 (1) - 0 [10:16:42]OFD Sender: Remove packet 31613 [10:16:42]ProducePacketName [10:16:42]name=ofd_packets/00031613 [10:16:42]NVStorageDeleteData [10:16:42]Write to MH i2c: 01 00 00 31 0F 40 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 CC 0C 1F [10:16:42]RasterBufferAndPrint [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]written 0, free lines is 3282 [10:16:42]MH_Cut [10:16:42]Write to MH i2c: D1 01 00 38 0F 01 19 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 38 0F 00 18 [10:16:42]Write to MH i2c: 01 00 00 39 0F 48 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]OFD Sender: No OFD packet to send [10:16:43]*** Cut start [10:16:43]*** Partial cut [10:16:43]*** CUTSNS_PIN = 1 [10:16:43]*** CUTSNS_PIN = 0 [10:16:43]*** Brake cut motor [10:16:44]Read from MH i2c: 01 [10:16:44]MH_I2C_Read... [10:16:44]*** Stop cut motor [10:16:44]*** Cut end [10:16:44]Read from MH i2c: 01 07 00 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [10:16:44]process_action close_receipt done [10:16:44]requested_data is exist [10:16:44]produce_requested_data [10:16:44]requested_item fm.sn is exist - process it [10:16:44]wFMCommunicate request_size=4 [10:16:44]MH_SAM_APDU [10:16:44]CAPDU: 80 11 00 00 [10:16:44]Write to MH i2c: E2 08 00 3A 0F 80 11 00 00 00 00 00 00 C3 [10:16:44]Write i2c OK [10:16:44]MH_I2C_Read... [10:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:44]Read from MH i2c: E2 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 17 00 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 17 00 3A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1E [10:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:16:44]wFMCommunicate OK [10:16:44]requested_item fd.num is exist - process it [10:16:44]SAM_PROTO_GetFieldsCounters [10:16:44]wFMCommunicate request_size=4 [10:16:44]MH_SAM_APDU [10:16:44]CAPDU: 80 13 00 00 [10:16:44]Write to MH i2c: E2 08 00 3B 0F 80 13 00 00 00 00 00 00 C6 [10:16:44]Write i2c OK [10:16:44]MH_I2C_Read... [10:16:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:44]Read from MH i2c: E2 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 62 00 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 62 00 3B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [10:16:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:44]wFMCommunicate OK [10:16:44]SAM_PROTO_GetFieldsCounters done [10:16:44]requested_item shift.num is exist - process it [10:16:44]requested_item shift.opened is exist - process it [10:16:44]req_shift_opened [10:16:44]FM_GetShiftState [10:16:44]SAM_PROTO_GetShiftState [10:16:44]wFMCommunicate request_size=4 [10:16:44]MH_SAM_APDU [10:16:44]CAPDU: 80 13 01 00 [10:16:44]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [10:16:44]Write i2c OK [10:16:44]MH_I2C_Read... [10:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:44]Read from MH i2c: E2 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 0E 00 [10:16:44]MH_I2C_Read... [10:16:44]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BB [10:16:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:16:44]wFMCommunicate OK [10:16:44]SAM_PROTO_GetShiftState done [10:16:44]FM_GetShiftState done [10:16:44]req_shift_opened done [10:16:44]requested_item shift.open_date is exist - process it [10:16:44]req_shift_open_date [10:16:44]req_shift_open_date done [10:16:44]produce_requested_data done [10:16:44]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31613,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:16:44]process_action_free close_receipt [10:16:44]json_value_free [10:16:44]json_value_free done [10:16:44]process_json_proto returns [10:16:44]Send response to host [10:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31613,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:16:44]free response buf [10:16:44]execute_script done [10:16:44]execute_script returns [10:16:44]free content buf [10:16:44]Sock 5.Close socket [10:16:44]Sock 5.Thread stoped [10:16:47]OFD Sender: No OFD packet to send [10:16:52]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:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:54]accept exits with 6 [10:30:54]New connection [10:30:54]New thread 3067559268 created [10:30:54]Thread 3067415908 joined [10:30:54]Waiting for new connection... [10:30:54] Sock 6.Parse request [10:30:54]Sock 6.Check first char [10:30:54]Sock 6.First char is OK [10:30:54]request: POST /json_proto HTTP/1.0 [10:30:54]Method: POST [10:30:54]URL: /json_proto [10:30:54]Method is POST - this is cgi request [10:30:54]url: /json_proto [10:30:54]query_string will be loaded in cgi processing [10:30:54]execute_cgi json_proto POST (null) [10:30:54]execute_cgi path=json_proto method=POST [10:30:54]POST find Content-Length [10:30:54]Host: 172.17.39.68:8080 [10:30:54]Content-Length: 621 [10:30:54]Content-Type: application/json [10:30:54] [10:30:54]POST finish read [10:30:54]Found Content-Length = 621 [10:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214196", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [10:30:54]execute_script... [10: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)214196", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [10:30:54]POST & json_proto [10:30:54]process_json_proto [10:30:54]json parsed OK: [10:30:54]protocol is kg_v1.0 [10:30:54]action value=close_receipt [10:30:54]process_action close_receipt [10:30:54]cmd_close_receipt [10:30:54]MH_GetDate [10:30:54]Write to MH i2c: F0 00 00 3D 0F 3B [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: F0 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: F0 09 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: F0 09 00 3D 0F 00 60 FA 94 66 EC 7F 94 66 FD [10:30:54]GetLastDocTimeStamp 1721038602 [10:30:54]current date 1721039456 [10:30:54]FM_GetShiftState [10:30:54]SAM_PROTO_GetShiftState [10:30:54]wFMCommunicate request_size=4 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 13 01 00 [10:30:54]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 0E 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BD [10:30:54]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:30:54]wFMCommunicate OK [10:30:54]SAM_PROTO_GetShiftState done [10:30:54]FM_GetShiftState done [10:30:54]opened in 1721001862 [10:30:54]opened+sec_in_day 1721088262 [10:30:54]quantity*price = 14000 [10:30:54]sum+1 = 14001 [10:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 55 15.07.2024 10:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31614 ФПД: 186145578887763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103056&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31614&fm=186145578887763&tin=02508201610067®Number=0000000000098025&sum=14000 0 [10:30:55]StoreToDocumentArchive [10:30:55]shift 370 fd 31614 [10:30:55]save to /storage/0370/doc_00031614 [10:30:55]save last doc name /storage/0370/doc_00031614 to /storage/kkm_last_doc_name [10:30:55]save OK [10:30:55]Clear old archive folders... [10:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:30:55]tlvbuf is 01282170 [10:30:55]SAM_PROTO_ClearQueue [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 09 00 00 [10:30:55]Write to MH i2c: E2 08 00 4B 0F 80 09 00 00 00 00 00 00 CC [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [10:30:55]RAPDU: 90 00 [10:30:55]wFMCommunicate OK [10:30:55]SAM_PROTO_ClearQueue done [10:30:55]KKMCreateOFDPacket [10:30:55]OFDProtocolAddRootSTLVToBuf [10:30:55]FM_MakeSignedData [10:30:55]FM_MakeSignedData [10:30:55]SAM_PROTO_SignData [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 0D 01 02 [10:30:55]Write to MH i2c: E2 08 00 4C 0F 80 0D 01 02 00 00 00 00 D4 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [10:30:55]RAPDU: 90 00 [10:30:55]wFMCommunicate OK [10:30:55]wFMCommunicate request_size=255 [10:30:55]MH_SAM_APDU [10:30:55]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 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 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 37 00 00 00 F4 03 04 00 60 FA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [10:30:55]Write to MH i2c: E2 02 01 4D 0F 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 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 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 37 00 00 00 F4 03 04 00 60 FA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 C6 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [10:30:55]RAPDU: 90 00 [10:30:55]wFMCommunicate OK [10:30:55]wFMCommunicate request_size=32 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 7E 7B 00 00 35 04 06 00 A9 4C 65 1B 2A 53 [10:30:55]Write to MH i2c: E2 23 00 4E 0F 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 7E 7B 00 00 35 04 06 00 A9 4C 65 1B 2A 53 00 00 27 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [10:30:55]RAPDU: 90 00 [10:30:55]wFMCommunicate OK [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 0D 03 02 [10:30:55]Write to MH i2c: E2 08 00 4F 0F 80 0D 03 02 00 00 00 00 D9 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 0B 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 0B 00 4F 0F 00 98 25 94 3F E3 55 5E 27 90 00 27 [10:30:55]RAPDU: 98 25 94 3F E3 55 5E 27 90 00 [10:30:55]wFMCommunicate OK [10:30:55]SAM_PROTO_SignData done [10:30:55]FM_MakeSignedData done [10:30:55]CreateOFDProtocolMessage [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 11 00 00 [10:30:55]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 17 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 34 [10:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:30:55]wFMCommunicate OK [10:30:55]CreateOFDProtocolMessage done [10:30:55]OFDSenderStorePacket 31614 [10:30:55]StoreOFDPacket docnum=31614 [10:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 C3 D4 1D 01 06 24 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 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 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 37 00 00 00 F4 03 04 00 60 FA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7E 7B 00 00 35 04 06 00 A9 4C 65 1B 2A 53 98 25 94 3F E3 55 5E 27 [10:30:55]CheckFolder [10:30:55]dirname=/storage/ofd_packets [10:30:55]CheckFolder done [10:30:55]ProducePacketName [10:30:55]name=ofd_packets/00031614 [10:30:55]NVStorageSaveData ofd_packets/00031614 [10:30:55]File name is /storage/ofd_packets/00031614 [10:30:55]Write 323 bytes [10:30:55]NVStorageSaveData done [10:30:55]OFDSenderStorePacket done [10:30:55]KKMCreateOFDPacket done [10:30:55]NVStorageSaveData kkm_last_timestamp [10:30:55]File name is /storage/kkm_last_timestamp [10:30:55]Write 4 bytes [10:30:55]NVStorageSaveData done [10:30:55]ExternCall_PrintAddStr [10:30:55]wPrintStart [10:30:55]Write to MH i2c: 01 00 00 51 0F 60 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [10:30:55]RasterBufferAndPrint [10:30:55]line Счет N : (3)214196 [10:30:55]line ИНН: 02508201610067 [10:30:55]line Контрольно-Кассовый Чек [10:30:55]line ПРОДАЖА [10:30:55]line Товар: 48743570 [10:30:55]line Сигареты Winston XStyle Blue [10:30:55]line 1.000 * 140.00 [10:30:55]line = 140.00 [10:30:55]line НДС 12% НСП 1% [10:30:55]line > о реализуемом товаре [10:30:55]line ИТОГО: 140.00 [10:30:55]line НСП 1% : 1.24 [10:30:55]line НДС 12% : 14.87 [10:30:55]line Наличными: 140.00 [10:30:55]line Безнал.: 0.00 [10:30:55]line Место: АЗС № 140 "Партнер Нефть" [10:30:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:30:55]line СНО: Общий режим [10:30:55]line Чек 55 15.07.2024 10:30 [10:30:55]line Смена: 370 ФФД: 1.0 [10:30:55]line ЗНМ: 0300000189 [10:30:55]line РНМ: 0000000000098025 [10:30:55]line Версия ККМ: 001 [10:30:55]line ФМ: 0000000000965389 [10:30:55]line ФД: 31614 [10:30:55]line ФПД: 186145578887763 [10:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103056&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31614&fm=186145578887763&tin=02508201610067®Number=0000000000098025&sum=14000 [10:30:56]line 0 [10:30:56]OFD Sender: Processing packet 31614 [packets to send 5, broken 4] [10:30:56]ProducePacketName [10:30:56]name=ofd_packets/00031614 [10:30:56]OFD Sender: To server: pG, [10:30:56]CommunicateWithHost lk.salyk.kg:30040 [10:30:56]ConnectInit lk.salyk.kg [10:30:56]written 0, free lines is 4095 [10:30:56]Connected sock=7 [10:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 C3 D4 1D 01 06 24 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 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 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 37 00 00 00 F4 03 04 00 60 FA 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7E 7B 00 00 35 04 06 00 A9 4C 65 1B 2A 53 98 25 94 3F E3 55 5E 27 [10:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 56 A8 47 00 3E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7E 7B 00 00 F4 03 04 00 6D A6 94 66 B6 04 01 00 00 C4 4B 62 73 55 56 35 1E [10:30:56]CommunicateWithHost err = 0 [10:30:56]CheckOFDResponse [10:30:56]1017 (14) - 77093643461234 [10:30:56]1041 (16) - 0000000000965389 [10:30:56]1040 (4) - 31614 [10:30:56]1012 (4) - 15.07.2024 04:32 [10:30:56]1206 (1) - 0 [10:30:56]OFD Sender: Remove packet 31614 [10:30:56]ProducePacketName [10:30:56]name=ofd_packets/00031614 [10:30:56]NVStorageDeleteData [10:30:56]Write to MH i2c: 01 00 00 79 0F 88 [10:30:56]Write i2c OK [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: 01 [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: 01 07 00 [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 EB 0C 86 [10:30:56]RasterBufferAndPrint [10:30:56]line [10:30:56]line [10:30:56]line [10:30:56]line [10:30:56]line [10:30:56]written 0, free lines is 3313 [10:30:56]MH_Cut [10:30:56]Write to MH i2c: D1 01 00 80 0F 01 61 [10:30:56]Write i2c OK [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: D1 [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: D1 01 00 [10:30:56]MH_I2C_Read... [10:30:56]Read from MH i2c: D1 01 00 80 0F 00 60 [10:30:56]Write to MH i2c: 01 00 00 81 0F 90 [10:30:56]Write i2c OK [10:30:56]MH_I2C_Read... [10:30:56]OFD Sender: No OFD packet to send [10:30:57]*** Cut start [10:30:57]*** Partial cut [10:30:57]*** CUTSNS_PIN = 1 [10:30:57]*** CUTSNS_PIN = 0 [10:30:57]*** Brake cut motor [10:30:57]Read from MH i2c: 01 [10:30:57]MH_I2C_Read... [10:30:57]*** Stop cut motor [10:30:57]*** Cut end [10:30:57]Read from MH i2c: 01 07 00 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 FF 0F A5 [10:30:57]process_action close_receipt done [10:30:57]requested_data is exist [10:30:57]produce_requested_data [10:30:57]requested_item fm.sn is exist - process it [10:30:57]wFMCommunicate request_size=4 [10:30:57]MH_SAM_APDU [10:30:57]CAPDU: 80 11 00 00 [10:30:57]Write to MH i2c: E2 08 00 82 0F 80 11 00 00 00 00 00 00 0B [10:30:57]Write i2c OK [10:30:57]MH_I2C_Read... [10:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:58]Read from MH i2c: E2 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 17 00 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 17 00 82 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 66 [10:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:30:58]wFMCommunicate OK [10:30:58]requested_item fd.num is exist - process it [10:30:58]SAM_PROTO_GetFieldsCounters [10:30:58]wFMCommunicate request_size=4 [10:30:58]MH_SAM_APDU [10:30:58]CAPDU: 80 13 00 00 [10:30:58]Write to MH i2c: E2 08 00 83 0F 80 13 00 00 00 00 00 00 0E [10:30:58]Write i2c OK [10:30:58]MH_I2C_Read... [10:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:58]Read from MH i2c: E2 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 62 00 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 62 00 83 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:58]wFMCommunicate OK [10:30:58]SAM_PROTO_GetFieldsCounters done [10:30:58]requested_item shift.num is exist - process it [10:30:58]requested_item shift.opened is exist - process it [10:30:58]req_shift_opened [10:30:58]FM_GetShiftState [10:30:58]SAM_PROTO_GetShiftState [10:30:58]wFMCommunicate request_size=4 [10:30:58]MH_SAM_APDU [10:30:58]CAPDU: 80 13 01 00 [10:30:58]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [10:30:58]Write i2c OK [10:30:58]MH_I2C_Read... [10:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:58]Read from MH i2c: E2 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 0E 00 [10:30:58]MH_I2C_Read... [10:30:58]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 03 [10:30:58]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:30:58]wFMCommunicate OK [10:30:58]SAM_PROTO_GetShiftState done [10:30:58]FM_GetShiftState done [10:30:58]req_shift_opened done [10:30:58]requested_item shift.open_date is exist - process it [10:30:58]req_shift_open_date [10:30:58]req_shift_open_date done [10:30:58]produce_requested_data done [10:30:58]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31614,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:30:58]process_action_free close_receipt [10:30:58]json_value_free [10:30:58]json_value_free done [10:30:58]process_json_proto returns [10:30:58]Send response to host [10:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31614,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:30:58]free response buf [10:30:58]execute_script done [10:30:58]execute_script returns [10:30:58]free content buf [10:30:58]Sock 6.Close socket [10:30:58]Sock 6.Thread stoped [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:10]accept exits with 5 [10:49:10]New connection [10:49:10]New thread 3067415908 created [10:49:10]Thread 3067559268 joined [10:49:10]Waiting for new connection... [10:49:10] Sock 5.Parse request [10:49:10]Sock 5.Check first char [10:49:10]Sock 5.First char is OK [10:49:10]request: POST /json_proto HTTP/1.0 [10:49:10]Method: POST [10:49:10]URL: /json_proto [10:49:10]Method is POST - this is cgi request [10:49:10]url: /json_proto [10:49:10]query_string will be loaded in cgi processing [10:49:10]execute_cgi json_proto POST (null) [10:49:10]execute_cgi path=json_proto method=POST [10:49:10]POST find Content-Length [10:49:10]Host: 172.17.39.68:8080 [10:49:10]Content-Length: 769 [10:49:10]Content-Type: application/json [10:49:10] [10:49:10]POST finish read [10:49:10]Found Content-Length = 769 [10:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214197", "tax_sys" : 0, "items" : [ { "code": "48744706", "name": "LD Compact Plus", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:10]execute_script... [10:49: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)214197", "tax_sys" : 0, "items" : [ { "code": "48744706", "name": "LD Compact Plus", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:10]POST & json_proto [10:49:10]process_json_proto [10:49:10]json parsed OK: [10:49:10]protocol is kg_v1.0 [10:49:10]action value=close_receipt [10:49:10]process_action close_receipt [10:49:10]cmd_close_receipt [10:49:10]MH_GetDate [10:49:10]Write to MH i2c: F0 00 00 85 0F 83 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 85 0F 00 A7 FE 94 66 EC 7F 94 66 90 [10:49:10]GetLastDocTimeStamp 1721039456 [10:49:10]current date 1721040551 [10:49:10]FM_GetShiftState [10:49:10]SAM_PROTO_GetShiftState [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 01 00 [10:49:10]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 05 [10:49:10]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftState done [10:49:10]FM_GetShiftState done [10:49:10]opened in 1721001862 [10:49:10]opened+sec_in_day 1721088262 [10:49:10]quantity*price = 11300 [10:49:10]sum+1 = 11301 [10:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 0.00 Безнал.: 113.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 56 15.07.2024 10:49 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31615 ФПД: 251148118933953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104912&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31615&fm=251148118933953&tin=02508201610067®Number=0000000000098025&sum=11300 0 [10:49:11]StoreToDocumentArchive [10:49:11]shift 370 fd 31615 [10:49:11]save to /storage/0370/doc_00031615 [10:49:11]save last doc name /storage/0370/doc_00031615 to /storage/kkm_last_doc_name [10:49:11]save OK [10:49:11]Clear old archive folders... [10:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:49:11]tlvbuf is 0124FDE0 [10:49:11]SAM_PROTO_ClearQueue [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 09 00 00 [10:49:11]Write to MH i2c: E2 08 00 93 0F 80 09 00 00 00 00 00 00 14 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_ClearQueue done [10:49:11]KKMCreateOFDPacket [10:49:11]OFDProtocolAddRootSTLVToBuf [10:49:11]FM_MakeSignedData [10:49:11]FM_MakeSignedData [10:49:11]SAM_PROTO_SignData [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 01 02 [10:49:11]Write to MH i2c: E2 08 00 94 0F 80 0D 01 02 00 00 00 00 1C [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=255 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 37 30 36 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 6C 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A8 FE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7F 7B 00 00 35 04 06 00 [10:49:11]Write to MH i2c: E2 02 01 95 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 37 30 36 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 6C 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A8 FE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7F 7B 00 00 35 04 06 00 00 00 2D [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=11 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 02 02 06 E4 6A FA 6A 41 C1 [10:49:11]Write to MH i2c: E2 0E 00 96 0F 80 0D 02 02 06 00 E4 6A FA 6A 41 C1 00 00 DF [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 03 02 [10:49:11]Write to MH i2c: E2 08 00 97 0F 80 0D 03 02 00 00 00 00 21 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0B 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0B 00 97 0F 00 59 26 95 0F 6B D1 F1 FC 90 00 6E [10:49:11]RAPDU: 59 26 95 0F 6B D1 F1 FC 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_SignData done [10:49:11]FM_MakeSignedData done [10:49:11]CreateOFDProtocolMessage [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 11 00 00 [10:49:11]Write to MH i2c: E2 08 00 98 0F 80 11 00 00 00 00 00 00 21 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7C [10:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:49:11]wFMCommunicate OK [10:49:11]CreateOFDProtocolMessage done [10:49:11]OFDSenderStorePacket 31615 [10:49:11]StoreOFDPacket docnum=31615 [10:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 01 00 00 1F FD 08 01 04 A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 37 30 36 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 6C 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A8 FE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7F 7B 00 00 35 04 06 00 E4 6A FA 6A 41 C1 59 26 95 0F 6B D1 F1 FC [10:49:11]CheckFolder [10:49:11]dirname=/storage/ofd_packets [10:49:11]CheckFolder done [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00031615 [10:49:11]NVStorageSaveData ofd_packets/00031615 [10:49:11]File name is /storage/ofd_packets/00031615 [10:49:11]Write 302 bytes [10:49:11]NVStorageSaveData done [10:49:11]OFDSenderStorePacket done [10:49:11]KKMCreateOFDPacket done [10:49:11]NVStorageSaveData kkm_last_timestamp [10:49:11]File name is /storage/kkm_last_timestamp [10:49:11]Write 4 bytes [10:49:11]NVStorageSaveData done [10:49:11]ExternCall_PrintAddStr [10:49:11]wPrintStart [10:49:11]Write to MH i2c: 01 00 00 99 0F A8 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [10:49:11]RasterBufferAndPrint [10:49:11]line Счет N : (3)214197 [10:49:11]line ИНН: 02508201610067 [10:49:11]line Контрольно-Кассовый Чек [10:49:11]line ПРОДАЖА [10:49:11]line Товар: 48744706 [10:49:11]line LD Compact Plus [10:49:11]line 1.000 * 113.00 [10:49:11]line = 113.00 [10:49:11]line НДС 12% НСП 1% [10:49:11]line > о реализуемом товаре [10:49:11]line ИТОГО: 113.00 [10:49:11]line НСП 1% : 1.00 [10:49:11]line НДС 12% : 12.00 [10:49:11]line Наличными: 0.00 [10:49:11]line Безнал.: 113.00 [10:49:11]line Место: АЗС № 140 "Партнер Нефть" [10:49:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:49:11]line СНО: Общий режим [10:49:11]line Чек 56 15.07.2024 10:49 [10:49:11]line Смена: 370 ФФД: 1.0 [10:49:11]line ЗНМ: 0300000189 [10:49:11]line РНМ: 0000000000098025 [10:49:11]line Версия ККМ: 001 [10:49:11]line Платежная система: АКБ Кыргызстан [10:49:11]line ФМ: 0000000000965389 [10:49:11]line ФД: 31615 [10:49:11]line ФПД: 251148118933953 [10:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104912&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31615&fm=251148118933953&tin=02508201610067®Number=0000000000098025&sum=11300 [10:49:12]line 0 [10:49:12]OFD Sender: Processing packet 31615 [packets to send 5, broken 4] [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00031615 [10:49:12]OFD Sender: To server: pG, [10:49:12]CommunicateWithHost lk.salyk.kg:30040 [10:49:12]ConnectInit lk.salyk.kg [10:49:12]written 0, free lines is 4095 [10:49:12]Connected sock=7 [10:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 01 00 00 1F FD 08 01 04 A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 37 30 36 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 6C 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A8 FE 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7F 7B 00 00 35 04 06 00 E4 6A FA 6A 41 C1 59 26 95 0F 6B D1 F1 FC [10:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 EF 7E 47 00 2D 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 7F 7B 00 00 F4 03 04 00 B5 AA 94 66 B6 04 01 00 00 8E 0A F8 24 FB 17 37 AA [10:49:12]CommunicateWithHost err = 0 [10:49:12]CheckOFDResponse [10:49:12]1017 (14) - 77093643461234 [10:49:12]1041 (16) - 0000000000965389 [10:49:12]1040 (4) - 31615 [10:49:12]1012 (4) - 15.07.2024 04:51 [10:49:12]1206 (1) - 0 [10:49:12]OFD Sender: Remove packet 31615 [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00031615 [10:49:12]NVStorageDeleteData [10:49:12]Write to MH i2c: 01 00 00 C3 0F D2 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 E4 0C C9 [10:49:12]RasterBufferAndPrint [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]written 0, free lines is 3306 [10:49:12]MH_Cut [10:49:12]Write to MH i2c: D1 01 00 CA 0F 01 AB [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 01 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 01 00 CA 0F 00 AA [10:49:12]Write to MH i2c: 01 00 00 CB 0F DA [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]OFD Sender: No OFD packet to send [10:49:13]*** Cut start [10:49:13]*** Partial cut [10:49:13]*** CUTSNS_PIN = 1 [10:49:13]*** CUTSNS_PIN = 0 [10:49:13]*** Brake cut motor [10:49:13]Read from MH i2c: 01 [10:49:13]MH_I2C_Read... [10:49:13]*** Stop cut motor [10:49:13]*** Cut end [10:49:13]Read from MH i2c: 01 07 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 CB 0F 00 00 00 00 00 FF 0F EF [10:49:13]process_action close_receipt done [10:49:13]requested_data is exist [10:49:13]produce_requested_data [10:49:13]requested_item fm.sn is exist - process it [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 11 00 00 [10:49:13]Write to MH i2c: E2 08 00 CC 0F 80 11 00 00 00 00 00 00 55 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 17 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 17 00 CC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B0 [10:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:49:13]wFMCommunicate OK [10:49:13]requested_item fd.num is exist - process it [10:49:13]SAM_PROTO_GetFieldsCounters [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 13 00 00 [10:49:13]Write to MH i2c: E2 08 00 CD 0F 80 13 00 00 00 00 00 00 58 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 62 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 62 00 CD 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 7F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_GetFieldsCounters done [10:49:14]requested_item shift.num is exist - process it [10:49:14]requested_item shift.opened is exist - process it [10:49:14]req_shift_opened [10:49:14]FM_GetShiftState [10:49:14]SAM_PROTO_GetShiftState [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 13 01 00 [10:49:14]Write to MH i2c: E2 08 00 CE 0F 80 13 01 00 00 00 00 00 5A [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 CE 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 4D [10:49:14]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_GetShiftState done [10:49:14]FM_GetShiftState done [10:49:14]req_shift_opened done [10:49:14]requested_item shift.open_date is exist - process it [10:49:14]req_shift_open_date [10:49:14]req_shift_open_date done [10:49:14]produce_requested_data done [10:49:14]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31615,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:49:14]process_action_free close_receipt [10:49:14]json_value_free [10:49:14]json_value_free done [10:49:14]process_json_proto returns [10:49:14]Send response to host [10:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31615,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:49:14]free response buf [10:49:14]execute_script done [10:49:14]execute_script returns [10:49:14]free content buf [10:49:14]Sock 5.Close socket [10:49:14]Sock 5.Thread stoped [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:12]accept exits with 6 [10:54:12]New connection [10:54:12]New thread 3067559268 created [10:54:12]Thread 3067415908 joined [10:54:12]Waiting for new connection... [10:54:12] Sock 6.Parse request [10:54:12]Sock 6.Check first char [10:54:12]Sock 6.First char is OK [10:54:12]request: POST /json_proto HTTP/1.0 [10:54:12]Method: POST [10:54:12]URL: /json_proto [10:54:12]Method is POST - this is cgi request [10:54:12]url: /json_proto [10:54:12]query_string will be loaded in cgi processing [10:54:12]execute_cgi json_proto POST (null) [10:54:12]execute_cgi path=json_proto method=POST [10:54:12]POST find Content-Length [10:54:12]Host: 172.17.39.68:8080 [10:54:12]Content-Length: 641 [10:54:12]Content-Type: application/json [10:54:12] [10:54:12]POST finish read [10:54:12]Found Content-Length = 641 [10:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214198", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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:54:12]execute_script... [10:54: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)214198", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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:54:12]POST & json_proto [10:54:12]process_json_proto [10:54:12]json parsed OK: [10:54:12]protocol is kg_v1.0 [10:54:12]action value=close_receipt [10:54:12]process_action close_receipt [10:54:12]cmd_close_receipt [10:54:12]MH_GetDate [10:54:12]Write to MH i2c: F0 00 00 CF 0F CD [10:54:12]Write i2c OK [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 09 00 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 09 00 CF 0F 00 D6 FF 94 66 EC 7F 94 66 0A [10:54:12]GetLastDocTimeStamp 1721040552 [10:54:12]current date 1721040854 [10:54:12]FM_GetShiftState [10:54:12]SAM_PROTO_GetShiftState [10:54:12]wFMCommunicate request_size=4 [10:54:12]MH_SAM_APDU [10:54:12]CAPDU: 80 13 01 00 [10:54:12]Write to MH i2c: E2 08 00 D0 0F 80 13 01 00 00 00 00 00 5C [10:54:12]Write i2c OK [10:54:12]MH_I2C_Read... [10:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:12]Read from MH i2c: E2 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: E2 0E 00 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: E2 0E 00 D0 0F 00 09 00 01 86 67 94 66 00 00 00 00 90 00 4F [10:54:12]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:54:12]wFMCommunicate OK [10:54:12]SAM_PROTO_GetShiftState done [10:54:12]FM_GetShiftState done [10:54:12]opened in 1721001862 [10:54:12]opened+sec_in_day 1721088262 [10:54:12]quantity*price = 4000 [10:54:12]sum+1 = 4001 [10:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 57 15.07.2024 10:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31616 ФПД: 13061218443243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105414&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31616&fm=13061218443243&tin=02508201610067®Number=0000000000098025&sum=4000 0 [10:54:13]StoreToDocumentArchive [10:54:13]shift 370 fd 31616 [10:54:13]save to /storage/0370/doc_00031616 [10:54:13]save last doc name /storage/0370/doc_00031616 to /storage/kkm_last_doc_name [10:54:13]save OK [10:54:13]Clear old archive folders... [10:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:54:13]tlvbuf is 0122C650 [10:54:13]SAM_PROTO_ClearQueue [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 09 00 00 [10:54:13]Write to MH i2c: E2 08 00 DD 0F 80 09 00 00 00 00 00 00 5E [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_ClearQueue done [10:54:13]KKMCreateOFDPacket [10:54:13]OFDProtocolAddRootSTLVToBuf [10:54:13]FM_MakeSignedData [10:54:13]FM_MakeSignedData [10:54:13]SAM_PROTO_SignData [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 01 02 [10:54:13]Write to MH i2c: E2 08 00 DE 0F 80 0D 01 02 00 00 00 00 66 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=255 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 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 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 39 00 00 00 F4 03 04 00 D6 FF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [10:54:13]Write to MH i2c: E2 02 01 DF 0F 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 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 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 39 00 00 00 F4 03 04 00 D6 FF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 00 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=31 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 80 7B 00 00 35 04 06 00 0B E1 0D 49 1F EB [10:54:13]Write to MH i2c: E2 22 00 E0 0F 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 80 7B 00 00 35 04 06 00 0B E1 0D 49 1F EB 00 00 E3 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 03 02 [10:54:13]Write to MH i2c: E2 08 00 E1 0F 80 0D 03 02 00 00 00 00 6B [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0B 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0B 00 E1 0F 00 68 9D D3 96 36 F5 66 80 90 00 EB [10:54:13]RAPDU: 68 9D D3 96 36 F5 66 80 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_SignData done [10:54:13]FM_MakeSignedData done [10:54:13]CreateOFDProtocolMessage [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 11 00 00 [10:54:13]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [10:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:54:13]wFMCommunicate OK [10:54:13]CreateOFDProtocolMessage done [10:54:13]OFDSenderStorePacket 31616 [10:54:13]StoreOFDPacket docnum=31616 [10:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 5F A4 1C 01 61 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 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 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 39 00 00 00 F4 03 04 00 D6 FF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 80 7B 00 00 35 04 06 00 0B E1 0D 49 1F EB 68 9D D3 96 36 F5 66 80 [10:54:13]CheckFolder [10:54:13]dirname=/storage/ofd_packets [10:54:13]CheckFolder done [10:54:13]ProducePacketName [10:54:13]name=ofd_packets/00031616 [10:54:13]NVStorageSaveData ofd_packets/00031616 [10:54:13]File name is /storage/ofd_packets/00031616 [10:54:13]Write 322 bytes [10:54:13]NVStorageSaveData done [10:54:13]OFDSenderStorePacket done [10:54:13]KKMCreateOFDPacket done [10:54:13]NVStorageSaveData kkm_last_timestamp [10:54:13]File name is /storage/kkm_last_timestamp [10:54:13]Write 4 bytes [10:54:13]NVStorageSaveData done [10:54:13]ExternCall_PrintAddStr [10:54:13]wPrintStart [10:54:13]Write to MH i2c: 01 00 00 E3 0F F2 [10:54:13]OFD Sender: Processing packet 31616 [packets to send 5, broken 4] [10:54:13]ProducePacketName [10:54:13]name=ofd_packets/00031616 [10:54:13]OFD Sender: To server: pG, [10:54:13]CommunicateWithHost lk.salyk.kg:30040 [10:54:13]ConnectInit lk.salyk.kg [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 FF 0F 07 [10:54:13]RasterBufferAndPrint [10:54:13]line Счет N : (3)214198 [10:54:13]line ИНН: 02508201610067 [10:54:13]line Контрольно-Кассовый Чек [10:54:13]line ПРОДАЖА [10:54:13]line Товар: 40822426 [10:54:13]line Вода Бонаква 0,5л б/г [10:54:13]line 1.000 * 40.00 [10:54:13]line = 40.00 [10:54:13]line НДС 12% НСП 1% [10:54:13]line > о реализуемом товаре [10:54:13]line ИТОГО: 40.00 [10:54:13]line НСП 1% : 0.35 [10:54:13]line НДС 12% : 4.25 [10:54:13]line Наличными: 40.00 [10:54:13]line Безнал.: 0.00 [10:54:13]line Место: АЗС № 140 "Партнер Нефть" [10:54:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:54:13]line СНО: Общий режим [10:54:13]line Чек 57 15.07.2024 10:54 [10:54:13]line Смена: 370 ФФД: 1.0 [10:54:13]line ЗНМ: 0300000189 [10:54:13]line РНМ: 0000000000098025 [10:54:13]line Версия ККМ: 001 [10:54:13]line ФМ: 0000000000965389 [10:54:13]line ФД: 31616 [10:54:13]line ФПД: 13061218443243 [10:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105414&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31616&fm=13061218443243&tin=02508201610067®Number=0000000000098025&sum=4000 [10:54:14]line 0 [10:54:14]Connected sock=5 [10:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 5F A4 1C 01 61 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 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 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 39 00 00 00 F4 03 04 00 D6 FF 94 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 80 7B 00 00 35 04 06 00 0B E1 0D 49 1F EB 68 9D D3 96 36 F5 66 80 [10:54:14]written 0, free lines is 4095 [10:54:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2F D7 47 00 1A E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 80 7B 00 00 F4 03 04 00 E3 AB 94 66 B6 04 01 00 00 B0 5E A8 5F 02 66 72 65 [10:54:14]CommunicateWithHost err = 0 [10:54:14]CheckOFDResponse [10:54:14]1017 (14) - 77093643461234 [10:54:14]1041 (16) - 0000000000965389 [10:54:14]1040 (4) - 31616 [10:54:14]1012 (4) - 15.07.2024 04:56 [10:54:14]1206 (1) - 0 [10:54:14]OFD Sender: Remove packet 31616 [10:54:14]ProducePacketName [10:54:14]name=ofd_packets/00031616 [10:54:14]NVStorageDeleteData [10:54:14]Write to MH i2c: 01 00 00 0B 10 1B [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 07 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 FC 0C 2A [10:54:14]RasterBufferAndPrint [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]written 0, free lines is 3330 [10:54:14]MH_Cut [10:54:14]Write to MH i2c: D1 01 00 12 10 01 F4 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: D1 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: D1 01 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: D1 01 00 12 10 00 F3 [10:54:14]Write to MH i2c: 01 00 00 13 10 23 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]OFD Sender: No OFD packet to send [10:54:15]*** Cut start [10:54:15]*** Partial cut [10:54:15]*** CUTSNS_PIN = 1 [10:54:15]*** CUTSNS_PIN = 0 [10:54:15]*** Brake cut motor [10:54:16]Read from MH i2c: 01 [10:54:16]MH_I2C_Read... [10:54:16]*** Stop cut motor [10:54:16]*** Cut end [10:54:16]Read from MH i2c: 01 07 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [10:54:16]process_action close_receipt done [10:54:16]requested_data is exist [10:54:16]produce_requested_data [10:54:16]requested_item fm.sn is exist - process it [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 11 00 00 [10:54:16]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 17 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F9 [10:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:54:16]wFMCommunicate OK [10:54:16]requested_item fd.num is exist - process it [10:54:16]SAM_PROTO_GetFieldsCounters [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 13 00 00 [10:54:16]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 62 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 62 00 15 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 80 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [10:54:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 80 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:16]wFMCommunicate OK [10:54:16]SAM_PROTO_GetFieldsCounters done [10:54:16]requested_item shift.num is exist - process it [10:54:16]requested_item shift.opened is exist - process it [10:54:16]req_shift_opened [10:54:16]FM_GetShiftState [10:54:16]SAM_PROTO_GetShiftState [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 13 01 00 [10:54:16]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 0E 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 96 [10:54:16]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [10:54:16]wFMCommunicate OK [10:54:16]SAM_PROTO_GetShiftState done [10:54:16]FM_GetShiftState done [10:54:16]req_shift_opened done [10:54:16]requested_item shift.open_date is exist - process it [10:54:16]req_shift_open_date [10:54:16]req_shift_open_date done [10:54:16]produce_requested_data done [10:54:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31616,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [10:54:16]process_action_free close_receipt [10:54:16]json_value_free [10:54:16]json_value_free done [10:54:16]process_json_proto returns [10:54:16]Send response to host [10:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31616,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [10:54:16]free response buf [10:54:16]execute_script done [10:54:16]execute_script returns [10:54:16]free content buf [10:54:16]Sock 6.Close socket [10:54:16]Sock 6.Thread stoped [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]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:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:53]accept exits with 7 [11:14:53]New connection [11:14:53]New thread 3067415908 created [11:14:53]Thread 3067559268 joined [11:14:53]Waiting for new connection... [11:14:53] Sock 7.Parse request [11:14:53]Sock 7.Check first char [11:14:53]Sock 7.First char is OK [11:14:53]request: POST /json_proto HTTP/1.0 [11:14:53]Method: POST [11:14:53]URL: /json_proto [11:14:53]Method is POST - this is cgi request [11:14:53]url: /json_proto [11:14:53]query_string will be loaded in cgi processing [11:14:53]execute_cgi json_proto POST (null) [11:14:53]execute_cgi path=json_proto method=POST [11:14:53]POST find Content-Length [11:14:53]Host: 172.17.39.68:8080 [11:14:53]Content-Length: 728 [11:14:53]Content-Type: application/json [11:14:53] [11:14:53]POST finish read [11:14:53]Found Content-Length = 728 [11:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214199", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:53]execute_script... [11:14:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214199", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:53]POST & json_proto [11:14:53]process_json_proto [11:14:53]json parsed OK: [11:14:53]protocol is kg_v1.0 [11:14:53]action value=close_receipt [11:14:53]process_action close_receipt [11:14:53]cmd_close_receipt [11:14:53]MH_GetDate [11:14:53]Write to MH i2c: F0 00 00 17 10 16 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 09 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 09 00 17 10 00 AF 04 95 66 EC 7F 94 66 32 [11:14:53]GetLastDocTimeStamp 1721040854 [11:14:53]current date 1721042095 [11:14:53]FM_GetShiftState [11:14:53]SAM_PROTO_GetShiftState [11:14:53]wFMCommunicate request_size=4 [11:14:53]MH_SAM_APDU [11:14:53]CAPDU: 80 13 01 00 [11:14:53]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0E 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 98 [11:14:53]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:14:53]wFMCommunicate OK [11:14:53]SAM_PROTO_GetShiftState done [11:14:53]FM_GetShiftState done [11:14:53]opened in 1721001862 [11:14:53]opened+sec_in_day 1721088262 [11:14:53]quantity*price = 10700 [11:14:53]sum+1 = 10701 [11:14:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 58 15.07.2024 11:14 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31617 ФПД: 133339155631357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111455&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31617&fm=133339155631357&tin=02508201610067®Number=0000000000098025&sum=10700 0 [11:14:54]StoreToDocumentArchive [11:14:54]shift 370 fd 31617 [11:14:54]save to /storage/0370/doc_00031617 [11:14:54]save last doc name /storage/0370/doc_00031617 to /storage/kkm_last_doc_name [11:14:54]save OK [11:14:54]Clear old archive folders... [11:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=308 [11:14:54]tlvbuf is 01286420 [11:14:54]SAM_PROTO_ClearQueue [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 09 00 00 [11:14:54]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_ClearQueue done [11:14:54]KKMCreateOFDPacket [11:14:54]OFDProtocolAddRootSTLVToBuf [11:14:54]FM_MakeSignedData [11:14:54]FM_MakeSignedData [11:14:54]SAM_PROTO_SignData [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 01 02 [11:14:54]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]wFMCommunicate request_size=255 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 3A 00 00 00 F4 03 04 00 AF 04 95 66 0E 04 04 00 72 01 00 00 B9 [11:14:54]Write to MH i2c: E2 02 01 27 10 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 3A 00 00 00 F4 03 04 00 AF 04 95 66 0E 04 04 00 72 01 00 00 B9 00 00 41 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]wFMCommunicate request_size=67 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 81 7B 00 00 35 04 06 00 79 45 71 01 8C FD [11:14:54]Write to MH i2c: E2 46 00 28 10 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 81 7B 00 00 35 04 06 00 79 45 71 01 8C FD 00 00 C6 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 03 02 [11:14:54]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0B 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0B 00 29 10 00 E8 B0 9A 7E C7 D7 20 2B 90 00 4E [11:14:54]RAPDU: E8 B0 9A 7E C7 D7 20 2B 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_SignData done [11:14:54]FM_MakeSignedData done [11:14:54]CreateOFDProtocolMessage [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 11 00 00 [11:14:54]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0F [11:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:14:54]wFMCommunicate OK [11:14:54]CreateOFDProtocolMessage done [11:14:54]OFDSenderStorePacket 31617 [11:14:54]StoreOFDPacket docnum=31617 [11:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 48 01 00 00 7C 50 40 01 B8 F8 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 3A 00 00 00 F4 03 04 00 AF 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 81 7B 00 00 35 04 06 00 79 45 71 01 8C FD E8 B0 9A 7E C7 D7 20 2B [11:14:54]CheckFolder [11:14:54]dirname=/storage/ofd_packets [11:14:54]CheckFolder done [11:14:54]ProducePacketName [11:14:54]name=ofd_packets/00031617 [11:14:54]NVStorageSaveData ofd_packets/00031617 [11:14:54]File name is /storage/ofd_packets/00031617 [11:14:54]Write 358 bytes [11:14:54]NVStorageSaveData done [11:14:54]OFDSenderStorePacket done [11:14:54]KKMCreateOFDPacket done [11:14:54]NVStorageSaveData kkm_last_timestamp [11:14:54]File name is /storage/kkm_last_timestamp [11:14:54]Write 4 bytes [11:14:54]NVStorageSaveData done [11:14:54]ExternCall_PrintAddStr [11:14:54]wPrintStart [11:14:54]Write to MH i2c: 01 00 00 2B 10 3B [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [11:14:54]RasterBufferAndPrint [11:14:54]line Счет N : (3)214199 [11:14:54]line ИНН: 02508201610067 [11:14:54]line Контрольно-Кассовый Чек [11:14:54]line ПРОДАЖА [11:14:54]line Товар: 5449000027474 [11:14:54]line Напиток FuzeTea зел чай манго,ромашка 1л [11:14:54]line 1.000 * 107.00 [11:14:54]line = 107.00 [11:14:54]line НДС 12% НСП 1% [11:14:54]line > о реализуемом товаре [11:14:54]line ИТОГО: 107.00 [11:14:54]line НСП 1% : 0.95 [11:14:54]line НДС 12% : 11.36 [11:14:54]line Наличными: 107.00 [11:14:54]line Безнал.: 0.00 [11:14:54]line Место: АЗС № 140 "Партнер Нефть" [11:14:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:14:54]line СНО: Общий режим [11:14:54]line Чек 58 15.07.2024 11:14 [11:14:54]line Смена: 370 ФФД: 1.0 [11:14:54]line ЗНМ: 0300000189 [11:14:54]line РНМ: 0000000000098025 [11:14:54]line Версия ККМ: 001 [11:14:54]line ФМ: 0000000000965389 [11:14:54]line ФД: 31617 [11:14:54]line ФПД: 133339155631357 [11:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111455&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31617&fm=133339155631357&tin=02508201610067®Number=0000000000098025&sum=10700 [11:14:55]line 0 [11:14:55]OFD Sender: Processing packet 31617 [packets to send 5, broken 4] [11:14:55]ProducePacketName [11:14:55]name=ofd_packets/00031617 [11:14:55]OFD Sender: To server: pG, [11:14:55]CommunicateWithHost lk.salyk.kg:30040 [11:14:55]ConnectInit lk.salyk.kg [11:14:55]written 0, free lines is 4095 [11:14:55]Connected sock=5 [11:14:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 48 01 00 00 7C 50 40 01 B8 F8 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 3A 00 00 00 F4 03 04 00 AF 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 81 7B 00 00 35 04 06 00 79 45 71 01 8C FD E8 B0 9A 7E C7 D7 20 2B [11:14:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FC 38 47 00 40 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 81 7B 00 00 F4 03 04 00 BC B0 94 66 B6 04 01 00 00 81 FA 26 F1 46 2B 3E 85 [11:14:55]CommunicateWithHost err = 0 [11:14:55]CheckOFDResponse [11:14:55]1017 (14) - 77093643461234 [11:14:55]1041 (16) - 0000000000965389 [11:14:55]1040 (4) - 31617 [11:14:55]1012 (4) - 15.07.2024 05:16 [11:14:55]1206 (1) - 0 [11:14:55]OFD Sender: Remove packet 31617 [11:14:55]ProducePacketName [11:14:55]name=ofd_packets/00031617 [11:14:55]NVStorageDeleteData [11:14:55]Write to MH i2c: 01 00 00 54 10 64 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 E0 0C 57 [11:14:55]RasterBufferAndPrint [11:14:55]line [11:14:55]line [11:14:55]line [11:14:55]line [11:14:55]line [11:14:55]written 0, free lines is 3302 [11:14:55]MH_Cut [11:14:55]Write to MH i2c: D1 01 00 5B 10 01 3D [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: D1 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: D1 01 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: D1 01 00 5B 10 00 3C [11:14:55]Write to MH i2c: 01 00 00 5C 10 6C [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]OFD Sender: No OFD packet to send [11:14:56]*** Cut start [11:14:56]*** Partial cut [11:14:56]*** CUTSNS_PIN = 1 [11:14:56]*** CUTSNS_PIN = 0 [11:14:56]*** Brake cut motor [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]*** Stop cut motor [11:14:57]*** Cut end [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [11:14:57]process_action close_receipt done [11:14:57]requested_data is exist [11:14:57]produce_requested_data [11:14:57]requested_item fm.sn is exist - process it [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 11 00 00 [11:14:57]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 42 [11:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:14:57]wFMCommunicate OK [11:14:57]requested_item fd.num is exist - process it [11:14:57]SAM_PROTO_GetFieldsCounters [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 13 00 00 [11:14:57]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 62 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 62 00 5E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 81 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 81 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:57]wFMCommunicate OK [11:14:57]SAM_PROTO_GetFieldsCounters done [11:14:57]requested_item shift.num is exist - process it [11:14:57]requested_item shift.opened is exist - process it [11:14:57]req_shift_opened [11:14:57]FM_GetShiftState [11:14:57]SAM_PROTO_GetShiftState [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 13 01 00 [11:14:57]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DF [11:14:57]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:14:57]wFMCommunicate OK [11:14:57]SAM_PROTO_GetShiftState done [11:14:57]FM_GetShiftState done [11:14:57]req_shift_opened done [11:14:57]requested_item shift.open_date is exist - process it [11:14:57]req_shift_open_date [11:14:57]req_shift_open_date done [11:14:57]produce_requested_data done [11:14:57]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31617,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:14:57]process_action_free close_receipt [11:14:57]json_value_free [11:14:57]json_value_free done [11:14:57]process_json_proto returns [11:14:57]Send response to host [11:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31617,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:14:57]free response buf [11:14:57]execute_script done [11:14:57]execute_script returns [11:14:57]free content buf [11:14:57]Sock 7.Close socket [11:14:57]Sock 7.Thread stoped [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:21]accept exits with 6 [11:15:21]New connection [11:15:21]New thread 3067559268 created [11:15:21]Thread 3067415908 joined [11:15:21]Waiting for new connection... [11:15:21] Sock 6.Parse request [11:15:21]Sock 6.Check first char [11:15:21]Sock 6.First char is OK [11:15:21]request: POST /json_proto HTTP/1.0 [11:15:21]Method: POST [11:15:21]URL: /json_proto [11:15:21]Method is POST - this is cgi request [11:15:21]url: /json_proto [11:15:21]query_string will be loaded in cgi processing [11:15:21]execute_cgi json_proto POST (null) [11:15:21]execute_cgi path=json_proto method=POST [11:15:21]POST find Content-Length [11:15:21]Host: 172.17.39.68:8080 [11:15:21]Content-Length: 623 [11:15:21]Content-Type: application/json [11:15:21] [11:15:21]POST finish read [11:15:21]Found Content-Length = 623 [11:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214200", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:21]execute_script... [11:15: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)214200", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:21]POST & json_proto [11:15:21]process_json_proto [11:15:21]json parsed OK: [11:15:21]protocol is kg_v1.0 [11:15:21]action value=close_receipt [11:15:21]process_action close_receipt [11:15:21]cmd_close_receipt [11:15:21]MH_GetDate [11:15:21]Write to MH i2c: F0 00 00 60 10 5F [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 09 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 09 00 60 10 00 CB 04 95 66 EC 7F 94 66 97 [11:15:21]GetLastDocTimeStamp 1721042095 [11:15:21]current date 1721042123 [11:15:21]FM_GetShiftState [11:15:21]SAM_PROTO_GetShiftState [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 13 01 00 [11:15:21]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0E 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E1 [11:15:21]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:15:21]wFMCommunicate OK [11:15:21]SAM_PROTO_GetShiftState done [11:15:21]FM_GetShiftState done [11:15:21]opened in 1721001862 [11:15:21]opened+sec_in_day 1721088262 [11:15:21]quantity*price = 28000 [11:15:21]sum+1 = 28001 [11:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 59 15.07.2024 11:15 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31618 ФПД: 67668962859807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111523&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31618&fm=67668962859807&tin=02508201610067®Number=0000000000098025&sum=28000 0 [11:15:22]StoreToDocumentArchive [11:15:22]shift 370 fd 31618 [11:15:22]save to /storage/0370/doc_00031618 [11:15:22]save last doc name /storage/0370/doc_00031618 to /storage/kkm_last_doc_name [11:15:22]save OK [11:15:22]Clear old archive folders... [11:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:15:22]tlvbuf is 01255D40 [11:15:22]SAM_PROTO_ClearQueue [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 09 00 00 [11:15:22]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]SAM_PROTO_ClearQueue done [11:15:22]KKMCreateOFDPacket [11:15:22]OFDProtocolAddRootSTLVToBuf [11:15:22]FM_MakeSignedData [11:15:22]FM_MakeSignedData [11:15:22]SAM_PROTO_SignData [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 0D 01 02 [11:15:22]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]wFMCommunicate request_size=255 [11:15:22]MH_SAM_APDU [11:15:22]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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 CB 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [11:15:22]Write to MH i2c: E2 02 01 70 10 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 CB 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 F0 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]wFMCommunicate request_size=34 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 82 7B 00 00 35 04 06 00 3D 8B 68 7E 5B 1F [11:15:22]Write to MH i2c: E2 25 00 71 10 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 82 7B 00 00 35 04 06 00 3D 8B 68 7E 5B 1F 00 00 E9 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 0D 03 02 [11:15:22]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 0B 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 0B 00 72 10 00 93 D6 4D 1C 73 DC 69 FE 90 00 86 [11:15:22]RAPDU: 93 D6 4D 1C 73 DC 69 FE 90 00 [11:15:22]wFMCommunicate OK [11:15:22]SAM_PROTO_SignData done [11:15:22]FM_MakeSignedData done [11:15:22]CreateOFDProtocolMessage [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 11 00 00 [11:15:22]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 17 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 58 [11:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:15:22]wFMCommunicate OK [11:15:22]CreateOFDProtocolMessage done [11:15:22]OFDSenderStorePacket 31618 [11:15:22]StoreOFDPacket docnum=31618 [11:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 08 09 1F 01 03 98 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 CB 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 82 7B 00 00 35 04 06 00 3D 8B 68 7E 5B 1F 93 D6 4D 1C 73 DC 69 FE [11:15:22]CheckFolder [11:15:22]dirname=/storage/ofd_packets [11:15:22]CheckFolder done [11:15:22]ProducePacketName [11:15:22]name=ofd_packets/00031618 [11:15:22]NVStorageSaveData ofd_packets/00031618 [11:15:22]File name is /storage/ofd_packets/00031618 [11:15:22]Write 325 bytes [11:15:22]NVStorageSaveData done [11:15:22]OFDSenderStorePacket done [11:15:22]KKMCreateOFDPacket done [11:15:22]NVStorageSaveData kkm_last_timestamp [11:15:22]File name is /storage/kkm_last_timestamp [11:15:22]Write 4 bytes [11:15:22]NVStorageSaveData done [11:15:22]ExternCall_PrintAddStr [11:15:22]wPrintStart [11:15:22]Write to MH i2c: 01 00 00 74 10 84 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 07 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [11:15:22]RasterBufferAndPrint [11:15:22]line Счет N : (3)214200 [11:15:22]line ИНН: 02508201610067 [11:15:22]line Контрольно-Кассовый Чек [11:15:22]line ПРОДАЖА [11:15:22]line Товар: 48743587 [11:15:22]line Сигареты Winston XStyle Silver [11:15:22]line 2.000 * 140.00 [11:15:22]line = 280.00 [11:15:22]line НДС 12% НСП 1% [11:15:22]line > о реализуемом товаре [11:15:22]line ИТОГО: 280.00 [11:15:22]line НСП 1% : 2.48 [11:15:22]line НДС 12% : 29.73 [11:15:22]line Наличными: 280.00 [11:15:22]line Безнал.: 0.00 [11:15:22]line Место: АЗС № 140 "Партнер Нефть" [11:15:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:15:22]line СНО: Общий режим [11:15:22]line Чек 59 15.07.2024 11:15 [11:15:22]line Смена: 370 ФФД: 1.0 [11:15:22]line ЗНМ: 0300000189 [11:15:22]line РНМ: 0000000000098025 [11:15:22]line Версия ККМ: 001 [11:15:22]line ФМ: 0000000000965389 [11:15:22]line ФД: 31618 [11:15:22]line ФПД: 67668962859807 [11:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111523&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31618&fm=67668962859807&tin=02508201610067®Number=0000000000098025&sum=28000 [11:15:23]OFD Sender: Processing packet 31618 [packets to send 5, broken 4] [11:15:23]ProducePacketName [11:15:23]name=ofd_packets/00031618 [11:15:23]OFD Sender: To server: pG, [11:15:23]CommunicateWithHost lk.salyk.kg:30040 [11:15:23]ConnectInit lk.salyk.kg [11:15:23]line 0 [11:15:23]written 0, free lines is 4095 [11:15:23]Connected sock=7 [11:15:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 08 09 1F 01 03 98 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 CB 04 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 82 7B 00 00 35 04 06 00 3D 8B 68 7E 5B 1F 93 D6 4D 1C 73 DC 69 FE [11:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3E D7 47 00 EB AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 82 7B 00 00 F4 03 04 00 D8 B0 94 66 B6 04 01 00 00 63 9B D7 F7 34 C5 53 B9 [11:15:23]CommunicateWithHost err = 0 [11:15:23]CheckOFDResponse [11:15:23]1017 (14) - 77093643461234 [11:15:23]1041 (16) - 0000000000965389 [11:15:23]1040 (4) - 31618 [11:15:23]1012 (4) - 15.07.2024 05:17 [11:15:23]1206 (1) - 0 [11:15:23]OFD Sender: Remove packet 31618 [11:15:23]ProducePacketName [11:15:23]name=ofd_packets/00031618 [11:15:23]NVStorageDeleteData [11:15:23]Write to MH i2c: 01 00 00 9D 10 AD [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 07 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 E4 0C A4 [11:15:23]RasterBufferAndPrint [11:15:23]line [11:15:23]line [11:15:23]line [11:15:23]line [11:15:23]line [11:15:23]written 0, free lines is 3307 [11:15:23]MH_Cut [11:15:23]Write to MH i2c: D1 01 00 A4 10 01 86 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: D1 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: D1 01 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: D1 01 00 A4 10 00 85 [11:15:23]Write to MH i2c: 01 00 00 A5 10 B5 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:24]OFD Sender: No OFD packet to send [11:15:24]*** Cut start [11:15:24]*** Partial cut [11:15:24]*** CUTSNS_PIN = 1 [11:15:24]*** CUTSNS_PIN = 0 [11:15:24]*** Brake cut motor [11:15:25]Read from MH i2c: 01 [11:15:25]MH_I2C_Read... [11:15:25]*** Stop cut motor [11:15:25]*** Cut end [11:15:25]Read from MH i2c: 01 07 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 FF 0F CA [11:15:25]process_action close_receipt done [11:15:25]requested_data is exist [11:15:25]produce_requested_data [11:15:25]requested_item fm.sn is exist - process it [11:15:25]wFMCommunicate request_size=4 [11:15:25]MH_SAM_APDU [11:15:25]CAPDU: 80 11 00 00 [11:15:25]Write to MH i2c: E2 08 00 A6 10 80 11 00 00 00 00 00 00 30 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 17 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 17 00 A6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [11:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:15:25]wFMCommunicate OK [11:15:25]requested_item fd.num is exist - process it [11:15:25]SAM_PROTO_GetFieldsCounters [11:15:25]wFMCommunicate request_size=4 [11:15:25]MH_SAM_APDU [11:15:25]CAPDU: 80 13 00 00 [11:15:25]Write to MH i2c: E2 08 00 A7 10 80 13 00 00 00 00 00 00 33 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 62 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 62 00 A7 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 82 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 82 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:25]wFMCommunicate OK [11:15:25]SAM_PROTO_GetFieldsCounters done [11:15:25]requested_item shift.num is exist - process it [11:15:25]requested_item shift.opened is exist - process it [11:15:25]req_shift_opened [11:15:25]FM_GetShiftState [11:15:25]SAM_PROTO_GetShiftState [11:15:25]wFMCommunicate request_size=4 [11:15:25]MH_SAM_APDU [11:15:25]CAPDU: 80 13 01 00 [11:15:25]Write to MH i2c: E2 08 00 A8 10 80 13 01 00 00 00 00 00 35 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 0E 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 0E 00 A8 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 28 [11:15:25]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:15:25]wFMCommunicate OK [11:15:25]SAM_PROTO_GetShiftState done [11:15:25]FM_GetShiftState done [11:15:25]req_shift_opened done [11:15:25]requested_item shift.open_date is exist - process it [11:15:25]req_shift_open_date [11:15:25]req_shift_open_date done [11:15:25]produce_requested_data done [11:15:25]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31618,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:15:25]process_action_free close_receipt [11:15:25]json_value_free [11:15:25]json_value_free done [11:15:25]process_json_proto returns [11:15:25]Send response to host [11:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31618,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:15:25]free response buf [11:15:25]execute_script done [11:15:25]execute_script returns [11:15:25]free content buf [11:15:25]Sock 6.Close socket [11:15:25]Sock 6.Thread stoped [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]accept exits with 5 [11:20:34]New connection [11:20:34]New thread 3067415908 created [11:20:34]Thread 3067559268 joined [11:20:34]Waiting for new connection... [11:20:34] Sock 5.Parse request [11:20:34]Sock 5.Check first char [11:20:34]Sock 5.First char is OK [11:20:34]request: POST /json_proto HTTP/1.0 [11:20:34]Method: POST [11:20:34]URL: /json_proto [11:20:34]Method is POST - this is cgi request [11:20:34]url: /json_proto [11:20:34]query_string will be loaded in cgi processing [11:20:34]execute_cgi json_proto POST (null) [11:20:34]execute_cgi path=json_proto method=POST [11:20:34]POST find Content-Length [11:20:34]Host: 172.17.39.68:8080 [11:20:34]Content-Length: 1039 [11:20:34]Content-Type: application/json [11:20:34] [11:20:34]POST finish read [11:20:34]Found Content-Length = 1039 [11:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214201", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 2.000, "sum" : 230.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" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:34]execute_script... [11: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)214201", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 2.000, "sum" : 230.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" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:34]POST & json_proto [11:20:34]process_json_proto [11:20:34]json parsed OK: [11:20:34]protocol is kg_v1.0 [11:20:34]action value=close_receipt [11:20:34]process_action close_receipt [11:20:34]cmd_close_receipt [11:20:34]MH_GetDate [11:20:34]Write to MH i2c: F0 00 00 A9 10 A8 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: F0 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: F0 09 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: F0 09 00 A9 10 00 04 06 95 66 EC 7F 94 66 1B [11:20:34]GetLastDocTimeStamp 1721042123 [11:20:34]current date 1721042436 [11:20:34]FM_GetShiftState [11:20:34]SAM_PROTO_GetShiftState [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 13 01 00 [11:20:34]Write to MH i2c: E2 08 00 AA 10 80 13 01 00 00 00 00 00 37 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]OFD Sender: No OFD packet to send [11:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0E 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0E 00 AA 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 2A [11:20:34]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:20:34]wFMCommunicate OK [11:20:34]SAM_PROTO_GetShiftState done [11:20:34]FM_GetShiftState done [11:20:34]opened in 1721001862 [11:20:34]opened+sec_in_day 1721088262 [11:20:34]quantity*price = 15500 [11:20:34]sum+1 = 15501 [11:20:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.40 НДС 12% : 40.88 Наличными: 0.00 Безнал.: 385.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 60 15.07.2024 11:20 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31619 ФПД: 115013171023670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112036&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31619&fm=115013171023670&tin=02508201610067®Number=0000000000098025&sum=38500 0 [11:20:35]StoreToDocumentArchive [11:20:35]shift 370 fd 31619 [11:20:35]save to /storage/0370/doc_00031619 [11:20:35]save last doc name /storage/0370/doc_00031619 to /storage/kkm_last_doc_name [11:20:35]save OK [11:20:35]Clear old archive folders... [11:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=380 [11:20:35]tlvbuf is 012559D0 [11:20:35]SAM_PROTO_ClearQueue [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 09 00 00 [11:20:35]Write to MH i2c: E2 08 00 B7 10 80 09 00 00 00 00 00 00 39 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_ClearQueue done [11:20:35]KKMCreateOFDPacket [11:20:35]OFDProtocolAddRootSTLVToBuf [11:20:35]FM_MakeSignedData [11:20:35]FM_MakeSignedData [11:20:35]SAM_PROTO_SignData [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 01 02 [11:20:35]Write to MH i2c: E2 08 00 B8 10 80 0D 01 02 00 00 00 00 41 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=255 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 [11:20:35]Write to MH i2c: E2 02 01 B9 10 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 24 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=139 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 06 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 83 7B 00 00 35 04 06 00 68 9A 97 34 0F 36 [11:20:35]Write to MH i2c: E2 8E 00 BA 10 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 06 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 83 7B 00 00 35 04 06 00 68 9A 97 34 0F 36 00 00 49 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 03 02 [11:20:35]Write to MH i2c: E2 08 00 BB 10 80 0D 03 02 00 00 00 00 46 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0B 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0B 00 BB 10 00 60 BA 20 BD 8D 96 3F 14 90 00 B4 [11:20:35]RAPDU: 60 BA 20 BD 8D 96 3F 14 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_SignData done [11:20:35]FM_MakeSignedData done [11:20:35]CreateOFDProtocolMessage [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 11 00 00 [11:20:35]Write to MH i2c: E2 08 00 BC 10 80 11 00 00 00 00 00 00 46 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 BC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A1 [11:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:20:36]wFMCommunicate OK [11:20:36]CreateOFDProtocolMessage done [11:20:36]OFDSenderStorePacket 31619 [11:20:36]StoreOFDPacket docnum=31619 [11:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 01 00 00 96 4F 88 01 38 EC 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 06 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 83 7B 00 00 35 04 06 00 68 9A 97 34 0F 36 60 BA 20 BD 8D 96 3F 14 [11:20:36]CheckFolder [11:20:36]dirname=/storage/ofd_packets [11:20:36]CheckFolder done [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00031619 [11:20:36]NVStorageSaveData ofd_packets/00031619 [11:20:36]File name is /storage/ofd_packets/00031619 [11:20:36]Write 430 bytes [11:20:36]NVStorageSaveData done [11:20:36]OFDSenderStorePacket done [11:20:36]KKMCreateOFDPacket done [11:20:36]NVStorageSaveData kkm_last_timestamp [11:20:36]File name is /storage/kkm_last_timestamp [11:20:36]Write 4 bytes [11:20:36]NVStorageSaveData done [11:20:36]ExternCall_PrintAddStr [11:20:36]wPrintStart [11:20:36]Write to MH i2c: 01 00 00 BD 10 CD [11:20:36]OFD Sender: Processing packet 31619 [packets to send 5, broken 4] [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00031619 [11:20:36]OFD Sender: To server: pG, [11:20:36]CommunicateWithHost lk.salyk.kg:30040 [11:20:36]ConnectInit lk.salyk.kg [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 FF 0F E2 [11:20:36]RasterBufferAndPrint [11:20:36]line Счет N : (3)214201 [11:20:36]line ИНН: 02508201610067 [11:20:36]line Контрольно-Кассовый Чек [11:20:36]line ПРОДАЖА [11:20:36]line Товар: 48746526 [11:20:36]line Сигареты Mevius Wind Blue [11:20:36]line 1.000 * 155.00 [11:20:36]line = 155.00 [11:20:36]line НДС 12% НСП 1% [11:20:36]line > о реализуемом товаре [11:20:36]line Товар: 2000036210013 [11:20:36]line Кофе Капучино (GABB TRADE) [11:20:36]line 2.000 * 115.00 [11:20:36]line = 230.00 [11:20:36]line НДС 12% НСП 1% [11:20:36]line > о реализуемом товаре [11:20:36]line ИТОГО: 385.00 [11:20:36]line НСП 1% : 3.40 [11:20:36]line НДС 12% : 40.88 [11:20:36]line Наличными: 0.00 [11:20:36]line Безнал.: 385.00 [11:20:36]line Место: АЗС № 140 "Партнер Нефть" [11:20:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:20:36]line СНО: Общий режим [11:20:36]line Чек 60 15.07.2024 11:20 [11:20:36]line Смена: 370 ФФД: 1.0 [11:20:36]line ЗНМ: 0300000189 [11:20:36]line РНМ: 0000000000098025 [11:20:36]line Версия ККМ: 001 [11:20:36]line Платежная система: O! деньги [11:20:36]line ФМ: 0000000000965389 [11:20:36]line ФД: 31619 [11:20:36]line ФПД: 115013171023670 [11:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112036&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31619&fm=115013171023670&tin=02508201610067®Number=0000000000098025&sum=38500 [11:20:36]line 0 [11:20:36]written 0, free lines is 4095 [11:20:36]Connected sock=9 [11:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 01 00 00 96 4F 88 01 38 EC 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 06 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 83 7B 00 00 35 04 06 00 68 9A 97 34 0F 36 60 BA 20 BD 8D 96 3F 14 [11:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 EA 60 47 00 7A 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 83 7B 00 00 F4 03 04 00 12 B2 94 66 B6 04 01 00 00 EC 27 D8 D7 AB 3A 7E 8D [11:20:36]CommunicateWithHost err = 0 [11:20:36]CheckOFDResponse [11:20:36]1017 (14) - 77093643461234 [11:20:36]1041 (16) - 0000000000965389 [11:20:36]1040 (4) - 31619 [11:20:36]1012 (4) - 15.07.2024 05:22 [11:20:36]1206 (1) - 0 [11:20:36]OFD Sender: Remove packet 31619 [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00031619 [11:20:36]NVStorageDeleteData [11:20:36]Write to MH i2c: 01 00 00 ED 10 FD [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 ED 10 00 00 00 00 00 8D 0C 9D [11:20:36]RasterBufferAndPrint [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]written 0, free lines is 3219 [11:20:36]MH_Cut [11:20:36]Write to MH i2c: D1 01 00 F4 10 01 D6 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 01 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 01 00 F4 10 00 D5 [11:20:36]Write to MH i2c: 01 00 00 F5 10 05 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:37]OFD Sender: No OFD packet to send [11:20:37]*** Cut start [11:20:37]*** Partial cut [11:20:37]*** CUTSNS_PIN = 1 [11:20:37]*** CUTSNS_PIN = 0 [11:20:37]*** Brake cut motor [11:20:38]Read from MH i2c: 01 [11:20:38]MH_I2C_Read... [11:20:38]*** Stop cut motor [11:20:38]*** Cut end [11:20:38]Read from MH i2c: 01 07 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: 01 07 00 F5 10 00 00 00 00 00 FF 0F 1A [11:20:38]process_action close_receipt done [11:20:38]requested_data is exist [11:20:38]produce_requested_data [11:20:38]requested_item fm.sn is exist - process it [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 11 00 00 [11:20:38]Write to MH i2c: E2 08 00 F6 10 80 11 00 00 00 00 00 00 80 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 17 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 17 00 F6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DB [11:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:20:38]wFMCommunicate OK [11:20:38]requested_item fd.num is exist - process it [11:20:38]SAM_PROTO_GetFieldsCounters [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 13 00 00 [11:20:38]Write to MH i2c: E2 08 00 F7 10 80 13 00 00 00 00 00 00 83 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 62 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 62 00 F7 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 83 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [11:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 83 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:38]wFMCommunicate OK [11:20:38]SAM_PROTO_GetFieldsCounters done [11:20:38]requested_item shift.num is exist - process it [11:20:38]requested_item shift.opened is exist - process it [11:20:38]req_shift_opened [11:20:38]FM_GetShiftState [11:20:38]SAM_PROTO_GetShiftState [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 13 01 00 [11:20:38]Write to MH i2c: E2 08 00 F8 10 80 13 01 00 00 00 00 00 85 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 0E 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 0E 00 F8 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 78 [11:20:38]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:20:38]wFMCommunicate OK [11:20:38]SAM_PROTO_GetShiftState done [11:20:38]FM_GetShiftState done [11:20:38]req_shift_opened done [11:20:38]requested_item shift.open_date is exist - process it [11:20:38]req_shift_open_date [11:20:38]req_shift_open_date done [11:20:38]produce_requested_data done [11:20:38]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31619,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:20:38]process_action_free close_receipt [11:20:38]json_value_free [11:20:38]json_value_free done [11:20:38]process_json_proto returns [11:20:38]Send response to host [11:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31619,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:20:38]free response buf [11:20:38]execute_script done [11:20:38]execute_script returns [11:20:38]free content buf [11:20:38]Sock 5.Close socket [11:20:38]Sock 5.Thread stoped [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24: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:23]accept exits with 6 [11:28:23]New connection [11:28:23]New thread 3067559268 created [11:28:23]Thread 3067415908 joined [11:28:23]Waiting for new connection... [11:28:23] Sock 6.Parse request [11:28:23]Sock 6.Check first char [11:28:23]Sock 6.First char is OK [11:28:23]request: POST /json_proto HTTP/1.0 [11:28:23]Method: POST [11:28:23]URL: /json_proto [11:28:23]Method is POST - this is cgi request [11:28:23]url: /json_proto [11:28:23]query_string will be loaded in cgi processing [11:28:23]execute_cgi json_proto POST (null) [11:28:23]execute_cgi path=json_proto method=POST [11:28:23]POST find Content-Length [11:28:23]Host: 172.17.39.68:8080 [11:28:23]Content-Length: 925 [11:28:23]Content-Type: application/json [11:28:23] [11:28:23]POST finish read [11:28:23]Found Content-Length = 925 [11:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214202", "tax_sys" : 0, "items" : [ { "code": "4650243871248", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 2.000, "sum" : 220.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" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [11:28:23]execute_script... [11:28: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)214202", "tax_sys" : 0, "items" : [ { "code": "4650243871248", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 2.000, "sum" : 220.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" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [11:28:23]POST & json_proto [11:28:23]process_json_proto [11:28:23]json parsed OK: [11:28:23]protocol is kg_v1.0 [11:28:23]action value=close_receipt [11:28:23]process_action close_receipt [11:28:23]cmd_close_receipt [11:28:23]MH_GetDate [11:28:23]Write to MH i2c: F0 00 00 F9 10 F8 [11:28:23]Write i2c OK [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: F0 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: F0 09 00 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: F0 09 00 F9 10 00 D9 07 95 66 EC 7F 94 66 41 [11:28:23]GetLastDocTimeStamp 1721042436 [11:28:23]current date 1721042905 [11:28:23]FM_GetShiftState [11:28:23]SAM_PROTO_GetShiftState [11:28:23]wFMCommunicate request_size=4 [11:28:23]MH_SAM_APDU [11:28:23]CAPDU: 80 13 01 00 [11:28:23]Write to MH i2c: E2 08 00 FA 10 80 13 01 00 00 00 00 00 87 [11:28:23]Write i2c OK [11:28:23]MH_I2C_Read... [11:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:23]Read from MH i2c: E2 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 0E 00 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 0E 00 FA 10 00 09 00 01 86 67 94 66 00 00 00 00 90 00 7A [11:28:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:28:23]wFMCommunicate OK [11:28:23]SAM_PROTO_GetShiftState done [11:28:23]FM_GetShiftState done [11:28:23]opened in 1721001862 [11:28:23]opened+sec_in_day 1721088262 [11:28:23]quantity*price = 22000 [11:28:23]sum+1 = 22001 [11:28:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 61 15.07.2024 11:28 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31620 ФПД: 55036252730925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112825&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31620&fm=55036252730925&tin=02508201610067®Number=0000000000098025&sum=33000 0 [11:28:24]StoreToDocumentArchive [11:28:24]shift 370 fd 31620 [11:28:24]save to /storage/0370/doc_00031620 [11:28:24]save last doc name /storage/0370/doc_00031620 to /storage/kkm_last_doc_name [11:28:24]save OK [11:28:24]Clear old archive folders... [11:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=407 [11:28:24]tlvbuf is 01255370 [11:28:24]SAM_PROTO_ClearQueue [11:28:24]wFMCommunicate request_size=4 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 09 00 00 [11:28:24]Write to MH i2c: E2 08 00 07 11 80 09 00 00 00 00 00 00 8A [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [11:28:24]RAPDU: 90 00 [11:28:24]wFMCommunicate OK [11:28:24]SAM_PROTO_ClearQueue done [11:28:24]KKMCreateOFDPacket [11:28:24]OFDProtocolAddRootSTLVToBuf [11:28:24]FM_MakeSignedData [11:28:24]FM_MakeSignedData [11:28:24]SAM_PROTO_SignData [11:28:24]wFMCommunicate request_size=4 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 0D 01 02 [11:28:24]Write to MH i2c: E2 08 00 08 11 80 0D 01 02 00 00 00 00 92 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [11:28:24]RAPDU: 90 00 [11:28:24]wFMCommunicate OK [11:28:24]wFMCommunicate request_size=255 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [11:28:24]Write to MH i2c: E2 02 01 09 11 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 67 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [11:28:24]RAPDU: 90 00 [11:28:24]wFMCommunicate OK [11:28:24]wFMCommunicate request_size=166 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 0D 02 02 A1 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 3D 00 00 00 F4 03 04 00 D9 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 84 7B 00 00 35 04 06 00 32 0E 20 4B 36 2D [11:28:24]Write to MH i2c: E2 A9 00 0A 11 80 0D 02 02 A1 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 3D 00 00 00 F4 03 04 00 D9 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 84 7B 00 00 35 04 06 00 32 0E 20 4B 36 2D 00 00 65 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [11:28:25]RAPDU: 90 00 [11:28:25]wFMCommunicate OK [11:28:25]wFMCommunicate request_size=4 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 0D 03 02 [11:28:25]Write to MH i2c: E2 08 00 0B 11 80 0D 03 02 00 00 00 00 97 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 0B 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 0B 00 0B 11 00 BF E2 3B CB 7A 33 2A 29 90 00 3F [11:28:25]RAPDU: BF E2 3B CB 7A 33 2A 29 90 00 [11:28:25]wFMCommunicate OK [11:28:25]SAM_PROTO_SignData done [11:28:25]FM_MakeSignedData done [11:28:25]CreateOFDProtocolMessage [11:28:25]wFMCommunicate request_size=4 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 11 00 00 [11:28:25]Write to MH i2c: E2 08 00 0C 11 80 11 00 00 00 00 00 00 97 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 17 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 17 00 0C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F2 [11:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:28:25]wFMCommunicate OK [11:28:25]CreateOFDProtocolMessage done [11:28:25]OFDSenderStorePacket 31620 [11:28:25]StoreOFDPacket docnum=31620 [11:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AB 01 00 00 63 87 A3 01 EF A8 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 3D 00 00 00 F4 03 04 00 D9 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 84 7B 00 00 35 04 06 00 32 0E 20 4B 36 2D BF E2 3B CB 7A 33 2A 29 [11:28:25]CheckFolder [11:28:25]dirname=/storage/ofd_packets [11:28:25]CheckFolder done [11:28:25]ProducePacketName [11:28:25]name=ofd_packets/00031620 [11:28:25]NVStorageSaveData ofd_packets/00031620 [11:28:25]File name is /storage/ofd_packets/00031620 [11:28:25]Write 457 bytes [11:28:25]NVStorageSaveData done [11:28:25]OFDSenderStorePacket done [11:28:25]KKMCreateOFDPacket done [11:28:25]NVStorageSaveData kkm_last_timestamp [11:28:25]File name is /storage/kkm_last_timestamp [11:28:25]Write 4 bytes [11:28:25]NVStorageSaveData done [11:28:25]ExternCall_PrintAddStr [11:28:25]wPrintStart [11:28:25]Write to MH i2c: 01 00 00 0D 11 1E [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 07 00 [11:28:25]MH_I2C_Read... [11:28:25]OFD Sender: Processing packet 31620 [packets to send 5, broken 4] [11:28:25]ProducePacketName [11:28:25]name=ofd_packets/00031620 [11:28:25]OFD Sender: To server: pG, [11:28:25]CommunicateWithHost lk.salyk.kg:30040 [11:28:25]ConnectInit lk.salyk.kg [11:28:25]Read from MH i2c: 01 07 00 0D 11 00 00 00 00 00 FF 0F 33 [11:28:25]RasterBufferAndPrint [11:28:25]line Счет N : (3)214202 [11:28:25]line ИНН: 02508201610067 [11:28:25]line Контрольно-Кассовый Чек [11:28:25]line ПРОДАЖА [11:28:25]line Товар: 4650243871248 [11:28:25]line Напиток Gorilla ж/б 0,450л EXTRA [11:28:25]line 2.000 * 110.00 [11:28:25]line = 220.00 [11:28:25]line НДС 12% НСП 1% [11:28:25]line > о реализуемом товаре [11:28:25]line Товар: 4870022003305 [11:28:25]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:28:25]line 1.000 * 110.00 [11:28:25]line = 110.00 [11:28:25]line НДС 12% НСП 1% [11:28:25]line > о реализуемом товаре [11:28:25]line ИТОГО: 330.00 [11:28:25]line НСП 1% : 2.92 [11:28:25]line НДС 12% : 35.04 [11:28:25]line Наличными: 330.00 [11:28:25]line Безнал.: 0.00 [11:28:25]line Место: АЗС № 140 "Партнер Нефть" [11:28:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:28:25]line СНО: Общий режим [11:28:25]line Чек 61 15.07.2024 11:28 [11:28:25]line Смена: 370 ФФД: 1.0 [11:28:25]line ЗНМ: 0300000189 [11:28:25]line РНМ: 0000000000098025 [11:28:25]line Версия ККМ: 001 [11:28:25]line ФМ: 0000000000965389 [11:28:25]line ФД: 31620 [11:28:25]line ФПД: 55036252730925 [11:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112825&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31620&fm=55036252730925&tin=02508201610067®Number=0000000000098025&sum=33000 [11:28:25]line 0 [11:28:25]written 0, free lines is 4095 [11:28:25]Connected sock=7 [11:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AB 01 00 00 63 87 A3 01 EF A8 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 3D 00 00 00 F4 03 04 00 D9 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 84 7B 00 00 35 04 06 00 32 0E 20 4B 36 2D BF E2 3B CB 7A 33 2A 29 [11:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E3 CA 47 00 F9 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 84 7B 00 00 F4 03 04 00 E7 B3 94 66 B6 04 01 00 00 91 E3 80 79 B0 73 17 F2 [11:28:25]CommunicateWithHost err = 0 [11:28:25]CheckOFDResponse [11:28:25]1017 (14) - 77093643461234 [11:28:25]1041 (16) - 0000000000965389 [11:28:25]1040 (4) - 31620 [11:28:25]1012 (4) - 15.07.2024 05:30 [11:28:25]1206 (1) - 0 [11:28:25]OFD Sender: Remove packet 31620 [11:28:25]ProducePacketName [11:28:25]name=ofd_packets/00031620 [11:28:25]NVStorageDeleteData [11:28:25]Write to MH i2c: 01 00 00 3D 11 4E [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 07 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 96 0C F7 [11:28:25]RasterBufferAndPrint [11:28:25]line [11:28:25]line [11:28:25]line [11:28:25]line [11:28:25]line [11:28:26]written 0, free lines is 3228 [11:28:26]MH_Cut [11:28:26]Write to MH i2c: D1 01 00 44 11 01 27 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 01 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 01 00 44 11 00 26 [11:28:26]Write to MH i2c: 01 00 00 45 11 56 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]OFD Sender: No OFD packet to send [11:28:26]*** Cut start [11:28:26]*** Partial cut [11:28:26]*** CUTSNS_PIN = 1 [11:28:26]*** CUTSNS_PIN = 0 [11:28:27]*** Brake cut motor [11:28:27]Read from MH i2c: 01 [11:28:27]MH_I2C_Read... [11:28:27]*** Stop cut motor [11:28:27]*** Cut end [11:28:27]Read from MH i2c: 01 07 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [11:28:27]process_action close_receipt done [11:28:27]requested_data is exist [11:28:27]produce_requested_data [11:28:27]requested_item fm.sn is exist - process it [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 11 00 00 [11:28:27]Write to MH i2c: E2 08 00 46 11 80 11 00 00 00 00 00 00 D1 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 17 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 17 00 46 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2C [11:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:28:27]wFMCommunicate OK [11:28:27]requested_item fd.num is exist - process it [11:28:27]SAM_PROTO_GetFieldsCounters [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 13 00 00 [11:28:27]Write to MH i2c: E2 08 00 47 11 80 13 00 00 00 00 00 00 D4 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 62 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 62 00 47 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 84 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 84 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:27]wFMCommunicate OK [11:28:27]SAM_PROTO_GetFieldsCounters done [11:28:27]requested_item shift.num is exist - process it [11:28:27]requested_item shift.opened is exist - process it [11:28:27]req_shift_opened [11:28:27]FM_GetShiftState [11:28:27]SAM_PROTO_GetShiftState [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 13 01 00 [11:28:27]Write to MH i2c: E2 08 00 48 11 80 13 01 00 00 00 00 00 D6 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 0E 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 0E 00 48 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 C9 [11:28:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:28:27]wFMCommunicate OK [11:28:27]SAM_PROTO_GetShiftState done [11:28:27]FM_GetShiftState done [11:28:27]req_shift_opened done [11:28:27]requested_item shift.open_date is exist - process it [11:28:27]req_shift_open_date [11:28:27]req_shift_open_date done [11:28:27]produce_requested_data done [11:28:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31620,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:28:27]process_action_free close_receipt [11:28:27]json_value_free [11:28:27]json_value_free done [11:28:27]process_json_proto returns [11:28:27]Send response to host [11:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31620,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:28:27]free response buf [11:28:27]execute_script done [11:28:27]execute_script returns [11:28:27]free content buf [11:28:27]Sock 6.Close socket [11:28:27]Sock 6.Thread stoped [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:40]accept exits with 5 [11:28:40]New connection [11:28:40]New thread 3067415908 created [11:28:40]Thread 3067559268 joined [11:28:40]Waiting for new connection... [11:28:40] Sock 5.Parse request [11:28:40]Sock 5.Check first char [11:28:40]Sock 5.First char is OK [11:28:40]request: POST /json_proto HTTP/1.0 [11:28:40]Method: POST [11:28:40]URL: /json_proto [11:28:40]Method is POST - this is cgi request [11:28:40]url: /json_proto [11:28:40]query_string will be loaded in cgi processing [11:28:40]execute_cgi json_proto POST (null) [11:28:40]execute_cgi path=json_proto method=POST [11:28:40]POST find Content-Length [11:28:40]Host: 172.17.39.68:8080 [11:28:40]Content-Length: 669 [11:28:40]Content-Type: application/json [11:28:40] [11:28:40]POST finish read [11:28:40]Found Content-Length = 669 [11:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214203", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:40]execute_script... [11:28: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)214203", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:40]POST & json_proto [11:28:40]process_json_proto [11:28:40]json parsed OK: [11:28:40]protocol is kg_v1.0 [11:28:40]action value=close_receipt [11:28:40]process_action close_receipt [11:28:40]cmd_close_receipt [11:28:40]MH_GetDate [11:28:40]Write to MH i2c: F0 00 00 49 11 49 [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: F0 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: F0 09 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: F0 09 00 49 11 00 EA 07 95 66 EC 7F 94 66 A3 [11:28:40]GetLastDocTimeStamp 1721042905 [11:28:40]current date 1721042922 [11:28:40]FM_GetShiftState [11:28:40]SAM_PROTO_GetShiftState [11:28:40]wFMCommunicate request_size=4 [11:28:40]MH_SAM_APDU [11:28:40]CAPDU: 80 13 01 00 [11:28:40]Write to MH i2c: E2 08 00 4A 11 80 13 01 00 00 00 00 00 D8 [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:40]Read from MH i2c: E2 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 0E 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 0E 00 4A 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CB [11:28:40]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:28:40]wFMCommunicate OK [11:28:40]SAM_PROTO_GetShiftState done [11:28:40]FM_GetShiftState done [11:28:40]opened in 1721001862 [11:28:40]opened+sec_in_day 1721088262 [11:28:40]quantity*price = 11000 [11:28:40]sum+1 = 11001 [11:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 62 15.07.2024 11:28 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31621 ФПД: 222745816244679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112842&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31621&fm=222745816244679&tin=02508201610067®Number=0000000000098025&sum=11000 0 [11:28:41]StoreToDocumentArchive [11:28:41]shift 370 fd 31621 [11:28:41]save to /storage/0370/doc_00031621 [11:28:41]save last doc name /storage/0370/doc_00031621 to /storage/kkm_last_doc_name [11:28:41]save OK [11:28:41]Clear old archive folders... [11:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:28:41]tlvbuf is 012866A0 [11:28:41]SAM_PROTO_ClearQueue [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 09 00 00 [11:28:41]Write to MH i2c: E2 08 00 57 11 80 09 00 00 00 00 00 00 DA [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:41]OFD Sender: No OFD packet to send [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [11:28:41]RAPDU: 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_ClearQueue done [11:28:41]KKMCreateOFDPacket [11:28:41]OFDProtocolAddRootSTLVToBuf [11:28:41]FM_MakeSignedData [11:28:41]FM_MakeSignedData [11:28:41]SAM_PROTO_SignData [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 0D 01 02 [11:28:41]Write to MH i2c: E2 08 00 58 11 80 0D 01 02 00 00 00 00 E2 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [11:28:41]RAPDU: 90 00 [11:28:41]wFMCommunicate OK [11:28:41]wFMCommunicate request_size=255 [11:28:41]MH_SAM_APDU [11:28:41]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 EA 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:28:41]Write to MH i2c: E2 02 01 59 11 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 EA 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 99 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [11:28:41]RAPDU: 90 00 [11:28:41]wFMCommunicate OK [11:28:41]wFMCommunicate request_size=52 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 85 7B 00 00 35 04 06 00 CA 96 0D 40 A1 C7 [11:28:41]Write to MH i2c: E2 37 00 5A 11 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 85 7B 00 00 35 04 06 00 CA 96 0D 40 A1 C7 00 00 C4 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [11:28:41]RAPDU: 90 00 [11:28:41]wFMCommunicate OK [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 0D 03 02 [11:28:41]Write to MH i2c: E2 08 00 5B 11 80 0D 03 02 00 00 00 00 E7 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0B 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0B 00 5B 11 00 26 62 1F 75 33 10 EA 37 90 00 68 [11:28:41]RAPDU: 26 62 1F 75 33 10 EA 37 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_SignData done [11:28:41]FM_MakeSignedData done [11:28:41]CreateOFDProtocolMessage [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 11 00 00 [11:28:41]Write to MH i2c: E2 08 00 5C 11 80 11 00 00 00 00 00 00 E7 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 5C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 42 [11:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:28:41]wFMCommunicate OK [11:28:41]CreateOFDProtocolMessage done [11:28:41]OFDSenderStorePacket 31621 [11:28:41]StoreOFDPacket docnum=31621 [11:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 B5 D7 31 01 20 FB 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 EA 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 85 7B 00 00 35 04 06 00 CA 96 0D 40 A1 C7 26 62 1F 75 33 10 EA 37 [11:28:41]CheckFolder [11:28:41]dirname=/storage/ofd_packets [11:28:41]CheckFolder done [11:28:41]ProducePacketName [11:28:41]name=ofd_packets/00031621 [11:28:41]NVStorageSaveData ofd_packets/00031621 [11:28:41]File name is /storage/ofd_packets/00031621 [11:28:41]Write 343 bytes [11:28:41]NVStorageSaveData done [11:28:41]OFDSenderStorePacket done [11:28:41]KKMCreateOFDPacket done [11:28:41]NVStorageSaveData kkm_last_timestamp [11:28:41]File name is /storage/kkm_last_timestamp [11:28:41]Write 4 bytes [11:28:41]NVStorageSaveData done [11:28:41]ExternCall_PrintAddStr [11:28:41]wPrintStart [11:28:41]Write to MH i2c: 01 00 00 5D 11 6E [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 5D 11 00 00 00 00 00 FF 0F 83 [11:28:41]RasterBufferAndPrint [11:28:41]line Счет N : (3)214203 [11:28:41]line ИНН: 02508201610067 [11:28:41]line Контрольно-Кассовый Чек [11:28:41]line ПРОДАЖА [11:28:41]line Товар: 4870022003305 [11:28:41]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:28:41]line 1.000 * 110.00 [11:28:41]line = 110.00 [11:28:41]line НДС 12% НСП 1% [11:28:41]line > о реализуемом товаре [11:28:41]line ИТОГО: 110.00 [11:28:41]line НСП 1% : 0.97 [11:28:41]line НДС 12% : 11.68 [11:28:41]line Наличными: 110.00 [11:28:41]line Безнал.: 0.00 [11:28:41]line Место: АЗС № 140 "Партнер Нефть" [11:28:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:28:41]line СНО: Общий режим [11:28:41]line Чек 62 15.07.2024 11:28 [11:28:41]line Смена: 370 ФФД: 1.0 [11:28:41]line ЗНМ: 0300000189 [11:28:41]line РНМ: 0000000000098025 [11:28:41]line Версия ККМ: 001 [11:28:41]line ФМ: 0000000000965389 [11:28:41]line ФД: 31621 [11:28:41]line ФПД: 222745816244679 [11:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112842&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31621&fm=222745816244679&tin=02508201610067®Number=0000000000098025&sum=11000 [11:28:42]OFD Sender: Processing packet 31621 [packets to send 5, broken 4] [11:28:42]ProducePacketName [11:28:42]name=ofd_packets/00031621 [11:28:42]OFD Sender: To server: pG, [11:28:42]CommunicateWithHost lk.salyk.kg:30040 [11:28:42]ConnectInit lk.salyk.kg [11:28:42]line 0 [11:28:42]written 0, free lines is 4095 [11:28:42]Connected sock=7 [11:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 B5 D7 31 01 20 FB 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 EA 07 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 85 7B 00 00 35 04 06 00 CA 96 0D 40 A1 C7 26 62 1F 75 33 10 EA 37 [11:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C3 91 47 00 21 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 85 7B 00 00 F4 03 04 00 F8 B3 94 66 B6 04 01 00 00 75 EC 33 97 29 B3 32 34 [11:28:42]CommunicateWithHost err = 0 [11:28:42]CheckOFDResponse [11:28:42]1017 (14) - 77093643461234 [11:28:42]1041 (16) - 0000000000965389 [11:28:42]1040 (4) - 31621 [11:28:42]1012 (4) - 15.07.2024 05:30 [11:28:42]1206 (1) - 0 [11:28:42]OFD Sender: Remove packet 31621 [11:28:42]ProducePacketName [11:28:42]name=ofd_packets/00031621 [11:28:42]NVStorageDeleteData [11:28:42]Write to MH i2c: 01 00 00 86 11 97 [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: 01 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: 01 07 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 F8 0C A2 [11:28:42]RasterBufferAndPrint [11:28:42]line [11:28:42]line [11:28:42]line [11:28:42]line [11:28:42]line [11:28:42]written 0, free lines is 3326 [11:28:42]MH_Cut [11:28:42]Write to MH i2c: D1 01 00 8D 11 01 70 [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: D1 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: D1 01 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: D1 01 00 8D 11 00 6F [11:28:42]Write to MH i2c: 01 00 00 8E 11 9F [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:43]OFD Sender: No OFD packet to send [11:28:43]*** Cut start [11:28:43]*** Partial cut [11:28:43]*** CUTSNS_PIN = 1 [11:28:43]*** CUTSNS_PIN = 0 [11:28:43]*** Brake cut motor [11:28:43]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]*** Stop cut motor [11:28:44]*** Cut end [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [11:28:44]process_action close_receipt done [11:28:44]requested_data is exist [11:28:44]produce_requested_data [11:28:44]requested_item fm.sn is exist - process it [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 11 00 00 [11:28:44]Write to MH i2c: E2 08 00 8F 11 80 11 00 00 00 00 00 00 1A [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 17 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 17 00 8F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 75 [11:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:28:44]wFMCommunicate OK [11:28:44]requested_item fd.num is exist - process it [11:28:44]SAM_PROTO_GetFieldsCounters [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 13 00 00 [11:28:44]Write to MH i2c: E2 08 00 90 11 80 13 00 00 00 00 00 00 1D [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 62 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 62 00 90 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 85 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [11:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 85 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:44]wFMCommunicate OK [11:28:44]SAM_PROTO_GetFieldsCounters done [11:28:44]requested_item shift.num is exist - process it [11:28:44]requested_item shift.opened is exist - process it [11:28:44]req_shift_opened [11:28:44]FM_GetShiftState [11:28:44]SAM_PROTO_GetShiftState [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 13 01 00 [11:28:44]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:44]Read from MH i2c: E2 0E 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 12 [11:28:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:28:44]wFMCommunicate OK [11:28:44]SAM_PROTO_GetShiftState done [11:28:44]FM_GetShiftState done [11:28:44]req_shift_opened done [11:28:44]requested_item shift.open_date is exist - process it [11:28:44]req_shift_open_date [11:28:44]req_shift_open_date done [11:28:44]produce_requested_data done [11:28:44]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31621,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:28:44]process_action_free close_receipt [11:28:44]json_value_free [11:28:44]json_value_free done [11:28:44]process_json_proto returns [11:28:44]Send response to host [11:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31621,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:28:44]free response buf [11:28:44]execute_script done [11:28:44]execute_script returns [11:28:44]free content buf [11:28:44]Sock 5.Close socket [11:28:44]Sock 5.Thread stoped [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46: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:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:24]accept exits with 6 [11:51:24]New connection [11:51:24]New thread 3067559268 created [11:51:24]Thread 3067415908 joined [11:51:24]Waiting for new connection... [11:51:24] Sock 6.Parse request [11:51:24]Sock 6.Check first char [11:51:24]Sock 6.First char is OK [11:51:24]request: POST /json_proto HTTP/1.0 [11:51:24]Method: POST [11:51:24]URL: /json_proto [11:51:24]Method is POST - this is cgi request [11:51:24]url: /json_proto [11:51:24]query_string will be loaded in cgi processing [11:51:24]execute_cgi json_proto POST (null) [11:51:24]execute_cgi path=json_proto method=POST [11:51:24]POST find Content-Length [11:51:24]Host: 172.17.39.68:8080 [11:51:24]Content-Length: 621 [11:51:24]Content-Type: application/json [11:51:24] [11:51:24]POST finish read [11:51:24]Found Content-Length = 621 [11:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214204", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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:51:24]execute_script... [11:51: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)214204", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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:51:24]POST & json_proto [11:51:24]process_json_proto [11:51:24]json parsed OK: [11:51:24]protocol is kg_v1.0 [11:51:24]action value=close_receipt [11:51:24]process_action close_receipt [11:51:24]cmd_close_receipt [11:51:24]MH_GetDate [11:51:24]Write to MH i2c: F0 00 00 92 11 92 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: F0 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: F0 09 00 [11:51:24]MH_I2C_Read... [11:51:24]Read from MH i2c: F0 09 00 92 11 00 3F 0D 95 66 EC 7F 94 66 47 [11:51:24]GetLastDocTimeStamp 1721042922 [11:51:24]current date 1721044287 [11:51:24]FM_GetShiftState [11:51:24]SAM_PROTO_GetShiftState [11:51:24]wFMCommunicate request_size=4 [11:51:24]MH_SAM_APDU [11:51:24]CAPDU: 80 13 01 00 [11:51:24]Write to MH i2c: E2 08 00 93 11 80 13 01 00 00 00 00 00 21 [11:51:24]Write i2c OK [11:51:24]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0E 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0E 00 93 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 14 [11:51:25]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:51:25]wFMCommunicate OK [11:51:25]SAM_PROTO_GetShiftState done [11:51:25]FM_GetShiftState done [11:51:25]opened in 1721001862 [11:51:25]opened+sec_in_day 1721088262 [11:51:25]quantity*price = 14000 [11:51:25]sum+1 = 14001 [11:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 63 15.07.2024 11:51 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31622 ФПД: 58886801407518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115127&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31622&fm=58886801407518&tin=02508201610067®Number=0000000000098025&sum=14000 0 [11:51:26]StoreToDocumentArchive [11:51:26]shift 370 fd 31622 [11:51:26]save to /storage/0370/doc_00031622 [11:51:26]save last doc name /storage/0370/doc_00031622 to /storage/kkm_last_doc_name [11:51:26]save OK [11:51:26]Clear old archive folders... [11:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:51:26]tlvbuf is 01250410 [11:51:26]SAM_PROTO_ClearQueue [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 09 00 00 [11:51:26]Write to MH i2c: E2 08 00 A0 11 80 09 00 00 00 00 00 00 23 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_ClearQueue done [11:51:26]KKMCreateOFDPacket [11:51:26]OFDProtocolAddRootSTLVToBuf [11:51:26]FM_MakeSignedData [11:51:26]FM_MakeSignedData [11:51:26]SAM_PROTO_SignData [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 01 02 [11:51:26]Write to MH i2c: E2 08 00 A1 11 80 0D 01 02 00 00 00 00 2B [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=255 [11:51:26]MH_SAM_APDU [11:51:26]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 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 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 3F 00 00 00 F4 03 04 00 3F 0D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [11:51:26]Write to MH i2c: E2 02 01 A2 11 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 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 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 3F 00 00 00 F4 03 04 00 3F 0D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 04 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=32 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 86 7B 00 00 35 04 06 00 35 8E A6 E1 3E 1E [11:51:26]Write to MH i2c: E2 23 00 A3 11 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 86 7B 00 00 35 04 06 00 35 8E A6 E1 3E 1E 00 00 3A [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 03 02 [11:51:26]Write to MH i2c: E2 08 00 A4 11 80 0D 03 02 00 00 00 00 30 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0B 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0B 00 A4 11 00 95 07 A1 16 C8 28 1E 4C 90 00 DE [11:51:26]RAPDU: 95 07 A1 16 C8 28 1E 4C 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_SignData done [11:51:26]FM_MakeSignedData done [11:51:26]CreateOFDProtocolMessage [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 11 00 00 [11:51:26]Write to MH i2c: E2 08 00 A5 11 80 11 00 00 00 00 00 00 30 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 A5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [11:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:51:26]wFMCommunicate OK [11:51:26]CreateOFDProtocolMessage done [11:51:26]OFDSenderStorePacket 31622 [11:51:26]StoreOFDPacket docnum=31622 [11:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 F0 C6 1D 01 69 85 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 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 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 3F 00 00 00 F4 03 04 00 3F 0D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 86 7B 00 00 35 04 06 00 35 8E A6 E1 3E 1E 95 07 A1 16 C8 28 1E 4C [11:51:26]CheckFolder [11:51:26]dirname=/storage/ofd_packets [11:51:26]CheckFolder done [11:51:26]ProducePacketName [11:51:26]name=ofd_packets/00031622 [11:51:26]NVStorageSaveData ofd_packets/00031622 [11:51:26]File name is /storage/ofd_packets/00031622 [11:51:26]Write 323 bytes [11:51:26]NVStorageSaveData done [11:51:26]OFDSenderStorePacket done [11:51:26]KKMCreateOFDPacket done [11:51:26]NVStorageSaveData kkm_last_timestamp [11:51:26]File name is /storage/kkm_last_timestamp [11:51:26]Write 4 bytes [11:51:26]NVStorageSaveData done [11:51:26]ExternCall_PrintAddStr [11:51:26]wPrintStart [11:51:26]Write to MH i2c: 01 00 00 A6 11 B7 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [11:51:26]RasterBufferAndPrint [11:51:26]line Счет N : (3)214204 [11:51:26]line ИНН: 02508201610067 [11:51:26]line Контрольно-Кассовый Чек [11:51:26]line ПРОДАЖА [11:51:26]line Товар: 48747059 [11:51:26]line Сигареты Winston Legend Blue [11:51:26]line 1.000 * 140.00 [11:51:26]line = 140.00 [11:51:26]line НДС 12% НСП 1% [11:51:26]line > о реализуемом товаре [11:51:26]line ИТОГО: 140.00 [11:51:26]line НСП 1% : 1.24 [11:51:26]line НДС 12% : 14.87 [11:51:26]line Наличными: 140.00 [11:51:26]line Безнал.: 0.00 [11:51:26]line Место: АЗС № 140 "Партнер Нефть" [11:51:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:51:26]line СНО: Общий режим [11:51:26]line Чек 63 15.07.2024 11:51 [11:51:26]line Смена: 370 ФФД: 1.0 [11:51:26]line ЗНМ: 0300000189 [11:51:26]line РНМ: 0000000000098025 [11:51:26]line Версия ККМ: 001 [11:51:26]line ФМ: 0000000000965389 [11:51:26]line ФД: 31622 [11:51:26]line ФПД: 58886801407518 [11:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115127&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31622&fm=58886801407518&tin=02508201610067®Number=0000000000098025&sum=14000 [11:51:27]line 0 [11:51:27]OFD Sender: Processing packet 31622 [packets to send 5, broken 4] [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00031622 [11:51:27]OFD Sender: To server: pG, [11:51:27]CommunicateWithHost lk.salyk.kg:30040 [11:51:27]ConnectInit lk.salyk.kg [11:51:27]written 0, free lines is 4095 [11:51:27]Connected sock=7 [11:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 F0 C6 1D 01 69 85 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 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 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 3F 00 00 00 F4 03 04 00 3F 0D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 86 7B 00 00 35 04 06 00 35 8E A6 E1 3E 1E 95 07 A1 16 C8 28 1E 4C [11:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 EB A7 47 00 12 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 86 7B 00 00 F4 03 04 00 4C B9 94 66 B6 04 01 00 00 AE 27 5D 97 2A F3 D1 84 [11:51:27]CommunicateWithHost err = 0 [11:51:27]CheckOFDResponse [11:51:27]1017 (14) - 77093643461234 [11:51:27]1041 (16) - 0000000000965389 [11:51:27]1040 (4) - 31622 [11:51:27]1012 (4) - 15.07.2024 05:53 [11:51:27]1206 (1) - 0 [11:51:27]OFD Sender: Remove packet 31622 [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00031622 [11:51:27]NVStorageDeleteData [11:51:27]Write to MH i2c: 01 00 00 CF 11 E0 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 D7 0C CA [11:51:27]RasterBufferAndPrint [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]written 0, free lines is 3293 [11:51:27]MH_Cut [11:51:27]Write to MH i2c: D1 01 00 D6 11 01 B9 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 01 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 01 00 D6 11 00 B8 [11:51:27]Write to MH i2c: 01 00 00 D7 11 E8 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]OFD Sender: No OFD packet to send [11:51:28]*** Cut start [11:51:28]*** Partial cut [11:51:28]*** CUTSNS_PIN = 1 [11:51:28]*** CUTSNS_PIN = 0 [11:51:28]*** Brake cut motor [11:51:28]Read from MH i2c: 01 [11:51:28]MH_I2C_Read... [11:51:28]*** Stop cut motor [11:51:28]*** Cut end [11:51:28]Read from MH i2c: 01 07 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 FF 0F FD [11:51:28]process_action close_receipt done [11:51:28]requested_data is exist [11:51:28]produce_requested_data [11:51:28]requested_item fm.sn is exist - process it [11:51:28]wFMCommunicate request_size=4 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 11 00 00 [11:51:28]Write to MH i2c: E2 08 00 D8 11 80 11 00 00 00 00 00 00 63 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:28]Read from MH i2c: E2 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 17 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 17 00 D8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BE [11:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:51:28]wFMCommunicate OK [11:51:28]requested_item fd.num is exist - process it [11:51:28]SAM_PROTO_GetFieldsCounters [11:51:28]wFMCommunicate request_size=4 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 13 00 00 [11:51:28]Write to MH i2c: E2 08 00 D9 11 80 13 00 00 00 00 00 00 66 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 D9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 86 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [11:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 86 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetFieldsCounters done [11:51:29]requested_item shift.num is exist - process it [11:51:29]requested_item shift.opened is exist - process it [11:51:29]req_shift_opened [11:51:29]FM_GetShiftState [11:51:29]SAM_PROTO_GetShiftState [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 13 01 00 [11:51:29]Write to MH i2c: E2 08 00 DA 11 80 13 01 00 00 00 00 00 68 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 DA 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5B [11:51:29]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetShiftState done [11:51:29]FM_GetShiftState done [11:51:29]req_shift_opened done [11:51:29]requested_item shift.open_date is exist - process it [11:51:29]req_shift_open_date [11:51:29]req_shift_open_date done [11:51:29]produce_requested_data done [11:51:29]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31622,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [11:51:29]process_action_free close_receipt [11:51:29]json_value_free [11:51:29]json_value_free done [11:51:29]process_json_proto returns [11:51:29]Send response to host [11:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31622,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [11:51:29]free response buf [11:51:29]execute_script done [11:51:29]execute_script returns [11:51:29]free content buf [11:51:29]Sock 6.Close socket [11:51:29]Sock 6.Thread stoped [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:04]accept exits with 5 [12:10:04]New connection [12:10:04]New thread 3067415908 created [12:10:04]Thread 3067559268 joined [12:10:04]Waiting for new connection... [12:10:04] Sock 5.Parse request [12:10:04]Sock 5.Check first char [12:10:04]Sock 5.First char is OK [12:10:04]request: POST /json_proto HTTP/1.0 [12:10:04]Method: POST [12:10:04]URL: /json_proto [12:10:04]Method is POST - this is cgi request [12:10:04]url: /json_proto [12:10:04]query_string will be loaded in cgi processing [12:10:04]execute_cgi json_proto POST (null) [12:10:04]execute_cgi path=json_proto method=POST [12:10:04]POST find Content-Length [12:10:04]Host: 172.17.39.68:8080 [12:10:04]Content-Length: 901 [12:10:04]Content-Type: application/json [12:10:04] [12:10:04]POST finish read [12:10:04]Found Content-Length = 901 [12:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214205", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:04]execute_script... [12:10:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214205", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:04]POST & json_proto [12:10:04]process_json_proto [12:10:04]json parsed OK: [12:10:04]protocol is kg_v1.0 [12:10:04]action value=close_receipt [12:10:04]process_action close_receipt [12:10:04]cmd_close_receipt [12:10:04]MH_GetDate [12:10:04]Write to MH i2c: F0 00 00 DB 11 DB [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: F0 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: F0 09 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: F0 09 00 DB 11 00 9E 11 95 66 EC 7F 94 66 F3 [12:10:04]GetLastDocTimeStamp 1721044287 [12:10:04]current date 1721045406 [12:10:04]FM_GetShiftState [12:10:04]SAM_PROTO_GetShiftState [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 13 01 00 [12:10:04]Write to MH i2c: E2 08 00 DC 11 80 13 01 00 00 00 00 00 6A [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 0E 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 0E 00 DC 11 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5D [12:10:04]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:10:04]wFMCommunicate OK [12:10:04]SAM_PROTO_GetShiftState done [12:10:04]FM_GetShiftState done [12:10:04]opened in 1721001862 [12:10:04]opened+sec_in_day 1721088262 [12:10:04]quantity*price = 11100 [12:10:04]sum+1 = 11101 [12:10:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209744502 Сухарики Флинт Сыр 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 171.00 НСП 1% : 1.51 НДС 12% : 18.16 Наличными: 171.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 64 15.07.2024 12:10 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31623 ФПД: 83217355566061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121006&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31623&fm=83217355566061&tin=02508201610067®Number=0000000000098025&sum=17100 0 [12:10:05]StoreToDocumentArchive [12:10:05]shift 370 fd 31623 [12:10:05]save to /storage/0370/doc_00031623 [12:10:05]save last doc name /storage/0370/doc_00031623 to /storage/kkm_last_doc_name [12:10:05]save OK [12:10:05]Clear old archive folders... [12:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=381 [12:10:05]tlvbuf is 01256510 [12:10:05]SAM_PROTO_ClearQueue [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 09 00 00 [12:10:05]Write to MH i2c: E2 08 00 E9 11 80 09 00 00 00 00 00 00 6C [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [12:10:05]RAPDU: 90 00 [12:10:05]wFMCommunicate OK [12:10:05]SAM_PROTO_ClearQueue done [12:10:05]KKMCreateOFDPacket [12:10:05]OFDProtocolAddRootSTLVToBuf [12:10:05]FM_MakeSignedData [12:10:05]FM_MakeSignedData [12:10:05]SAM_PROTO_SignData [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 0D 01 02 [12:10:05]Write to MH i2c: E2 08 00 EA 11 80 0D 01 02 00 00 00 00 74 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [12:10:05]RAPDU: 90 00 [12:10:05]wFMCommunicate OK [12:10:05]wFMCommunicate request_size=255 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 0D 02 02 FA 03 00 7D 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 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 A1 D1 8B D1 80 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 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 [12:10:05]Write to MH i2c: E2 02 01 EB 11 80 0D 02 02 FA 00 03 00 7D 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 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 A1 D1 8B D1 80 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 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 38 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [12:10:05]RAPDU: 90 00 [12:10:05]wFMCommunicate OK [12:10:05]wFMCommunicate request_size=140 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 40 00 00 00 F4 03 04 00 9E 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 87 7B 00 00 35 04 06 00 4B AF 8C EA EB ED [12:10:05]Write to MH i2c: E2 8F 00 EC 11 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 40 00 00 00 F4 03 04 00 9E 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 87 7B 00 00 35 04 06 00 4B AF 8C EA EB ED 00 00 8D [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [12:10:05]RAPDU: 90 00 [12:10:05]wFMCommunicate OK [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 0D 03 02 [12:10:05]Write to MH i2c: E2 08 00 ED 11 80 0D 03 02 00 00 00 00 79 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0B 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0B 00 ED 11 00 18 44 CC 30 EF DB 47 C1 90 00 A4 [12:10:05]RAPDU: 18 44 CC 30 EF DB 47 C1 90 00 [12:10:05]wFMCommunicate OK [12:10:05]SAM_PROTO_SignData done [12:10:05]FM_MakeSignedData done [12:10:05]CreateOFDProtocolMessage [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 11 00 00 [12:10:05]Write to MH i2c: E2 08 00 EE 11 80 11 00 00 00 00 00 00 79 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 17 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 17 00 EE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D4 [12:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:10:05]wFMCommunicate OK [12:10:05]CreateOFDProtocolMessage done [12:10:05]OFDSenderStorePacket 31623 [12:10:05]StoreOFDPacket docnum=31623 [12:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 11 0F 89 01 3B 7A 5A 03 01 00 03 00 7D 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 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 A1 D1 8B D1 80 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 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 40 00 00 00 F4 03 04 00 9E 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 87 7B 00 00 35 04 06 00 4B AF 8C EA EB ED 18 44 CC 30 EF DB 47 C1 [12:10:05]CheckFolder [12:10:05]dirname=/storage/ofd_packets [12:10:05]CheckFolder done [12:10:05]ProducePacketName [12:10:05]name=ofd_packets/00031623 [12:10:05]NVStorageSaveData ofd_packets/00031623 [12:10:05]File name is /storage/ofd_packets/00031623 [12:10:05]Write 431 bytes [12:10:05]NVStorageSaveData done [12:10:05]OFDSenderStorePacket done [12:10:05]KKMCreateOFDPacket done [12:10:05]NVStorageSaveData kkm_last_timestamp [12:10:05]File name is /storage/kkm_last_timestamp [12:10:05]Write 4 bytes [12:10:05]NVStorageSaveData done [12:10:05]ExternCall_PrintAddStr [12:10:05]wPrintStart [12:10:05]Write to MH i2c: 01 00 00 EF 11 00 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 FF 0F 15 [12:10:05]RasterBufferAndPrint [12:10:05]line Счет N : (3)214205 [12:10:05]line ИНН: 02508201610067 [12:10:05]line Контрольно-Кассовый Чек [12:10:05]line ПРОДАЖА [12:10:05]line Товар: 4870001570071 [12:10:06]line Напиток Pepsi 1л [12:10:06]line 1.000 * 111.00 [12:10:06]line = 111.00 [12:10:06]line НДС 12% НСП 1% [12:10:06]line > о реализуемом товаре [12:10:06]line Товар: 4870209744502 [12:10:06]line Сухарики Флинт Сыр 100 гр [12:10:06]line 1.000 * 60.00 [12:10:06]line = 60.00 [12:10:06]line НДС 12% НСП 1% [12:10:06]line > о реализуемом товаре [12:10:06]line ИТОГО: 171.00 [12:10:06]line НСП 1% : 1.51 [12:10:06]line НДС 12% : 18.16 [12:10:06]line Наличными: 171.00 [12:10:06]line Безнал.: 0.00 [12:10:06]line Место: АЗС № 140 "Партнер Нефть" [12:10:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:10:06]line СНО: Общий режим [12:10:06]line Чек 64 15.07.2024 12:10 [12:10:06]line Смена: 370 ФФД: 1.0 [12:10:06]line ЗНМ: 0300000189 [12:10:06]line РНМ: 0000000000098025 [12:10:06]line Версия ККМ: 001 [12:10:06]line ФМ: 0000000000965389 [12:10:06]line ФД: 31623 [12:10:06]line ФПД: 83217355566061 [12:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121006&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31623&fm=83217355566061&tin=02508201610067®Number=0000000000098025&sum=17100 [12:10:06]line 0 [12:10:06]OFD Sender: Processing packet 31623 [packets to send 5, broken 4] [12:10:06]ProducePacketName [12:10:06]name=ofd_packets/00031623 [12:10:06]OFD Sender: To server: pG, [12:10:06]CommunicateWithHost lk.salyk.kg:30040 [12:10:06]ConnectInit lk.salyk.kg [12:10:06]written 0, free lines is 4095 [12:10:06]Connected sock=7 [12:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 11 0F 89 01 3B 7A 5A 03 01 00 03 00 7D 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 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 A1 D1 8B D1 80 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 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 40 00 00 00 F4 03 04 00 9E 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 87 7B 00 00 35 04 06 00 4B AF 8C EA EB ED 18 44 CC 30 EF DB 47 C1 [12:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 08 39 47 00 B9 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 87 7B 00 00 F4 03 04 00 AC BD 94 66 B6 04 01 00 00 D3 EC 6E 02 C7 E9 4A 9A [12:10:06]CommunicateWithHost err = 0 [12:10:06]CheckOFDResponse [12:10:06]1017 (14) - 77093643461234 [12:10:06]1041 (16) - 0000000000965389 [12:10:06]1040 (4) - 31623 [12:10:06]1012 (4) - 15.07.2024 06:11 [12:10:06]1206 (1) - 0 [12:10:06]OFD Sender: Remove packet 31623 [12:10:06]ProducePacketName [12:10:06]name=ofd_packets/00031623 [12:10:06]NVStorageDeleteData [12:10:06]Write to MH i2c: 01 00 00 1D 12 2F [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: 01 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: 01 07 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 AF 0C F1 [12:10:06]RasterBufferAndPrint [12:10:06]line [12:10:06]line [12:10:06]line [12:10:06]line [12:10:06]line [12:10:06]written 0, free lines is 3254 [12:10:06]MH_Cut [12:10:06]Write to MH i2c: D1 01 00 24 12 01 08 [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: D1 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: D1 01 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: D1 01 00 24 12 00 07 [12:10:06]Write to MH i2c: 01 00 00 25 12 37 [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:07]OFD Sender: No OFD packet to send [12:10:07]*** Cut start [12:10:07]*** Partial cut [12:10:07]*** CUTSNS_PIN = 1 [12:10:07]*** CUTSNS_PIN = 0 [12:10:07]*** Brake cut motor [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]*** Stop cut motor [12:10:08]*** Cut end [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [12:10:08]process_action close_receipt done [12:10:08]requested_data is exist [12:10:08]produce_requested_data [12:10:08]requested_item fm.sn is exist - process it [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 26 12 80 11 00 00 00 00 00 00 B2 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 26 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0D [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:10:08]wFMCommunicate OK [12:10:08]requested_item fd.num is exist - process it [12:10:08]SAM_PROTO_GetFieldsCounters [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 13 00 00 [12:10:08]Write to MH i2c: E2 08 00 27 12 80 13 00 00 00 00 00 00 B5 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 62 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 62 00 27 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 87 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 87 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_GetFieldsCounters done [12:10:08]requested_item shift.num is exist - process it [12:10:08]requested_item shift.opened is exist - process it [12:10:08]req_shift_opened [12:10:08]FM_GetShiftState [12:10:08]SAM_PROTO_GetShiftState [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 13 01 00 [12:10:08]Write to MH i2c: E2 08 00 28 12 80 13 01 00 00 00 00 00 B7 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:08]Read from MH i2c: E2 0E 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0E 00 28 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 AA [12:10:08]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_GetShiftState done [12:10:08]FM_GetShiftState done [12:10:08]req_shift_opened done [12:10:08]requested_item shift.open_date is exist - process it [12:10:08]req_shift_open_date [12:10:08]req_shift_open_date done [12:10:08]produce_requested_data done [12:10:08]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31623,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [12:10:08]process_action_free close_receipt [12:10:08]json_value_free [12:10:08]json_value_free done [12:10:08]process_json_proto returns [12:10:08]Send response to host [12:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31623,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [12:10:08]free response buf [12:10:08]execute_script done [12:10:08]execute_script returns [12:10:08]free content buf [12:10:08]Sock 5.Close socket [12:10:08]Sock 5.Thread stoped [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:23]accept exits with 6 [12:10:23]New connection [12:10:23]New thread 3067559268 created [12:10:23]Thread 3067415908 joined [12:10:23]Waiting for new connection... [12:10:23] Sock 6.Parse request [12:10:23]Sock 6.Check first char [12:10:23]Sock 6.First char is OK [12:10:23]request: POST /json_proto HTTP/1.0 [12:10:23]Method: POST [12:10:23]URL: /json_proto [12:10:23]Method is POST - this is cgi request [12:10:23]url: /json_proto [12:10:23]query_string will be loaded in cgi processing [12:10:23]execute_cgi json_proto POST (null) [12:10:23]execute_cgi path=json_proto method=POST [12:10:23]POST find Content-Length [12:10:23]Host: 172.17.39.68:8080 [12:10:23]Content-Length: 605 [12:10:23]Content-Type: application/json [12:10:23] [12:10:23]POST finish read [12:10:23]Found Content-Length = 605 [12:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214206", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "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" ] } } [12:10:23]execute_script... [12:10: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)214206", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "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" ] } } [12:10:23]POST & json_proto [12:10:23]process_json_proto [12:10:23]json parsed OK: [12:10:23]protocol is kg_v1.0 [12:10:23]action value=close_receipt [12:10:23]process_action close_receipt [12:10:23]cmd_close_receipt [12:10:23]MH_GetDate [12:10:23]Write to MH i2c: F0 00 00 29 12 2A [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 09 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 09 00 29 12 00 B2 11 95 66 EC 7F 94 66 56 [12:10:23]GetLastDocTimeStamp 1721045406 [12:10:23]current date 1721045426 [12:10:23]FM_GetShiftState [12:10:23]SAM_PROTO_GetShiftState [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 13 01 00 [12:10:23]Write to MH i2c: E2 08 00 2A 12 80 13 01 00 00 00 00 00 B9 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0E 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0E 00 2A 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 AC [12:10:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:10:23]wFMCommunicate OK [12:10:23]SAM_PROTO_GetShiftState done [12:10:23]FM_GetShiftState done [12:10:23]opened in 1721001862 [12:10:23]opened+sec_in_day 1721088262 [12:10:23]quantity*price = 4500 [12:10:23]sum+1 = 4501 [12:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 65 15.07.2024 12:10 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31624 ФПД: 258307219625431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121026&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31624&fm=258307219625431&tin=02508201610067®Number=0000000000098025&sum=4500 0 [12:10:25]StoreToDocumentArchive [12:10:25]shift 370 fd 31624 [12:10:25]save to /storage/0370/doc_00031624 [12:10:25]save last doc name /storage/0370/doc_00031624 to /storage/kkm_last_doc_name [12:10:25]save OK [12:10:25]Clear old archive folders... [12:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=260 [12:10:25]tlvbuf is B6F3C570 [12:10:25]SAM_PROTO_ClearQueue [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 09 00 00 [12:10:25]Write to MH i2c: E2 08 00 37 12 80 09 00 00 00 00 00 00 BB [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_ClearQueue done [12:10:25]KKMCreateOFDPacket [12:10:25]OFDProtocolAddRootSTLVToBuf [12:10:25]FM_MakeSignedData [12:10:25]FM_MakeSignedData [12:10:25]SAM_PROTO_SignData [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 01 02 [12:10:25]Write to MH i2c: E2 08 00 38 12 80 0D 01 02 00 00 00 00 C3 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]wFMCommunicate request_size=255 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 41 00 00 00 F4 03 04 00 B2 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 [12:10:25]Write to MH i2c: E2 02 01 39 12 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 41 00 00 00 F4 03 04 00 B2 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 00 A9 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]wFMCommunicate request_size=19 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 02 02 0E 88 7B 00 00 35 04 06 00 EA ED D6 11 95 D7 [12:10:25]Write to MH i2c: E2 16 00 3A 12 80 0D 02 02 0E 00 88 7B 00 00 35 04 06 00 EA ED D6 11 95 D7 00 00 4E [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 03 02 [12:10:25]Write to MH i2c: E2 08 00 3B 12 80 0D 03 02 00 00 00 00 C8 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0B 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0B 00 3B 12 00 D1 A2 40 1A B1 EC 06 99 90 00 D2 [12:10:25]RAPDU: D1 A2 40 1A B1 EC 06 99 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_SignData done [12:10:25]FM_MakeSignedData done [12:10:25]CreateOFDProtocolMessage [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 11 00 00 [12:10:25]Write to MH i2c: E2 08 00 3C 12 80 11 00 00 00 00 00 00 C8 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 17 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 17 00 3C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 23 [12:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:10:25]wFMCommunicate OK [12:10:25]CreateOFDProtocolMessage done [12:10:25]OFDSenderStorePacket 31624 [12:10:25]StoreOFDPacket docnum=31624 [12:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 01 00 00 0A FD 10 01 FF FA 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 41 00 00 00 F4 03 04 00 B2 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 88 7B 00 00 35 04 06 00 EA ED D6 11 95 D7 D1 A2 40 1A B1 EC 06 99 [12:10:25]CheckFolder [12:10:25]dirname=/storage/ofd_packets [12:10:25]CheckFolder done [12:10:25]ProducePacketName [12:10:25]name=ofd_packets/00031624 [12:10:25]NVStorageSaveData ofd_packets/00031624 [12:10:25]File name is /storage/ofd_packets/00031624 [12:10:25]Write 310 bytes [12:10:25]NVStorageSaveData done [12:10:25]OFDSenderStorePacket done [12:10:25]KKMCreateOFDPacket done [12:10:25]NVStorageSaveData kkm_last_timestamp [12:10:25]File name is /storage/kkm_last_timestamp [12:10:25]Write 4 bytes [12:10:25]NVStorageSaveData done [12:10:25]ExternCall_PrintAddStr [12:10:25]wPrintStart [12:10:25]Write to MH i2c: 01 00 00 3D 12 4F [12:10:25]OFD Sender: Processing packet 31624 [packets to send 5, broken 4] [12:10:25]ProducePacketName [12:10:25]name=ofd_packets/00031624 [12:10:25]OFD Sender: To server: pG, [12:10:25]CommunicateWithHost lk.salyk.kg:30040 [12:10:25]ConnectInit lk.salyk.kg [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 3D 12 00 00 00 00 00 FF 0F 64 [12:10:25]RasterBufferAndPrint [12:10:25]line Счет N : (3)214206 [12:10:25]line ИНН: 02508201610067 [12:10:25]line Контрольно-Кассовый Чек [12:10:25]line ПРОДАЖА [12:10:25]line Товар: 42113270 [12:10:25]line Жев Orbit арбуз [12:10:25]line 1.000 * 45.00 [12:10:25]line = 45.00 [12:10:25]line НДС 12% НСП 1% [12:10:25]line > о реализуемом товаре [12:10:25]line ИТОГО: 45.00 [12:10:25]line НСП 1% : 0.40 [12:10:25]line НДС 12% : 4.78 [12:10:25]line Наличными: 45.00 [12:10:25]line Безнал.: 0.00 [12:10:25]line Место: АЗС № 140 "Партнер Нефть" [12:10:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:10:25]line СНО: Общий режим [12:10:25]line Чек 65 15.07.2024 12:10 [12:10:25]line Смена: 370 ФФД: 1.0 [12:10:25]line ЗНМ: 0300000189 [12:10:25]line РНМ: 0000000000098025 [12:10:25]line Версия ККМ: 001 [12:10:25]line ФМ: 0000000000965389 [12:10:25]line ФД: 31624 [12:10:25]line ФПД: 258307219625431 [12:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121026&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31624&fm=258307219625431&tin=02508201610067®Number=0000000000098025&sum=4500 [12:10:25]line 0 [12:10:25]Connected sock=5 [12:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 01 00 00 0A FD 10 01 FF FA 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 41 00 00 00 F4 03 04 00 B2 11 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 88 7B 00 00 35 04 06 00 EA ED D6 11 95 D7 D1 A2 40 1A B1 EC 06 99 [12:10:25]written 0, free lines is 4095 [12:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5D D1 47 00 39 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 88 7B 00 00 F4 03 04 00 BF BD 94 66 B6 04 01 00 00 6F F1 C5 0F B5 B9 0B 1F [12:10:26]CommunicateWithHost err = 0 [12:10:26]CheckOFDResponse [12:10:26]1017 (14) - 77093643461234 [12:10:26]1041 (16) - 0000000000965389 [12:10:26]1040 (4) - 31624 [12:10:26]1012 (4) - 15.07.2024 06:12 [12:10:26]1206 (1) - 0 [12:10:26]OFD Sender: Remove packet 31624 [12:10:26]ProducePacketName [12:10:26]name=ofd_packets/00031624 [12:10:26]NVStorageDeleteData [12:10:26]Write to MH i2c: 01 00 00 65 12 77 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 0C 0D 97 [12:10:26]RasterBufferAndPrint [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]written 0, free lines is 3347 [12:10:26]MH_Cut [12:10:26]Write to MH i2c: D1 01 00 6C 12 01 50 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 01 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 01 00 6C 12 00 4F [12:10:26]Write to MH i2c: 01 00 00 6D 12 7F [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]OFD Sender: No OFD packet to send [12:10:27]*** Cut start [12:10:27]*** Partial cut [12:10:27]*** CUTSNS_PIN = 1 [12:10:27]*** CUTSNS_PIN = 0 [12:10:27]*** Brake cut motor [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]*** Stop cut motor [12:10:27]*** Cut end [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [12:10:27]process_action close_receipt done [12:10:27]requested_data is exist [12:10:27]produce_requested_data [12:10:27]requested_item fm.sn is exist - process it [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 11 00 00 [12:10:27]Write to MH i2c: E2 08 00 6E 12 80 11 00 00 00 00 00 00 FA [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 6E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 55 [12:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:10:27]wFMCommunicate OK [12:10:27]requested_item fd.num is exist - process it [12:10:27]SAM_PROTO_GetFieldsCounters [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 00 00 [12:10:27]Write to MH i2c: E2 08 00 6F 12 80 13 00 00 00 00 00 00 FD [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 6F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 88 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 88 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetFieldsCounters done [12:10:27]requested_item shift.num is exist - process it [12:10:27]requested_item shift.opened is exist - process it [12:10:27]req_shift_opened [12:10:27]FM_GetShiftState [12:10:27]SAM_PROTO_GetShiftState [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 01 00 [12:10:27]Write to MH i2c: E2 08 00 70 12 80 13 01 00 00 00 00 00 FF [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:28]Read from MH i2c: E2 0E 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0E 00 70 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F2 [12:10:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:10:28]wFMCommunicate OK [12:10:28]SAM_PROTO_GetShiftState done [12:10:28]FM_GetShiftState done [12:10:28]req_shift_opened done [12:10:28]requested_item shift.open_date is exist - process it [12:10:28]req_shift_open_date [12:10:28]req_shift_open_date done [12:10:28]produce_requested_data done [12:10:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31624,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [12:10:28]process_action_free close_receipt [12:10:28]json_value_free [12:10:28]json_value_free done [12:10:28]process_json_proto returns [12:10:28]Send response to host [12:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31624,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [12:10:28]free response buf [12:10:28]execute_script done [12:10:28]execute_script returns [12:10:28]free content buf [12:10:28]Sock 6.Close socket [12:10:28]Sock 6.Thread stoped [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]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:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]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:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:02]accept exits with 7 [12:48:02]New connection [12:48:02]New thread 3067415908 created [12:48:02]Thread 3067559268 joined [12:48:02]Waiting for new connection... [12:48:02] Sock 7.Parse request [12:48:02]Sock 7.Check first char [12:48:02]Sock 7.First char is OK [12:48:02]request: POST /json_proto HTTP/1.0 [12:48:02]Method: POST [12:48:02]URL: /json_proto [12:48:02]Method is POST - this is cgi request [12:48:02]url: /json_proto [12:48:02]query_string will be loaded in cgi processing [12:48:02]execute_cgi json_proto POST (null) [12:48:02]execute_cgi path=json_proto method=POST [12:48:02]POST find Content-Length [12:48:02]Host: 172.17.39.68:8080 [12:48:02]Content-Length: 621 [12:48:02]Content-Type: application/json [12:48:02] [12:48:02]POST finish read [12:48:02]Found Content-Length = 621 [12:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214207", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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" ] } } [12:48:02]execute_script... [12:48: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)214207", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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" ] } } [12:48:02]POST & json_proto [12:48:02]process_json_proto [12:48:02]json parsed OK: [12:48:02]protocol is kg_v1.0 [12:48:02]action value=close_receipt [12:48:02]process_action close_receipt [12:48:02]cmd_close_receipt [12:48:02]MH_GetDate [12:48:02]Write to MH i2c: F0 00 00 71 12 72 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: F0 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: F0 09 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: F0 09 00 71 12 00 85 1A 95 66 EC 7F 94 66 7A [12:48:02]GetLastDocTimeStamp 1721045426 [12:48:02]current date 1721047685 [12:48:02]FM_GetShiftState [12:48:02]SAM_PROTO_GetShiftState [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 13 01 00 [12:48:02]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 0E 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F4 [12:48:02]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:48:02]wFMCommunicate OK [12:48:02]SAM_PROTO_GetShiftState done [12:48:02]FM_GetShiftState done [12:48:02]opened in 1721001862 [12:48:02]opened+sec_in_day 1721088262 [12:48:02]quantity*price = 14000 [12:48:02]sum+1 = 14001 [12:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 66 15.07.2024 12:48 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31625 ФПД: 100499727503598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124805&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31625&fm=100499727503598&tin=02508201610067®Number=0000000000098025&sum=14000 0 [12:48:04]StoreToDocumentArchive [12:48:04]shift 370 fd 31625 [12:48:04]save to /storage/0370/doc_00031625 [12:48:04]save last doc name /storage/0370/doc_00031625 to /storage/kkm_last_doc_name [12:48:04]save OK [12:48:04]Clear old archive folders... [12:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:48:04]tlvbuf is 01274F50 [12:48:04]SAM_PROTO_ClearQueue [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 09 00 00 [12:48:04]Write to MH i2c: E2 08 00 7F 12 80 09 00 00 00 00 00 00 03 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]SAM_PROTO_ClearQueue done [12:48:04]KKMCreateOFDPacket [12:48:04]OFDProtocolAddRootSTLVToBuf [12:48:04]FM_MakeSignedData [12:48:04]FM_MakeSignedData [12:48:04]SAM_PROTO_SignData [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 01 02 [12:48:04]Write to MH i2c: E2 08 00 80 12 80 0D 01 02 00 00 00 00 0B [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=255 [12:48:04]MH_SAM_APDU [12:48:04]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 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 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 42 00 00 00 F4 03 04 00 85 1A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [12:48:04]Write to MH i2c: E2 02 01 81 12 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 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 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 42 00 00 00 F4 03 04 00 85 1A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 3A [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=32 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 89 7B 00 00 35 04 06 00 5B 67 6A 8E D0 EE [12:48:04]Write to MH i2c: E2 23 00 82 12 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 89 7B 00 00 35 04 06 00 5B 67 6A 8E D0 EE 00 00 EF [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 03 02 [12:48:04]Write to MH i2c: E2 08 00 83 12 80 0D 03 02 00 00 00 00 10 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 0B 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 0B 00 83 12 00 D3 2B DA 15 F4 5F 1D 52 90 00 C0 [12:48:04]RAPDU: D3 2B DA 15 F4 5F 1D 52 90 00 [12:48:04]wFMCommunicate OK [12:48:04]SAM_PROTO_SignData done [12:48:04]FM_MakeSignedData done [12:48:04]CreateOFDProtocolMessage [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 11 00 00 [12:48:04]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 17 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 17 00 84 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6B [12:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:48:04]wFMCommunicate OK [12:48:04]CreateOFDProtocolMessage done [12:48:04]OFDSenderStorePacket 31625 [12:48:04]StoreOFDPacket docnum=31625 [12:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 0E 79 1D 01 B3 F4 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 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 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 42 00 00 00 F4 03 04 00 85 1A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 89 7B 00 00 35 04 06 00 5B 67 6A 8E D0 EE D3 2B DA 15 F4 5F 1D 52 [12:48:04]CheckFolder [12:48:04]dirname=/storage/ofd_packets [12:48:04]CheckFolder done [12:48:04]ProducePacketName [12:48:04]name=ofd_packets/00031625 [12:48:04]NVStorageSaveData ofd_packets/00031625 [12:48:04]File name is /storage/ofd_packets/00031625 [12:48:04]Write 323 bytes [12:48:04]NVStorageSaveData done [12:48:04]OFDSenderStorePacket done [12:48:04]KKMCreateOFDPacket done [12:48:04]NVStorageSaveData kkm_last_timestamp [12:48:04]File name is /storage/kkm_last_timestamp [12:48:04]Write 4 bytes [12:48:04]NVStorageSaveData done [12:48:04]ExternCall_PrintAddStr [12:48:04]wPrintStart [12:48:04]Write to MH i2c: 01 00 00 85 12 97 [12:48:04]OFD Sender: Processing packet 31625 [packets to send 5, broken 4] [12:48:04]ProducePacketName [12:48:04]name=ofd_packets/00031625 [12:48:04]OFD Sender: To server: pG, [12:48:04]CommunicateWithHost lk.salyk.kg:30040 [12:48:04]ConnectInit lk.salyk.kg [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 85 12 00 00 00 00 00 FF 0F AC [12:48:04]RasterBufferAndPrint [12:48:04]line Счет N : (3)214207 [12:48:04]line ИНН: 02508201610067 [12:48:04]line Контрольно-Кассовый Чек [12:48:04]line ПРОДАЖА [12:48:04]line Товар: 48747059 [12:48:04]line Сигареты Winston Legend Blue [12:48:04]line 1.000 * 140.00 [12:48:04]line = 140.00 [12:48:04]line НДС 12% НСП 1% [12:48:04]line > о реализуемом товаре [12:48:04]line ИТОГО: 140.00 [12:48:04]line НСП 1% : 1.24 [12:48:04]line НДС 12% : 14.87 [12:48:04]line Наличными: 140.00 [12:48:04]line Безнал.: 0.00 [12:48:04]line Место: АЗС № 140 "Партнер Нефть" [12:48:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:48:04]line СНО: Общий режим [12:48:04]line Чек 66 15.07.2024 12:48 [12:48:04]line Смена: 370 ФФД: 1.0 [12:48:04]line ЗНМ: 0300000189 [12:48:04]line РНМ: 0000000000098025 [12:48:04]line Версия ККМ: 001 [12:48:04]line ФМ: 0000000000965389 [12:48:04]line ФД: 31625 [12:48:04]line ФПД: 100499727503598 [12:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124805&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31625&fm=100499727503598&tin=02508201610067®Number=0000000000098025&sum=14000 [12:48:04]line 0 [12:48:04]written 0, free lines is 4095 [12:48:04]Connected sock=6 [12:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 0E 79 1D 01 B3 F4 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 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 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 42 00 00 00 F4 03 04 00 85 1A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 89 7B 00 00 35 04 06 00 5B 67 6A 8E D0 EE D3 2B DA 15 F4 5F 1D 52 [12:48:05]Write to MH i2c: 01 00 00 AE 12 C0 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 AE 12 00 00 00 00 00 DC 0C AF [12:48:05]RasterBufferAndPrint [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]written 0, free lines is 3298 [12:48:05]MH_Cut [12:48:05]Write to MH i2c: D1 01 00 B5 12 01 99 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 01 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 01 00 B5 12 00 98 [12:48:05]Write to MH i2c: 01 00 00 B6 12 C8 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BB A7 47 00 94 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 39 36 35 33 38 39 10 04 04 00 89 7B 00 00 F4 03 04 00 92 C6 94 66 B6 04 01 00 00 10 C3 C7 D0 0E FF C6 54 [12:48:05]CommunicateWithHost err = 0 [12:48:05]CheckOFDResponse [12:48:05]1017 (14) - 77093643461234 [12:48:05]1041 (16) - 0000000000965389 [12:48:05]1040 (4) - 31625 [12:48:05]1012 (4) - 15.07.2024 06:49 [12:48:05]1206 (1) - 0 [12:48:05]OFD Sender: Remove packet 31625 [12:48:05]ProducePacketName [12:48:05]name=ofd_packets/00031625 [12:48:05]NVStorageDeleteData [12:48:05]OFD Sender: No OFD packet to send [12:48:05]*** Cut start [12:48:05]*** Partial cut [12:48:05]*** CUTSNS_PIN = 1 [12:48:05]*** CUTSNS_PIN = 0 [12:48:06]*** Brake cut motor [12:48:06]Read from MH i2c: 01 [12:48:06]MH_I2C_Read... [12:48:06]*** Stop cut motor [12:48:06]*** Cut end [12:48:06]Read from MH i2c: 01 07 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 FF 0F DD [12:48:06]process_action close_receipt done [12:48:06]requested_data is exist [12:48:06]produce_requested_data [12:48:06]requested_item fm.sn is exist - process it [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 11 00 00 [12:48:06]Write to MH i2c: E2 08 00 B7 12 80 11 00 00 00 00 00 00 43 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 B7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9E [12:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:48:06]wFMCommunicate OK [12:48:06]requested_item fd.num is exist - process it [12:48:06]SAM_PROTO_GetFieldsCounters [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 13 00 00 [12:48:06]Write to MH i2c: E2 08 00 B8 12 80 13 00 00 00 00 00 00 46 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 62 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 62 00 B8 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 89 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [12:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 89 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_GetFieldsCounters done [12:48:06]requested_item shift.num is exist - process it [12:48:06]requested_item shift.opened is exist - process it [12:48:06]req_shift_opened [12:48:06]FM_GetShiftState [12:48:06]SAM_PROTO_GetShiftState [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 13 01 00 [12:48:06]Write to MH i2c: E2 08 00 B9 12 80 13 01 00 00 00 00 00 48 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 B9 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 3B [12:48:06]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_GetShiftState done [12:48:06]FM_GetShiftState done [12:48:06]req_shift_opened done [12:48:06]requested_item shift.open_date is exist - process it [12:48:06]req_shift_open_date [12:48:06]req_shift_open_date done [12:48:06]produce_requested_data done [12:48:06]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31625,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [12:48:06]process_action_free close_receipt [12:48:06]json_value_free [12:48:06]json_value_free done [12:48:06]process_json_proto returns [12:48:06]Send response to host [12:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31625,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [12:48:06]free response buf [12:48:06]execute_script done [12:48:06]execute_script returns [12:48:06]free content buf [12:48:06]Sock 7.Close socket [12:48:06]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:11]accept exits with 5 [12:50:11]New connection [12:50:11]New thread 3067559268 created [12:50:11]Thread 3067415908 joined [12:50:11]Waiting for new connection... [12:50:11] Sock 5.Parse request [12:50:11]Sock 5.Check first char [12:50:11]Sock 5.First char is OK [12:50:11]request: POST /json_proto HTTP/1.0 [12:50:11]Method: POST [12:50:11]URL: /json_proto [12:50:11]Method is POST - this is cgi request [12:50:11]url: /json_proto [12:50:11]query_string will be loaded in cgi processing [12:50:11]execute_cgi json_proto POST (null) [12:50:11]execute_cgi path=json_proto method=POST [12:50:11]POST find Content-Length [12:50:11]Host: 172.17.39.68:8080 [12:50:11]Content-Length: 660 [12:50:11]Content-Type: application/json [12:50:11] [12:50:11]POST finish read [12:50:11]Found Content-Length = 660 [12:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214208", "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" ] } } [12:50:11]execute_script... [12:50: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)214208", "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" ] } } [12:50:11]POST & json_proto [12:50:11]process_json_proto [12:50:11]json parsed OK: [12:50:11]protocol is kg_v1.0 [12:50:11]action value=close_receipt [12:50:11]process_action close_receipt [12:50:11]cmd_close_receipt [12:50:11]MH_GetDate [12:50:11]Write to MH i2c: F0 00 00 BA 12 BB [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 09 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 09 00 BA 12 00 06 1B 95 66 EC 7F 94 66 45 [12:50:11]GetLastDocTimeStamp 1721047685 [12:50:11]current date 1721047814 [12:50:11]FM_GetShiftState [12:50:11]SAM_PROTO_GetShiftState [12:50:11]wFMCommunicate request_size=4 [12:50:11]MH_SAM_APDU [12:50:11]CAPDU: 80 13 01 00 [12:50:11]Write to MH i2c: E2 08 00 BB 12 80 13 01 00 00 00 00 00 4A [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:11]Read from MH i2c: E2 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 0E 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 0E 00 BB 12 00 09 00 01 86 67 94 66 00 00 00 00 90 00 3D [12:50:11]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:50:11]wFMCommunicate OK [12:50:11]SAM_PROTO_GetShiftState done [12:50:11]FM_GetShiftState done [12:50:11]opened in 1721001862 [12:50:11]opened+sec_in_day 1721088262 [12:50:11]quantity*price = 4900 [12:50:11]sum+1 = 4901 [12:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 67 15.07.2024 12:50 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31626 ФПД: 250079761288267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125014&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31626&fm=250079761288267&tin=02508201610067®Number=0000000000098025&sum=4900 0 [12:50:12]StoreToDocumentArchive [12:50:12]shift 370 fd 31626 [12:50:12]save to /storage/0370/doc_00031626 [12:50:12]save last doc name /storage/0370/doc_00031626 to /storage/kkm_last_doc_name [12:50:12]save OK [12:50:12]Clear old archive folders... [12:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=291 [12:50:12]tlvbuf is 01274B60 [12:50:12]SAM_PROTO_ClearQueue [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 09 00 00 [12:50:12]Write to MH i2c: E2 08 00 C8 12 80 09 00 00 00 00 00 00 4C [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [12:50:13]RAPDU: 90 00 [12:50:13]wFMCommunicate OK [12:50:13]SAM_PROTO_ClearQueue done [12:50:13]KKMCreateOFDPacket [12:50:13]OFDProtocolAddRootSTLVToBuf [12:50:13]FM_MakeSignedData [12:50:13]FM_MakeSignedData [12:50:13]SAM_PROTO_SignData [12:50:13]wFMCommunicate request_size=4 [12:50:13]MH_SAM_APDU [12:50:13]CAPDU: 80 0D 01 02 [12:50:13]Write to MH i2c: E2 08 00 C9 12 80 0D 01 02 00 00 00 00 54 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [12:50:13]RAPDU: 90 00 [12:50:13]wFMCommunicate OK [12:50:13]wFMCommunicate request_size=255 [12:50:13]MH_SAM_APDU [12:50:13]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 43 00 00 00 F4 03 04 00 06 1B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [12:50:13]Write to MH i2c: E2 02 01 CA 12 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 43 00 00 00 F4 03 04 00 06 1B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D8 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [12:50:13]RAPDU: 90 00 [12:50:13]wFMCommunicate OK [12:50:13]wFMCommunicate request_size=50 [12:50:13]MH_SAM_APDU [12:50:13]CAPDU: 80 0D 02 02 2D 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8A 7B 00 00 35 04 06 00 E3 72 3B 56 4C 4B [12:50:13]Write to MH i2c: E2 35 00 CB 12 80 0D 02 02 2D 00 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8A 7B 00 00 35 04 06 00 E3 72 3B 56 4C 4B 00 00 3F [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [12:50:13]RAPDU: 90 00 [12:50:13]wFMCommunicate OK [12:50:13]wFMCommunicate request_size=4 [12:50:13]MH_SAM_APDU [12:50:13]CAPDU: 80 0D 03 02 [12:50:13]Write to MH i2c: E2 08 00 CC 12 80 0D 03 02 00 00 00 00 59 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 0B 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 0B 00 CC 12 00 99 1F 19 7D 17 AD C1 BA 90 00 E7 [12:50:13]RAPDU: 99 1F 19 7D 17 AD C1 BA 90 00 [12:50:13]wFMCommunicate OK [12:50:13]SAM_PROTO_SignData done [12:50:13]FM_MakeSignedData done [12:50:13]CreateOFDProtocolMessage [12:50:13]wFMCommunicate request_size=4 [12:50:13]MH_SAM_APDU [12:50:13]CAPDU: 80 11 00 00 [12:50:13]Write to MH i2c: E2 08 00 CD 12 80 11 00 00 00 00 00 00 59 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:13]Read from MH i2c: E2 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 17 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: E2 17 00 CD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B4 [12:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:50:13]wFMCommunicate OK [12:50:13]CreateOFDProtocolMessage done [12:50:13]OFDSenderStorePacket 31626 [12:50:13]StoreOFDPacket docnum=31626 [12:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 37 01 00 00 9B 40 2F 01 EA F0 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 43 00 00 00 F4 03 04 00 06 1B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8A 7B 00 00 35 04 06 00 E3 72 3B 56 4C 4B 99 1F 19 7D 17 AD C1 BA [12:50:13]CheckFolder [12:50:13]dirname=/storage/ofd_packets [12:50:13]CheckFolder done [12:50:13]ProducePacketName [12:50:13]name=ofd_packets/00031626 [12:50:13]NVStorageSaveData ofd_packets/00031626 [12:50:13]File name is /storage/ofd_packets/00031626 [12:50:13]Write 341 bytes [12:50:13]NVStorageSaveData done [12:50:13]OFDSenderStorePacket done [12:50:13]KKMCreateOFDPacket done [12:50:13]NVStorageSaveData kkm_last_timestamp [12:50:13]File name is /storage/kkm_last_timestamp [12:50:13]Write 4 bytes [12:50:13]NVStorageSaveData done [12:50:13]ExternCall_PrintAddStr [12:50:13]wPrintStart [12:50:13]Write to MH i2c: 01 00 00 CE 12 E0 [12:50:13]OFD Sender: Processing packet 31626 [packets to send 5, broken 4] [12:50:13]ProducePacketName [12:50:13]name=ofd_packets/00031626 [12:50:13]OFD Sender: To server: pG, [12:50:13]CommunicateWithHost lk.salyk.kg:30040 [12:50:13]ConnectInit lk.salyk.kg [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 CE 12 00 00 00 00 00 FF 0F F5 [12:50:13]RasterBufferAndPrint [12:50:13]line Счет N : (3)214208 [12:50:13]line ИНН: 02508201610067 [12:50:13]line Контрольно-Кассовый Чек [12:50:13]line ПРОДАЖА [12:50:13]line Товар: 46227720 [12:50:13]line Р/ж mentos pure fresh виноград ролл 15,5 [12:50:13]line 1.000 * 49.00 [12:50:13]line = 49.00 [12:50:13]line НДС 12% НСП 1% [12:50:13]line > о реализуемом товаре [12:50:13]line ИТОГО: 49.00 [12:50:13]line НСП 1% : 0.43 [12:50:13]line НДС 12% : 5.20 [12:50:13]line Наличными: 49.00 [12:50:13]line Безнал.: 0.00 [12:50:13]line Место: АЗС № 140 "Партнер Нефть" [12:50:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:50:13]line СНО: Общий режим [12:50:13]line Чек 67 15.07.2024 12:50 [12:50:13]line Смена: 370 ФФД: 1.0 [12:50:13]line ЗНМ: 0300000189 [12:50:13]line РНМ: 0000000000098025 [12:50:13]line Версия ККМ: 001 [12:50:13]line ФМ: 0000000000965389 [12:50:13]line ФД: 31626 [12:50:13]line ФПД: 250079761288267 [12:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125014&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31626&fm=250079761288267&tin=02508201610067®Number=0000000000098025&sum=4900 [12:50:13]line 0 [12:50:13]Connected sock=7 [12:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 37 01 00 00 9B 40 2F 01 EA F0 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 43 00 00 00 F4 03 04 00 06 1B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8A 7B 00 00 35 04 06 00 E3 72 3B 56 4C 4B 99 1F 19 7D 17 AD C1 BA [12:50:13]written 0, free lines is 4095 [12:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FD BB 47 00 F7 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8A 7B 00 00 F4 03 04 00 13 C7 94 66 B6 04 01 00 00 1C 49 FE 29 ED 92 51 BF [12:50:14]CommunicateWithHost err = 0 [12:50:14]CheckOFDResponse [12:50:14]1017 (14) - 77093643461234 [12:50:14]1041 (16) - 0000000000965389 [12:50:14]1040 (4) - 31626 [12:50:14]1012 (4) - 15.07.2024 06:52 [12:50:14]1206 (1) - 0 [12:50:14]OFD Sender: Remove packet 31626 [12:50:14]ProducePacketName [12:50:14]name=ofd_packets/00031626 [12:50:14]NVStorageDeleteData [12:50:14]Write to MH i2c: 01 00 00 F7 12 09 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: 01 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: 01 07 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 F4 0C 10 [12:50:14]RasterBufferAndPrint [12:50:14]line [12:50:14]line [12:50:14]line [12:50:14]line [12:50:14]line [12:50:14]written 0, free lines is 3323 [12:50:14]MH_Cut [12:50:14]Write to MH i2c: D1 01 00 FE 12 01 E2 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: D1 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: D1 01 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: D1 01 00 FE 12 00 E1 [12:50:14]Write to MH i2c: 01 00 00 FF 12 11 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]OFD Sender: No OFD packet to send [12:50:15]*** Cut start [12:50:15]*** Partial cut [12:50:15]*** CUTSNS_PIN = 1 [12:50:15]*** CUTSNS_PIN = 0 [12:50:15]*** Brake cut motor [12:50:15]Read from MH i2c: 01 [12:50:15]MH_I2C_Read... [12:50:15]*** Stop cut motor [12:50:15]*** Cut end [12:50:15]Read from MH i2c: 01 07 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 FF 0F 26 [12:50:15]process_action close_receipt done [12:50:15]requested_data is exist [12:50:15]produce_requested_data [12:50:15]requested_item fm.sn is exist - process it [12:50:15]wFMCommunicate request_size=4 [12:50:15]MH_SAM_APDU [12:50:15]CAPDU: 80 11 00 00 [12:50:15]Write to MH i2c: E2 08 00 00 13 80 11 00 00 00 00 00 00 8D [12:50:15]Write i2c OK [12:50:15]MH_I2C_Read... [12:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:15]Read from MH i2c: E2 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 17 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 17 00 00 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E8 [12:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:50:15]wFMCommunicate OK [12:50:15]requested_item fd.num is exist - process it [12:50:15]SAM_PROTO_GetFieldsCounters [12:50:15]wFMCommunicate request_size=4 [12:50:15]MH_SAM_APDU [12:50:15]CAPDU: 80 13 00 00 [12:50:15]Write to MH i2c: E2 08 00 01 13 80 13 00 00 00 00 00 00 90 [12:50:15]Write i2c OK [12:50:15]MH_I2C_Read... [12:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:15]Read from MH i2c: E2 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 62 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 62 00 01 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [12:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:15]wFMCommunicate OK [12:50:15]SAM_PROTO_GetFieldsCounters done [12:50:15]requested_item shift.num is exist - process it [12:50:15]requested_item shift.opened is exist - process it [12:50:15]req_shift_opened [12:50:15]FM_GetShiftState [12:50:15]SAM_PROTO_GetShiftState [12:50:15]wFMCommunicate request_size=4 [12:50:15]MH_SAM_APDU [12:50:15]CAPDU: 80 13 01 00 [12:50:15]Write to MH i2c: E2 08 00 02 13 80 13 01 00 00 00 00 00 92 [12:50:15]Write i2c OK [12:50:15]MH_I2C_Read... [12:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:16]Read from MH i2c: E2 [12:50:16]MH_I2C_Read... [12:50:16]Read from MH i2c: E2 0E 00 [12:50:16]MH_I2C_Read... [12:50:16]Read from MH i2c: E2 0E 00 02 13 00 09 00 01 86 67 94 66 00 00 00 00 90 00 85 [12:50:16]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:50:16]wFMCommunicate OK [12:50:16]SAM_PROTO_GetShiftState done [12:50:16]FM_GetShiftState done [12:50:16]req_shift_opened done [12:50:16]requested_item shift.open_date is exist - process it [12:50:16]req_shift_open_date [12:50:16]req_shift_open_date done [12:50:16]produce_requested_data done [12:50:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31626,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [12:50:16]process_action_free close_receipt [12:50:16]json_value_free [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 23 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057257E (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 39765+1721008108=1721047873 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 24 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 42 1B 95 66 EC 7F 94 66 BC [12:51:14]Current date/time: 15.07.2024 12:51 [12:51:14]FM_Init [12:51:14]wFMConnect [12:51:14]MH_SAM_On [12:51:14]Write to MH i2c: E0 00 00 08 00 E7 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_init finished! [12:51:14]*** atr: [12:51:14]*** 0F 3B D5 18 FF 81 91 FE [12:51:14]*** 1F C3 80 73 C8 21 10 0A [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]*** 00 00 00 00 00 00 00 00 [12:51:14]Read from MH i2c: E0 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E0 10 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:51:14]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:51:14]wFMCommunicate request_size=10 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:51:14]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:51:14]RAPDU: 90 00 [12:51:14]wFMCommunicate OK [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 11 00 00 [12:51:14]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DF [12:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:51:14]wFMCommunicate OK [12:51:14]Detected FM SN is 0000000000965389 [12:51:14]Stored FM SN is 0000000000965389 [12:51:14]wFMCommunicate request_size=9 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 16 00 00 04 BF 17 01 00 [12:51:14]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BF 17 01 00 00 00 69 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:51:14]RAPDU: 90 00 [12:51:14]wFMCommunicate OK [12:51:14]FM PIN OK [12:51:14]wFMCommunicate request_size=8 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 14 04 00 03 02 00 01 [12:51:14]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:51:14]RAPDU: 90 00 [12:51:14]wFMCommunicate OK [12:51:14]wFMCommunicate request_size=13 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:51:14]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:51:14]RAPDU: 90 00 [12:51:14]wFMCommunicate OK [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 11 00 00 [12:51:14]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E3 [12:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:51:14]wFMCommunicate OK [12:51:14]DocumentArchiveInit [12:51:14]Start Httpd... [12:51:14]Httpd thread 3067899236 created [12:51:14]Write to MH i2c: 01 00 00 0F 00 0F [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: 01 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: 01 07 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:51:14]MH Int Process started [12:51:14]Allocated Socket 8 [12:51:14]Bind OK [12:51:14]Listen OK [12:51:14]httpd running on port 8080 [12:51:14]Waiting for new connection... [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:23]accept exits with 9 [12:51:23]New connection [12:51:23]New thread 3067612516 created [12:51:23]Waiting for new connection... [12:51:23] Sock 9.Parse request [12:51:23]Sock 9.Check first char [12:51:23]Sock 9.First char is OK [12:51:23]request: POST /json_proto HTTP/1.0 [12:51:23]Method: POST [12:51:23]URL: /json_proto [12:51:23]Method is POST - this is cgi request [12:51:23]url: /json_proto [12:51:23]query_string will be loaded in cgi processing [12:51:23]execute_cgi json_proto POST (null) [12:51:23]execute_cgi path=json_proto method=POST [12:51:23]POST find Content-Length [12:51:23]Host: 172.17.39.68:8080 [12:51:23]Content-Length: 215 [12:51:23]Content-Type: application/json [12:51:23] [12:51:23]POST finish read [12:51:23]Found Content-Length = 215 [12:51: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" ] } } [12:51:23]execute_script... [12:51: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" ] } } [12:51:23]POST & json_proto [12:51:23]process_json_proto [12:51:23]json parsed OK: [12:51:23]protocol is kg_v1.0 [12:51:23]action value=get_value [12:51:23]process_action get_value [12:51:23]cmd_get_value [12:51:23]process_action get_value done [12:51:23]requested_data is exist [12:51:23]produce_requested_data [12:51:23]requested_item kkm.sn is exist - process it [12:51:23]requested_item kkm.ver is exist - process it [12:51:23]requested_item fm.sn is exist - process it [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 11 00 00 [12:51:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 17 00 [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:23]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [12:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:51:23]wFMCommunicate OK [12:51:23]requested_item fd.num is exist - process it [12:51:23]SAM_PROTO_GetFieldsCounters [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 13 00 00 [12:51:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 62 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8A 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_GetFieldsCounters done [12:51:23]requested_item shift.num is exist - process it [12:51:23]requested_item shift.opened is exist - process it [12:51:23]req_shift_opened [12:51:23]FM_GetShiftState [12:51:23]SAM_PROTO_GetShiftState [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 13 01 00 [12:51:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0E 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 82 [12:51:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_GetShiftState done [12:51:23]FM_GetShiftState done [12:51:23]req_shift_opened done [12:51:23]requested_item shift.open_date is exist - process it [12:51:23]req_shift_open_date [12:51:23]req_shift_open_date done [12:51:23]produce_requested_data done [12:51:23]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31626,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [12:51:23]process_action_free get_value [12:51:23]json_value_free [12:51:23]json_value_free done [12:51:23]process_json_proto returns [12:51:23]Send response to host [12:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31626,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [12:51:23]free response buf [12:51:23]execute_script done [12:51:23]execute_script returns [12:51:23]free content buf [12:51:23]Sock 9.Close socket [12:51:23]Sock 9.Thread stoped [12:51:23]accept exits with 7 [12:51:23]New connection [12:51:23]New thread 3067469156 created [12:51:23]Thread 3067612516 joined [12:51:23]Waiting for new connection... [12:51:23] Sock 7.Parse request [12:51:23]Sock 7.Check first char [12:51:23]Sock 7.First char is OK [12:51:23]request: POST /json_proto HTTP/1.0 [12:51:23]Method: POST [12:51:23]URL: /json_proto [12:51:23]Method is POST - this is cgi request [12:51:23]url: /json_proto [12:51:23]query_string will be loaded in cgi processing [12:51:23]execute_cgi json_proto POST (null) [12:51:23]execute_cgi path=json_proto method=POST [12:51:23]POST find Content-Length [12:51:23]Host: 172.17.39.68:8080 [12:51:23]Content-Length: 331 [12:51:23]Content-Type: application/json [12:51:23] [12:51:23]POST finish read [12:51:23]Found Content-Length = 331 [12:51: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" ] } } [12:51:23]execute_script... [12:51: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" ] } } [12:51:23]POST & json_proto [12:51:23]process_json_proto [12:51:23]json parsed OK: [12:51:23]protocol is kg_v1.0 [12:51:23]action value=get_value [12:51:23]process_action get_value [12:51:24]cmd_get_value [12:51:24]process_action get_value done [12:51:24]requested_data is exist [12:51:24]produce_requested_data [12:51:24]requested_item fm.sale.total is exist - process it [12:51:24]SAM_PROTO_GetFMData [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 13 03 00 [12:51:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]OFD Sender: No OFD packet to send [12:51:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 FD 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 FD 00 13 00 00 B7 04 85 04 B3 04 6E 04 04 00 A5 78 00 00 69 04 A0 00 6F 04 04 00 A3 78 00 00 B1 04 04 00 30 91 F5 24 70 04 04 00 E4 83 16 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E B5 EC 03 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 98 AB 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 97 [12:51:24]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A5 78 00 00 69 04 A0 00 6F 04 04 00 A3 78 00 00 B1 04 04 00 30 91 F5 24 70 04 04 00 E4 83 16 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E B5 EC 03 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 98 AB 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:51:24]wFMCommunicate OK [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 17 00 00 [12:51:24]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 FD 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 FD 00 14 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 C5 [12:51:24]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [12:51:24]wFMCommunicate OK [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 17 00 00 [12:51:24]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 FD 00 [12:51:24]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 FD 00 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 3A [12:51:25]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:51:25]wFMCommunicate OK [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 17 00 00 [12:51:25]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 FD 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 0B [12:51:25]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [12:51:25]wFMCommunicate OK [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 17 00 00 [12:51:25]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 D4 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 D4 00 17 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [12:51:25]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetFMData done [12:51:25]requested_item fm.sale_refund.total is exist - process it [12:51:25]requested_item fm.buy.total is exist - process it [12:51:25]requested_item shift.sale.total is exist - process it [12:51:25]SAM_PROTO_GetShiftData [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 02 00 [12:51:25]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 FD 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 43 00 00 00 B1 04 03 00 BC 39 14 70 04 03 00 BC 75 0A 72 04 03 00 00 C4 09 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 D6 25 02 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 CD 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [12:51:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 43 00 00 00 B1 04 03 00 BC 39 14 70 04 03 00 BC 75 0A 72 04 03 00 00 C4 09 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 D6 25 02 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 CD 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [12:51:25]wFMCommunicate OK [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 17 00 00 [12:51:25]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [12:51:26]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 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 17 00 00 [12:51:26]Write to MH i2c: E2 08 00 1A 00 80 17 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 17 00 00... Resp OK rsp.len_out = 250! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [12:51:26]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 17 00 00 [12:51:26]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [12:51:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 17 00 00 [12:51:26]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:51:27]Read from MH i2c: E2 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 CB 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [12:51:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:51:27]wFMCommunicate OK [12:51:27]SAM_PROTO_GetShiftData done [12:51:27]requested_item shift.sale.total_cash is exist - process it [12:51:27]requested_item shift.sale_refund.total is exist - process it [12:51:27]requested_item shift.sale_refund.total_cash is exist - process it [12:51:27]requested_item shift.buy.total is exist - process it [12:51:27]requested_item shift.buy.total_cash is exist - process it [12:51:27]produce_requested_data done [12:51:27]produce_requested_data return {"fm.sale.total":6200732.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13255.00,"shift.sale.total_cash":6855.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:51:27]process_action_free get_value [12:51:27]json_value_free [12:51:27]json_value_free done [12:51:27]process_json_proto returns [12:51:27]Send response to host [12:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6200732.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13255.00,"shift.sale.total_cash":6855.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:51:27]free response buf [12:51:27]execute_script done [12:51:27]execute_script returns [12:51:27]free content buf [12:51:27]Sock 7.Close socket [12:51:27]Sock 7.Thread stoped [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:02]accept exits with 9 [12:55:02]New connection [12:55:02]New thread 3067612516 created [12:55:02]Thread 3067469156 joined [12:55:02]Waiting for new connection... [12:55:02] Sock 9.Parse request [12:55:02]Sock 9.Check first char [12:55:02]Sock 9.First char is OK [12:55:02]request: POST /json_proto HTTP/1.0 [12:55:02]Method: POST [12:55:02]URL: /json_proto [12:55:02]Method is POST - this is cgi request [12:55:02]url: /json_proto [12:55:02]query_string will be loaded in cgi processing [12:55:02]execute_cgi json_proto POST (null) [12:55:02]execute_cgi path=json_proto method=POST [12:55:02]POST find Content-Length [12:55:02]Host: 172.17.39.68:8080 [12:55:02]Content-Length: 920 [12:55:02]Content-Type: application/json [12:55:02] [12:55:02]POST finish read [12:55:02]Found Content-Length = 920 [12:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214209", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]execute_script... [12:55: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)214209", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]POST & json_proto [12:55:02]process_json_proto [12:55:02]json parsed OK: [12:55:02]protocol is kg_v1.0 [12:55:02]action value=close_receipt [12:55:02]process_action close_receipt [12:55:02]cmd_close_receipt [12:55:02]MH_GetDate [12:55:02]Write to MH i2c: F0 00 00 1D 00 0C [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 1D 00 00 26 1C 95 66 EC 7F 94 66 B7 [12:55:02]GetLastDocTimeStamp 48 [12:55:02]current date 1721048102 [12:55:02]FM_GetShiftState [12:55:02]SAM_PROTO_GetShiftState [12:55:02]wFMCommunicate request_size=4 [12:55:02]MH_SAM_APDU [12:55:02]CAPDU: 80 13 01 00 [12:55:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:02]Read from MH i2c: E2 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8E [12:55:02]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [12:55:02]wFMCommunicate OK [12:55:02]SAM_PROTO_GetShiftState done [12:55:02]FM_GetShiftState done [12:55:02]opened in 1721001862 [12:55:02]opened+sec_in_day 1721088262 [12:55:02]quantity*price = 12500 [12:55:02]sum+1 = 12501 [12:55:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 68 15.07.2024 12:55 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31627 ФПД: 163600229362073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31627&fm=163600229362073&tin=02508201610067®Number=0000000000098025&sum=23600 0 [12:55:03]StoreToDocumentArchive [12:55:03]shift 370 fd 31627 [12:55:03]save to /storage/0370/doc_00031627 [12:55:03]save last doc name /storage/0370/doc_00031627 to /storage/kkm_last_doc_name [12:55:03]save OK [12:55:03]Clear old archive folders... [12:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=390 [12:55:03]tlvbuf is 001E8640 [12:55:03]SAM_PROTO_ClearQueue [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 09 00 00 [12:55:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_ClearQueue done [12:55:03]KKMCreateOFDPacket [12:55:03]OFDProtocolAddRootSTLVToBuf [12:55:03]FM_MakeSignedData [12:55:03]FM_MakeSignedData [12:55:03]SAM_PROTO_SignData [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 01 02 [12:55:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]wFMCommunicate request_size=255 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [12:55:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 2C [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:55:04]RAPDU: 90 00 [12:55:04]wFMCommunicate OK [12:55:04]wFMCommunicate request_size=149 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 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 44 00 00 00 F4 03 04 00 26 1C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8B 7B 00 00 35 04 06 00 94 CB 25 8E 69 99 [12:55:04]Write to MH i2c: E2 98 00 2E 00 80 0D 02 02 90 00 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 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 44 00 00 00 F4 03 04 00 26 1C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8B 7B 00 00 35 04 06 00 94 CB 25 8E 69 99 00 00 3B [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:55:04]RAPDU: 90 00 [12:55:04]wFMCommunicate OK [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 0D 03 02 [12:55:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0B 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0B 00 2F 00 00 34 C8 FD 40 66 61 A3 2E 90 00 7C [12:55:04]RAPDU: 34 C8 FD 40 66 61 A3 2E 90 00 [12:55:04]wFMCommunicate OK [12:55:04]SAM_PROTO_SignData done [12:55:04]FM_MakeSignedData done [12:55:04]CreateOFDProtocolMessage [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 11 00 00 [12:55:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 17 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [12:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:55:04]wFMCommunicate OK [12:55:04]CreateOFDProtocolMessage done [12:55:04]OFDSenderStorePacket 31627 [12:55:04]StoreOFDPacket docnum=31627 [12:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9A 01 00 00 E3 95 92 01 FC 96 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 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 44 00 00 00 F4 03 04 00 26 1C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8B 7B 00 00 35 04 06 00 94 CB 25 8E 69 99 34 C8 FD 40 66 61 A3 2E [12:55:04]CheckFolder [12:55:04]dirname=/storage/ofd_packets [12:55:04]CheckFolder done [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00031627 [12:55:04]NVStorageSaveData ofd_packets/00031627 [12:55:04]File name is /storage/ofd_packets/00031627 [12:55:04]Write 440 bytes [12:55:04]NVStorageSaveData done [12:55:04]OFDSenderStorePacket done [12:55:04]KKMCreateOFDPacket done [12:55:04]NVStorageSaveData kkm_last_timestamp [12:55:04]File name is /storage/kkm_last_timestamp [12:55:04]Write 4 bytes [12:55:04]NVStorageSaveData done [12:55:04]ExternCall_PrintAddStr [12:55:04]wPrintStart [12:55:04]Write to MH i2c: 01 00 00 31 00 31 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:55:04]RasterBufferAndPrint [12:55:04]line Счет N : (3)214209 [12:55:04]line ИНН: 02508201610067 [12:55:04]line Контрольно-Кассовый Чек [12:55:04]line ПРОДАЖА [12:55:04]line Товар: 4870202521247 [12:55:04]line Напиток MAXI чай 1,2 черн.персик [12:55:04]line 1.000 * 125.00 [12:55:04]line = 125.00 [12:55:04]line НДС 12% НСП 1% [12:55:04]line > о реализуемом товаре [12:55:04]line Товар: 4870001570071 [12:55:04]line Напиток Pepsi 1л [12:55:04]line 1.000 * 111.00 [12:55:04]line = 111.00 [12:55:04]line НДС 12% НСП 1% [12:55:04]line > о реализуемом товаре [12:55:04]line ИТОГО: 236.00 [12:55:04]line НСП 1% : 2.09 [12:55:04]line НДС 12% : 25.06 [12:55:04]line Наличными: 236.00 [12:55:04]line Безнал.: 0.00 [12:55:04]line Место: АЗС № 140 "Партнер Нефть" [12:55:04]OFD Sender: Processing packet 31627 [packets to send 5, broken 4] [12:55:04]ProducePacketName [12:55:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:55:04]line СНО: Общий режим [12:55:04]line Чек 68 15.07.2024 12:55 [12:55:04]line Смена: 370 ФФД: 1.0 [12:55:04]line ЗНМ: 0300000189 [12:55:04]line РНМ: 0000000000098025 [12:55:04]line Версия ККМ: 001 [12:55:04]line ФМ: 0000000000965389 [12:55:04]line ФД: 31627 [12:55:04]line ФПД: 163600229362073 [12:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31627&fm=163600229362073&tin=02508201610067®Number=0000000000098025&sum=23600 [12:55:04]name=ofd_packets/00031627 [12:55:04]OFD Sender: To server: pG, [12:55:04]CommunicateWithHost lk.salyk.kg:30040 [12:55:04]ConnectInit lk.salyk.kg [12:55:04]line 0 [12:55:04]written 0, free lines is 4095 [12:55:04]Connected sock=11 [12:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9A 01 00 00 E3 95 92 01 FC 96 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 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 44 00 00 00 F4 03 04 00 26 1C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8B 7B 00 00 35 04 06 00 94 CB 25 8E 69 99 34 C8 FD 40 66 61 A3 2E [12:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A2 CA 47 00 8E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8B 7B 00 00 F4 03 04 00 34 C8 94 66 B6 04 01 00 00 71 A9 70 42 36 CC 04 6F [12:55:05]CommunicateWithHost err = 0 [12:55:05]CheckOFDResponse [12:55:05]1017 (14) - 77093643461234 [12:55:05]1041 (16) - 0000000000965389 [12:55:05]1040 (4) - 31627 [12:55:05]1012 (4) - 15.07.2024 06:56 [12:55:05]1206 (1) - 0 [12:55:05]OFD Sender: Remove packet 31627 [12:55:05]ProducePacketName [12:55:05]name=ofd_packets/00031627 [12:55:05]NVStorageDeleteData [12:55:05]Write to MH i2c: 01 00 00 60 00 60 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 AD 0C 20 [12:55:05]RasterBufferAndPrint [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]written 0, free lines is 3249 [12:55:05]MH_Cut [12:55:05]Write to MH i2c: D1 01 00 67 00 01 39 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 01 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 01 00 67 00 00 38 [12:55:05]Write to MH i2c: 01 00 00 68 00 68 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]OFD Sender: No OFD packet to send [12:55:05]*** Cut start [12:55:05]*** Partial cut [12:55:05]*** CUTSNS_PIN = 1 [12:55:05]*** CUTSNS_PIN = 0 [12:55:07]*** Brake cut motor [12:55:07]Read from MH i2c: 01 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 07 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 07 00 68 00 00 00 12 00 00 FF 0F 8F [12:55:07]process_action_free close_receipt [12:55:07]json_value_free [12:55:07]json_value_free done [12:55:07]process_json_proto returns [12:55:07]Send response to host [12:55:07]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [12:55:07]free response buf [12:55:07]execute_script done [12:55:07]execute_script returns [12:55:07]free content buf [12:55:07]Sock 9.Close socket [12:55:07]Sock 9.Thread stoped [12:55:07]int [12:55:07]Write to MH i2c: 01 00 00 69 00 69 [12:55:07]*** Stop cut motor [12:55:07]*** FLAG_CUTTER_FAIL [12:55:07]*** Cut end [12:55:07]*** FLAG_PRN_PAP1 set [12:55:07]Write i2c OK [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 07 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 07 00 69 00 00 01 12 00 00 FF 0F 91 [12:55:07]state=0 [12:55:07]No paper [12:55:07]Cutter fail [12:55:07]Cutter bad position [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:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00: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:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]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:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 23 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 45658+1721008108=1721053766 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:10]*** Cutter blocked [00:00:10]*** Cut unblock start [00:00:10]*** Set cut motor for full cut [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:11]*** Cutter still blocked [00:00:11]*** Brake cut motor [00:00:13]*** Stop cut motor [00:00:14]*** Set cut motor for partial cut [00:00:16]*** Brake cut motor [00:00:16]Read from MH i2c: 00 [00:00:16]MH_I2C_Read... [00:00:16]*** Stop cut motor [00:00:16]Read from MH i2c: 00 29 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 24 [00:00:16]Are we in boot? [00:00:16]We are not in boot now [00:00:16]Write to MH i2c: 01 00 00 04 00 04 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: 01 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: 01 07 00 [00:00:16]MH_I2C_Read... [00:00:16]*** FLAG_PRN_PAP1 set [00:00:16]Read from MH i2c: 01 07 00 04 00 00 01 12 00 00 *** FLAG_CUTTER_SNS reset [00:00:16]FF 0F 2C [00:00:16]MH_Cut [00:00:16]Write to MH i2c: D1 01 00 05 00 01 D7 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: D1 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: D1 01 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: D1 01 00 05 00 00 D6 [00:00:16]Write to MH i2c: 01 00 00 06 00 06 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]*** Cut start [00:00:16]*** Partial cut [00:00:16]*** CUTSNS_PIN = 0 [00:00:17]*** Brake cut motor [00:00:18]Read from MH i2c: 01 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: 01 07 00 [00:00:18]MH_I2C_Read... [00:00:18]*** Stop cut motor [00:00:18]Read from MH i2c: *** FLAG_CUTTER_FAIL [00:00:18]01 07 00 06 00 00 01 12 00 00 FF 0F *** Cut end [00:00:18]2E [00:00:18]Model is 3 [00:00:18]MH firmware is 30620 [00:00:18]MH boot firmware is 3 [00:00:18]MH_SetPrinterDots 448 [00:00:18]HeadWidthInBytes 56 [00:00:18]maxmasksize 7 [00:00:18]Write to MH i2c: D6 06 00 07 00 41 00 40 00 FF FF 61 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D6 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D6 01 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D6 01 00 07 00 00 DD [00:00:18]Write to MH i2c: D5 00 00 08 00 DC [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D5 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D5 01 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D5 01 00 08 00 00 DD [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]LoadDictionaryFromArray [00:00:18]Load OK [00:00:18]ExternCall_SetCallbacks [00:00:18]NVStorageInit [00:00:18]MH_GetDate [00:00:18]Write to MH i2c: F0 00 00 09 00 F8 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 09 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 09 00 09 00 00 4E 32 95 66 EC 7F 94 66 E1 [14:29:34]Current date/time: 15.07.2024 14:29 [14:29:34]FM_Init [14:29:34]wFMConnect [14:29:34]MH_SAM_On [14:29:34]Write to MH i2c: E0 00 00 0A 00 E9 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_init finished! [14:29:34]*** atr: [14:29:34]*** 0F 3B D5 18 FF 81 91 FE [14:29:34]*** 1F C3 80 73 C8 21 10 0A [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]*** 00 00 00 00 00 00 00 00 [14:29:34]Read from MH i2c: E0 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E0 10 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E0 10 00 0A 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 08 [14:29:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:29:34]wFMCommunicate request_size=10 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:29:34]Write to MH i2c: E2 0D 00 0B 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B5 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 11 00 00 [14:29:34]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E1 [14:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:34]wFMCommunicate OK [14:29:34]Detected FM SN is 0000000000965389 [14:29:34]Stored FM SN is 0000000000965389 [14:29:34]wFMCommunicate request_size=9 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 16 00 00 04 BF 17 01 00 [14:29:34]Write to MH i2c: E2 0C 00 0D 00 80 16 00 00 04 00 BF 17 01 00 00 00 6B [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]FM PIN OK [14:29:34]wFMCommunicate request_size=8 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 14 04 00 03 02 00 01 [14:29:34]Write to MH i2c: E2 0B 00 0E 00 80 14 04 00 03 00 02 00 01 00 00 98 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 [14:29:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 0E 00 00 90 00 82 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=13 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:29:34]Write to MH i2c: E2 10 00 0F 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BD [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 0F 00 00 90 00 83 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 11 00 00 [14:29:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [14:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:34]wFMCommunicate OK [14:29:34]DocumentArchiveInit [14:29:34]Start Httpd... [14:29:34]Httpd thread 3067555172 created [14:29:34]Write to MH i2c: 01 00 00 11 00 11 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 11 00 00 01 12 00 00 FF 0F 39 [14:29:34]Allocated Socket 5 [14:29:34]Bind OK [14:29:34]Listen OK [14:29:34]httpd running on port 8080 [14:29:34]Waiting for new connection... [14:29:34]MH Int Process started [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14: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]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]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:34]accept exits with 6 [15:56:34]New connection [15:56:34]New thread 3067268452 created [15:56:34]Waiting for new connection... [15:56:34] Sock 6.Parse request [15:56:34]Sock 6.Check first char [15:56:34]Sock 6.First char is OK [15:56:34]request: POST /json_proto HTTP/1.0 [15:56:34]Method: POST [15:56:34]URL: /json_proto [15:56:34]Method is POST - this is cgi request [15:56:34]url: /json_proto [15:56:34]query_string will be loaded in cgi processing [15:56:34]execute_cgi json_proto POST (null) [15:56:34]execute_cgi path=json_proto method=POST [15:56:34]POST find Content-Length [15:56:34]Host: 172.17.39.68:8080 [15:56:34]Content-Length: 215 [15:56:34]Content-Type: application/json [15:56:34] [15:56:34]POST finish read [15:56:34]Found Content-Length = 215 [15:56: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" ] } } [15:56:34]execute_script... [15:56: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" ] } } [15:56:34]POST & json_proto [15:56:34]process_json_proto [15:56:34]json parsed OK: [15:56:34]protocol is kg_v1.0 [15:56:34]action value=get_value [15:56:34]process_action get_value [15:56:34]cmd_get_value [15:56:34]process_action get_value done [15:56:34]requested_data is exist [15:56:34]produce_requested_data [15:56:34]requested_item kkm.sn is exist - process it [15:56:34]requested_item kkm.ver is exist - process it [15:56:34]requested_item fm.sn is exist - process it [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 11 00 00 [15:56:34]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:34]Read from MH i2c: E2 17 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E7 [15:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:56:34]wFMCommunicate OK [15:56:34]requested_item fd.num is exist - process it [15:56:34]SAM_PROTO_GetFieldsCounters [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 00 00 [15:56:34]Write to MH i2c: E2 08 00 13 00 80 13 00 00 00 00 00 00 8F [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 62 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 62 00 13 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [15:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8B 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetFieldsCounters done [15:56:34]requested_item shift.num is exist - process it [15:56:34]requested_item shift.opened is exist - process it [15:56:34]req_shift_opened [15:56:34]FM_GetShiftState [15:56:34]SAM_PROTO_GetShiftState [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 01 00 [15:56:34]Write to MH i2c: E2 08 00 14 00 80 13 01 00 00 00 00 00 91 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 14 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 84 [15:56:34]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetShiftState done [15:56:34]FM_GetShiftState done [15:56:34]req_shift_opened done [15:56:34]requested_item shift.open_date is exist - process it [15:56:34]req_shift_open_date [15:56:34]req_shift_open_date done [15:56:34]produce_requested_data done [15:56:34]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31627,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [15:56:34]process_action_free get_value [15:56:34]json_value_free [15:56:34]json_value_free done [15:56:34]process_json_proto returns [15:56:34]Send response to host [15:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31627,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [15:56:34]free response buf [15:56:34]execute_script done [15:56:34]execute_script returns [15:56:34]free content buf [15:56:34]Sock 6.Close socket [15:56:34]Sock 6.Thread stoped [15:56:34]accept exits with 9 [15:56:34]New connection [15:56:34]New thread 3067125092 created [15:56:34]Thread 3067268452 joined [15:56:34]Waiting for new connection... [15:56:34] Sock 9.Parse request [15:56:34]Sock 9.Check first char [15:56:34]Sock 9.First char is OK [15:56:34]request: POST /json_proto HTTP/1.0 [15:56:34]Method: POST [15:56:34]URL: /json_proto [15:56:34]Method is POST - this is cgi request [15:56:34]url: /json_proto [15:56:34]query_string will be loaded in cgi processing [15:56:34]execute_cgi json_proto POST (null) [15:56:34]execute_cgi path=json_proto method=POST [15:56:34]POST find Content-Length [15:56:34]Host: 172.17.39.68:8080 [15:56:34]Content-Length: 331 [15:56:34]Content-Type: application/json [15:56:34] [15:56:34]POST finish read [15:56:34]Found Content-Length = 331 [15:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:56:34]execute_script... [15:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:56:34]POST & json_proto [15:56:34]process_json_proto [15:56:34]json parsed OK: [15:56:34]protocol is kg_v1.0 [15:56:34]action value=get_value [15:56:34]process_action get_value [15:56:34]cmd_get_value [15:56:34]process_action get_value done [15:56:34]requested_data is exist [15:56:34]produce_requested_data [15:56:34]requested_item fm.sale.total is exist - process it [15:56:34]SAM_PROTO_GetFMData [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 03 00 [15:56:34]Write to MH i2c: E2 08 00 15 00 80 13 03 00 00 00 00 00 94 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 15 00 00 B7 04 85 04 B3 04 6E 04 04 00 A6 78 00 00 69 04 A0 00 6F 04 04 00 A4 78 00 00 B1 04 04 00 60 ED F5 24 70 04 04 00 14 E0 16 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 BF EC 03 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 69 AC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 5A [15:56:35]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A6 78 00 00 69 04 A0 00 6F 04 04 00 A4 78 00 00 B1 04 04 00 60 ED F5 24 70 04 04 00 14 E0 16 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 BF EC 03 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 69 AC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 17 00 00 [15:56:35]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 16 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 C7 [15:56:35]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 17 00 00 [15:56:35]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 17 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 3C [15:56:35]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 17 00 00 [15:56:35]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 FD 00 18 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 0D [15:56:35]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 17 00 00 [15:56:35]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 D4 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 D4 00 19 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [15:56:36]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:56:36]wFMCommunicate OK [15:56:36]SAM_PROTO_GetFMData done [15:56:36]requested_item fm.sale_refund.total is exist - process it [15:56:36]requested_item fm.buy.total is exist - process it [15:56:36]requested_item shift.sale.total is exist - process it [15:56:36]SAM_PROTO_GetShiftData [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 13 02 00 [15:56:36]Write to MH i2c: E2 08 00 1A 00 80 13 02 00 00 00 00 00 98 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 FD 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 FD 00 1A 00 00 AE 04 AA 04 AA 04 6E 04 04 00 44 00 00 00 69 04 9B 00 6F 04 04 00 44 00 00 00 B1 04 03 00 EC 95 14 70 04 03 00 EC D1 0A 72 04 03 00 00 C4 09 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 A0 2F 02 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 9E 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [15:56:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 44 00 00 00 69 04 9B 00 6F 04 04 00 44 00 00 00 B1 04 03 00 EC 95 14 70 04 03 00 EC D1 0A 72 04 03 00 00 C4 09 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 A0 2F 02 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 9E 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:56:36]wFMCommunicate OK [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 17 00 00 [15:56:36]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 FD 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BD [15:56:36]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 [15:56:36]wFMCommunicate OK [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 17 00 00 [15:56:36]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 FD 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 FD 00 1C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [15:56:37]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 [15:56:37]wFMCommunicate OK [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 17 00 00 [15:56:37]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 FD 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 FD 00 1D 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0F [15:56:37]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 [15:56:37]wFMCommunicate OK [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 17 00 00 [15:56:37]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 CB 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 CB 00 1E 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 87 [15:56:37]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 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetShiftData done [15:56:37]requested_item shift.sale.total_cash is exist - process it [15:56:37]requested_item shift.sale_refund.total is exist - process it [15:56:37]requested_item shift.sale_refund.total_cash is exist - process it [15:56:37]requested_item shift.buy.total is exist - process it [15:56:37]requested_item shift.buy.total_cash is exist - process it [15:56:37]produce_requested_data done [15:56:37]produce_requested_data return {"fm.sale.total":6200968.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13491.00,"shift.sale.total_cash":7091.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} [15:56:37]process_action_free get_value [15:56:37]json_value_free [15:56:37]json_value_free done [15:56:37]process_json_proto returns [15:56:37]Send response to host [15:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6200968.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13491.00,"shift.sale.total_cash":7091.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}}} [15:56:37]free response buf [15:56:37]execute_script done [15:56:37]execute_script returns [15:56:37]free content buf [15:56:37]Sock 9.Close socket [15:56:37]Sock 9.Thread stoped [15:56:38]OFD Sender: No OFD packet to send [15:56:38]accept exits with 6 [15:56:38]New connection [15:56:38]New thread 3067268452 created [15:56:38]Thread 3067125092 joined [15:56:38]Waiting for new connection... [15:56:38] Sock 6.Parse request [15:56:38]Sock 6.Check first char [15:56:38]Sock 6.First char is OK [15:56:38]request: POST /json_proto HTTP/1.0 [15:56:38]Method: POST [15:56:38]URL: /json_proto [15:56:38]Method is POST - this is cgi request [15:56:38]url: /json_proto [15:56:38]query_string will be loaded in cgi processing [15:56:38]execute_cgi json_proto POST (null) [15:56:38]execute_cgi path=json_proto method=POST [15:56:38]POST find Content-Length [15:56:38]Host: 172.17.39.68:8080 [15:56:38]Content-Length: 618 [15:56:38]Content-Type: application/json [15:56:38] [15:56:38]POST finish read [15:56:38]Found Content-Length = 618 [15:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214210", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "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" ] } } [15:56:38]execute_script... [15:56: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)214210", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "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" ] } } [15:56:38]POST & json_proto [15:56:38]process_json_proto [15:56:38]json parsed OK: [15:56:38]protocol is kg_v1.0 [15:56:38]action value=close_receipt [15:56:38]process_action close_receipt [15:56:38]cmd_close_receipt [15:56:38]MH_GetDate [15:56:38]Write to MH i2c: F0 00 00 1F 00 0E [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: F0 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: F0 09 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: F0 09 00 1F 00 00 B7 46 95 66 EC 7F 94 66 74 [15:56:38]GetLastDocTimeStamp 1721048102 [15:56:38]current date 1721058999 [15:56:38]FM_GetShiftState [15:56:38]SAM_PROTO_GetShiftState [15:56:38]wFMCommunicate request_size=4 [15:56:38]MH_SAM_APDU [15:56:38]CAPDU: 80 13 01 00 [15:56:38]Write to MH i2c: E2 08 00 20 00 80 13 01 00 00 00 00 00 9D [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:38]Read from MH i2c: E2 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 0E 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 0E 00 20 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 90 [15:56:38]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:56:38]wFMCommunicate OK [15:56:38]SAM_PROTO_GetShiftState done [15:56:38]FM_GetShiftState done [15:56:38]opened in 1721001862 [15:56:38]opened+sec_in_day 1721088262 [15:56:38]quantity*price = 15500 [15:56:38]sum+1 = 15501 [15:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 69 15.07.2024 15:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31628 ФПД: 9570783426228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155639&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31628&fm=9570783426228&tin=02508201610067®Number=0000000000098025&sum=15500 0 [15:56:40]StoreToDocumentArchive [15:56:40]shift 370 fd 31628 [15:56:40]save to /storage/0370/doc_00031628 [15:56:40]save last doc name /storage/0370/doc_00031628 to /storage/kkm_last_doc_name [15:56:40]save OK [15:56:40]Clear old archive folders... [15:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=270 [15:56:40]tlvbuf is 01927500 [15:56:40]SAM_PROTO_ClearQueue [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 09 00 00 [15:56:40]Write to MH i2c: E2 08 00 2D 00 80 09 00 00 00 00 00 00 9F [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:56:40]RAPDU: 90 00 [15:56:40]wFMCommunicate OK [15:56:40]SAM_PROTO_ClearQueue done [15:56:40]KKMCreateOFDPacket [15:56:40]OFDProtocolAddRootSTLVToBuf [15:56:40]FM_MakeSignedData [15:56:40]FM_MakeSignedData [15:56:40]SAM_PROTO_SignData [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 0D 01 02 [15:56:40]Write to MH i2c: E2 08 00 2E 00 80 0D 01 02 00 00 00 00 A7 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:56:40]RAPDU: 90 00 [15:56:40]wFMCommunicate OK [15:56:40]wFMCommunicate request_size=255 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 45 00 00 00 F4 03 04 00 B7 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:56:40]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 45 00 00 00 F4 03 04 00 B7 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 BB [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [15:56:40]RAPDU: 90 00 [15:56:40]wFMCommunicate OK [15:56:40]wFMCommunicate request_size=29 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 0D 02 02 18 39 36 35 33 38 39 10 04 04 00 8C 7B 00 00 35 04 06 00 08 B4 5F 25 76 B4 [15:56:40]Write to MH i2c: E2 20 00 30 00 80 0D 02 02 18 00 39 36 35 33 38 39 10 04 04 00 8C 7B 00 00 35 04 06 00 08 B4 5F 25 76 B4 00 00 EA [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [15:56:40]RAPDU: 90 00 [15:56:40]wFMCommunicate OK [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 0D 03 02 [15:56:40]Write to MH i2c: E2 08 00 31 00 80 0D 03 02 00 00 00 00 AC [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 0B 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 0B 00 31 00 00 09 A7 C5 CD 23 91 9C 69 90 00 A8 [15:56:40]RAPDU: 09 A7 C5 CD 23 91 9C 69 90 00 [15:56:40]wFMCommunicate OK [15:56:40]SAM_PROTO_SignData done [15:56:40]FM_MakeSignedData done [15:56:40]CreateOFDProtocolMessage [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 11 00 00 [15:56:40]Write to MH i2c: E2 08 00 32 00 80 11 00 00 00 00 00 00 AC [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 17 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 17 00 32 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 07 [15:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:56:40]wFMCommunicate OK [15:56:40]CreateOFDProtocolMessage done [15:56:40]OFDSenderStorePacket 31628 [15:56:40]StoreOFDPacket docnum=31628 [15:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 22 01 00 00 AD 2E 1A 01 26 61 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 45 00 00 00 F4 03 04 00 B7 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8C 7B 00 00 35 04 06 00 08 B4 5F 25 76 B4 09 A7 C5 CD 23 91 9C 69 [15:56:40]CheckFolder [15:56:40]dirname=/storage/ofd_packets [15:56:40]CheckFolder done [15:56:40]ProducePacketName [15:56:40]name=ofd_packets/00031628 [15:56:40]NVStorageSaveData ofd_packets/00031628 [15:56:40]File name is /storage/ofd_packets/00031628 [15:56:40]Write 320 bytes [15:56:40]NVStorageSaveData done [15:56:40]OFDSenderStorePacket done [15:56:40]KKMCreateOFDPacket done [15:56:40]NVStorageSaveData kkm_last_timestamp [15:56:40]File name is /storage/kkm_last_timestamp [15:56:40]Write 4 bytes [15:56:40]NVStorageSaveData done [15:56:40]ExternCall_PrintAddStr [15:56:40]wPrintStart [15:56:40]Write to MH i2c: 01 00 00 33 00 33 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: 01 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: 01 07 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: 01 07 00 33 00 00 01 12 00 00 FF 0F 5B [15:56:40]MH_Cut [15:56:40]Write to MH i2c: D1 01 00 34 00 01 06 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: D1 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: D1 01 00 [15:56:40]MH_I2C_Read... [15:56:40]*** Cut start [15:56:40]*** Partial cut [15:56:40]*** CUTSNS_PIN = 0 [15:56:40]Read from MH i2c: D1 01 00 34 00 00 05 [15:56:40]Write to MH i2c: 01 00 00 35 00 35 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]OFD Sender: Processing packet 31628 [packets to send 5, broken 4] [15:56:40]ProducePacketName [15:56:40]name=ofd_packets/00031628 [15:56:40]OFD Sender: To server: pG, [15:56:40]CommunicateWithHost lk.salyk.kg:30040 [15:56:40]ConnectInit lk.salyk.kg [15:56:40]Connected sock=10 [15:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 22 01 00 00 AD 2E 1A 01 26 61 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 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 45 00 00 00 F4 03 04 00 B7 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8C 7B 00 00 35 04 06 00 08 B4 5F 25 76 B4 09 A7 C5 CD 23 91 9C 69 [15:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BE D5 47 00 65 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8C 7B 00 00 F4 03 04 00 C5 F2 94 66 B6 04 01 00 00 BF F0 81 ED AC A1 8F AC [15:56:41]CommunicateWithHost err = 0 [15:56:41]CheckOFDResponse [15:56:41]1017 (14) - 77093643461234 [15:56:41]1041 (16) - 0000000000965389 [15:56:41]1040 (4) - 31628 [15:56:41]1012 (4) - 15.07.2024 09:58 [15:56:41]1206 (1) - 0 [15:56:41]OFD Sender: Remove packet 31628 [15:56:41]ProducePacketName [15:56:41]name=ofd_packets/00031628 [15:56:41]NVStorageDeleteData [15:56:41]OFD Sender: No OFD packet to send [15:56:42]*** Brake cut motor [15:56:42]Read from MH i2c: 01 [15:56:42]MH_I2C_Read... [15:56:42]*** Stop cut motor [15:56:42]*** FLAG_CUTTER_FAIL [15:56:42]*** Cut end [15:56:42]Read from MH i2c: 01 07 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: 01 07 00 35 00 00 01 12 00 00 FF 0F 5D [15:56:42]process_action_free close_receipt [15:56:42]json_value_free [15:56:42]json_value_free done [15:56:42]process_json_proto returns [15:56:42]Send response to host [15:56:42]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [15:56:42]free response buf [15:56:42]execute_script done [15:56:42]execute_script returns [15:56:42]free content buf [15:56:42]Sock 6.Close socket [15:56:42]Sock 6.Thread stoped [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:56:57]accept exits with 9 [15:56:57]New connection [15:56:57]New thread 3067125092 created [15:56:57]Thread 3067268452 joined [15:56:57]Waiting for new connection... [15:56:57] Sock 9.Parse request [15:56:57]Sock 9.Check first char [15:56:57]Sock 9.First char is OK [15:56:57]request: POST /json_proto HTTP/1.0 [15:56:57]Method: POST [15:56:57]URL: /json_proto [15:56:57]Method is POST - this is cgi request [15:56:57]url: /json_proto [15:56:57]query_string will be loaded in cgi processing [15:56:57]execute_cgi json_proto POST (null) [15:56:57]execute_cgi path=json_proto method=POST [15:56:57]POST find Content-Length [15:56:57]Host: 172.17.39.68:8080 [15:56:57]Content-Length: 215 [15:56:57]Content-Type: application/json [15:56:57] [15:56:57]POST finish read [15:56:57]Found Content-Length = 215 [15:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:57]execute_script... [15:56:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:57]POST & json_proto [15:56:57]process_json_proto [15:56:57]json parsed OK: [15:56:57]protocol is kg_v1.0 [15:56:57]action value=get_value [15:56:57]process_action get_value [15:56:57]cmd_get_value [15:56:57]process_action get_value done [15:56:57]requested_data is exist [15:56:57]produce_requested_data [15:56:57]requested_item kkm.sn is exist - process it [15:56:57]requested_item kkm.ver is exist - process it [15:56:57]requested_item fm.sn is exist - process it [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 11 00 00 [15:56:57]Write to MH i2c: E2 08 00 36 00 80 11 00 00 00 00 00 00 B0 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 36 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0B [15:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:56:57]wFMCommunicate OK [15:56:57]requested_item fd.num is exist - process it [15:56:57]SAM_PROTO_GetFieldsCounters [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 13 00 00 [15:56:57]Write to MH i2c: E2 08 00 37 00 80 13 00 00 00 00 00 00 B3 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 62 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 62 00 37 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15:56:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8C 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:57]wFMCommunicate OK [15:56:57]SAM_PROTO_GetFieldsCounters done [15:56:57]requested_item shift.num is exist - process it [15:56:57]requested_item shift.opened is exist - process it [15:56:57]req_shift_opened [15:56:57]FM_GetShiftState [15:56:57]SAM_PROTO_GetShiftState [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 13 01 00 [15:56:57]Write to MH i2c: E2 08 00 38 00 80 13 01 00 00 00 00 00 B5 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 0E 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 0E 00 38 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A8 [15:56:57]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:56:57]wFMCommunicate OK [15:56:57]SAM_PROTO_GetShiftState done [15:56:57]FM_GetShiftState done [15:56:57]req_shift_opened done [15:56:57]requested_item shift.open_date is exist - process it [15:56:57]req_shift_open_date [15:56:57]req_shift_open_date done [15:56:57]produce_requested_data done [15:56:57]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31628,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [15:56:57]process_action_free get_value [15:56:57]json_value_free [15:56:57]json_value_free done [15:56:57]process_json_proto returns [15:56:57]Send response to host [15:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31628,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [15:56:57]free response buf [15:56:57]execute_script done [15:56:57]execute_script returns [15:56:57]free content buf [15:56:57]Sock 9.Close socket [15:56:57]Sock 9.Thread stoped [15:56:57]accept exits with 8 [15:56:57]New connection [15:56:57]New thread 3067268452 created [15:56:57]Thread 3067125092 joined [15:56:57]Waiting for new connection... [15:56:57] Sock 8.Parse request [15:56:57]Sock 8.Check first char [15:56:57]Sock 8.First char is OK [15:56:57]request: POST /json_proto HTTP/1.0 [15:56:57]Method: POST [15:56:57]URL: /json_proto [15:56:57]Method is POST - this is cgi request [15:56:57]url: /json_proto [15:56:57]query_string will be loaded in cgi processing [15:56:57]execute_cgi json_proto POST (null) [15:56:57]execute_cgi path=json_proto method=POST [15:56:57]POST find Content-Length [15:56:57]Host: 172.17.39.68:8080 [15:56:57]Content-Length: 331 [15:56:57]Content-Type: application/json [15:56:57] [15:56:57]POST finish read [15:56:57]Found Content-Length = 331 [15:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:56:57]execute_script... [15:56:57]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" ] } } [15:56:57]POST & json_proto [15:56:57]process_json_proto [15:56:57]json parsed OK: [15:56:57]protocol is kg_v1.0 [15:56:57]action value=get_value [15:56:57]process_action get_value [15:56:57]cmd_get_value [15:56:57]process_action get_value done [15:56:57]requested_data is exist [15:56:57]produce_requested_data [15:56:57]requested_item fm.sale.total is exist - process it [15:56:57]SAM_PROTO_GetFMData [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 13 03 00 [15:56:57]Write to MH i2c: E2 08 00 39 00 80 13 03 00 00 00 00 00 B8 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 39 00 00 B7 04 85 04 B3 04 6E 04 04 00 A7 78 00 00 69 04 A0 00 6F 04 04 00 A5 78 00 00 B1 04 04 00 EC 29 F6 24 70 04 04 00 A0 1C 17 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A6 C5 EC 03 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 F2 AC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0F [15:56:58]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A7 78 00 00 69 04 A0 00 6F 04 04 00 A5 78 00 00 B1 04 04 00 EC 29 F6 24 70 04 04 00 A0 1C 17 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A6 C5 EC 03 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 F2 AC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:56:58]wFMCommunicate OK [15:56:58]wFMCommunicate request_size=4 [15:56:58]MH_SAM_APDU [15:56:58]CAPDU: 80 17 00 00 [15:56:58]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 3A 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EB [15:56:58]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:56:58]wFMCommunicate OK [15:56:58]wFMCommunicate request_size=4 [15:56:58]MH_SAM_APDU [15:56:58]CAPDU: 80 17 00 00 [15:56:58]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 FD 00 3B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 60 [15:56:58]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:56:58]wFMCommunicate OK [15:56:58]wFMCommunicate request_size=4 [15:56:58]MH_SAM_APDU [15:56:58]CAPDU: 80 17 00 00 [15:56:58]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 FD 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 FD 00 3C 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 31 [15:56:59]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:56:59]wFMCommunicate OK [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 17 00 00 [15:56:59]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 D4 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 D4 00 3D 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [15:56:59]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:56:59]wFMCommunicate OK [15:56:59]SAM_PROTO_GetFMData done [15:56:59]requested_item fm.sale_refund.total is exist - process it [15:56:59]requested_item fm.buy.total is exist - process it [15:56:59]requested_item shift.sale.total is exist - process it [15:56:59]SAM_PROTO_GetShiftData [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 13 02 00 [15:56:59]Write to MH i2c: E2 08 00 3E 00 80 13 02 00 00 00 00 00 BC [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 FD 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 FD 00 3E 00 00 AE 04 AA 04 AA 04 6E 04 04 00 45 00 00 00 69 04 9B 00 6F 04 04 00 45 00 00 00 B1 04 03 00 78 D2 14 70 04 03 00 78 0E 0B 72 04 03 00 00 C4 09 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 0E 36 02 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 27 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [15:56:59]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 45 00 00 00 69 04 9B 00 6F 04 04 00 45 00 00 00 B1 04 03 00 78 D2 14 70 04 03 00 78 0E 0B 72 04 03 00 00 C4 09 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 0E 36 02 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 27 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:56:59]wFMCommunicate OK [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 17 00 00 [15:56:59]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 3F 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E1 [15:57:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:57:00]wFMCommunicate OK [15:57:00]wFMCommunicate request_size=4 [15:57:00]MH_SAM_APDU [15:57:00]CAPDU: 80 17 00 00 [15:57:00]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 40 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [15:57:00]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:57:00]wFMCommunicate OK [15:57:00]wFMCommunicate request_size=4 [15:57:00]MH_SAM_APDU [15:57:00]CAPDU: 80 17 00 00 [15:57:00]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 FD 00 41 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 33 [15:57:00]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 [15:57:00]wFMCommunicate OK [15:57:00]wFMCommunicate request_size=4 [15:57:00]MH_SAM_APDU [15:57:00]CAPDU: 80 17 00 00 [15:57:00]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 CB 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 CB 00 42 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AB [15:57:00]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 [15:57:00]wFMCommunicate OK [15:57:00]SAM_PROTO_GetShiftData done [15:57:00]requested_item shift.sale.total_cash is exist - process it [15:57:00]requested_item shift.sale_refund.total is exist - process it [15:57:00]requested_item shift.sale_refund.total_cash is exist - process it [15:57:00]requested_item shift.buy.total is exist - process it [15:57:00]requested_item shift.buy.total_cash is exist - process it [15:57:00]produce_requested_data done [15:57:00]produce_requested_data return {"fm.sale.total":6201123.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13646.00,"shift.sale.total_cash":7246.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} [15:57:00]process_action_free get_value [15:57:00]json_value_free [15:57:00]json_value_free done [15:57:00]process_json_proto returns [15:57:00]Send response to host [15:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6201123.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":13646.00,"shift.sale.total_cash":7246.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}}} [15:57:00]free response buf [15:57:00]execute_script done [15:57:00]execute_script returns [15:57:00]free content buf [15:57:00]Sock 8.Close socket [15:57:00]Sock 8.Thread stoped [15:57:01]OFD Sender: No OFD packet to send [15:57:03]accept exits with 9 [15:57:03]New connection [15:57:03]New thread 3067125092 created [15:57:03]Thread 3067268452 joined [15:57:03]Waiting for new connection... [15:57:03] Sock 9.Parse request [15:57:03]Sock 9.Check first char [15:57:03]Sock 9.First char is OK [15:57:03]request: POST /json_proto HTTP/1.0 [15:57:03]Method: POST [15:57:03]URL: /json_proto [15:57:03]Method is POST - this is cgi request [15:57:03]url: /json_proto [15:57:03]query_string will be loaded in cgi processing [15:57:03]execute_cgi json_proto POST (null) [15:57:03]execute_cgi path=json_proto method=POST [15:57:03]POST find Content-Length [15:57:03]Host: 172.17.39.68:8080 [15:57:03]Content-Length: 1134 [15:57:03]Content-Type: application/json [15:57:03] [15:57:03]POST finish read [15:57:03]Found Content-Length = 1134 [15:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214211", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 2.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 1080.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:03]execute_script... [15:57:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214211", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 2.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 1080.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:03]POST & json_proto [15:57:03]process_json_proto [15:57:03]json parsed OK: [15:57:03]protocol is kg_v1.0 [15:57:03]action value=close_receipt [15:57:03]process_action close_receipt [15:57:03]cmd_close_receipt [15:57:03]MH_GetDate [15:57:03]Write to MH i2c: F0 00 00 43 00 32 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: F0 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: F0 09 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: F0 09 00 43 00 00 D0 46 95 66 EC 7F 94 66 B1 [15:57:03]GetLastDocTimeStamp 1721058999 [15:57:03]current date 1721059024 [15:57:03]FM_GetShiftState [15:57:03]SAM_PROTO_GetShiftState [15:57:03]wFMCommunicate request_size=4 [15:57:03]MH_SAM_APDU [15:57:03]CAPDU: 80 13 01 00 [15:57:03]Write to MH i2c: E2 08 00 44 00 80 13 01 00 00 00 00 00 C1 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:03]Read from MH i2c: E2 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 0E 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: E2 0E 00 44 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B4 [15:57:03]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:57:03]wFMCommunicate OK [15:57:03]SAM_PROTO_GetShiftState done [15:57:03]FM_GetShiftState done [15:57:03]opened in 1721001862 [15:57:03]opened+sec_in_day 1721088262 [15:57:03]quantity*price = 30000 [15:57:03]sum+1 = 30001 [15:57:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610043 Пиво Арпа 1,5л ПЭТ 2.000 * 325.00 = 650.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1080.00 НСП 1% : 9.55 НДС 12% : 114.69 Наличными: 1080.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 70 15.07.2024 15:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31629 ФПД: 62008270198201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155704&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31629&fm=62008270198201&tin=02508201610067®Number=0000000000098025&sum=108000 0 [15:57:04]StoreToDocumentArchive [15:57:04]shift 370 fd 31629 [15:57:04]save to /storage/0370/doc_00031629 [15:57:04]save last doc name /storage/0370/doc_00031629 to /storage/kkm_last_doc_name [15:57:04]save OK [15:57:04]Clear old archive folders... [15:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=473 [15:57:04]tlvbuf is 01934170 [15:57:04]SAM_PROTO_ClearQueue [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 09 00 00 [15:57:04]Write to MH i2c: E2 08 00 51 00 80 09 00 00 00 00 00 00 C3 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 51 00 00 90 00 C5 [15:57:04]RAPDU: 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_ClearQueue done [15:57:04]KKMCreateOFDPacket [15:57:04]OFDProtocolAddRootSTLVToBuf [15:57:04]FM_MakeSignedData [15:57:04]FM_MakeSignedData [15:57:04]SAM_PROTO_SignData [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 0D 01 02 [15:57:04]Write to MH i2c: E2 08 00 52 00 80 0D 01 02 00 00 00 00 CB [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 03 00 52 00 00 90 00 C6 [15:57:04]RAPDU: 90 00 [15:57:04]wFMCommunicate OK [15:57:04]wFMCommunicate request_size=255 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 0D 02 02 FA 03 00 D9 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 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 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 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 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 [15:57:04]Write to MH i2c: E2 02 01 53 00 80 0D 02 02 FA 00 03 00 D9 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 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 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 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 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 00 00 67 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:05]Read from MH i2c: E2 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 03 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 03 00 53 00 00 90 00 C7 [15:57:05]RAPDU: 90 00 [15:57:05]wFMCommunicate OK [15:57:05]wFMCommunicate request_size=232 [15:57:05]MH_SAM_APDU [15:57:05]CAPDU: 80 0D 02 02 E3 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 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8D 7B 00 00 35 04 06 00 38 65 6C EB 15 B9 [15:57:05]Write to MH i2c: E2 EB 00 54 00 80 0D 02 02 E3 00 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 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8D 7B 00 00 35 04 06 00 38 65 6C EB 15 B9 00 00 A6 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:05]Read from MH i2c: E2 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 03 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 03 00 54 00 00 90 00 C8 [15:57:05]RAPDU: 90 00 [15:57:05]wFMCommunicate OK [15:57:05]wFMCommunicate request_size=4 [15:57:05]MH_SAM_APDU [15:57:05]CAPDU: 80 0D 03 02 [15:57:05]Write to MH i2c: E2 08 00 55 00 80 0D 03 02 00 00 00 00 D0 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:05]Read from MH i2c: E2 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 0B 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 0B 00 55 00 00 5A 35 90 29 95 84 F3 6B 90 00 90 [15:57:05]RAPDU: 5A 35 90 29 95 84 F3 6B 90 00 [15:57:05]wFMCommunicate OK [15:57:05]SAM_PROTO_SignData done [15:57:05]FM_MakeSignedData done [15:57:05]CreateOFDProtocolMessage [15:57:05]wFMCommunicate request_size=4 [15:57:05]MH_SAM_APDU [15:57:05]CAPDU: 80 11 00 00 [15:57:05]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 [15:57:05]MH_I2C_Read... [15:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:05]Read from MH i2c: E2 17 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2B [15:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:57:05]wFMCommunicate OK [15:57:05]CreateOFDProtocolMessage done [15:57:05]OFDSenderStorePacket 31629 [15:57:05]StoreOFDPacket docnum=31629 [15:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 ED 01 00 00 2C 56 E5 01 58 A5 5A 03 01 00 03 00 D9 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 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 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 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 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 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8D 7B 00 00 35 04 06 00 38 65 6C EB 15 B9 5A 35 90 29 95 84 F3 6B [15:57:05]CheckFolder [15:57:05]dirname=/storage/ofd_packets [15:57:05]CheckFolder done [15:57:05]ProducePacketName [15:57:05]name=ofd_packets/00031629 [15:57:05]NVStorageSaveData ofd_packets/00031629 [15:57:05]File name is /storage/ofd_packets/00031629 [15:57:05]Write 523 bytes [15:57:05]NVStorageSaveData done [15:57:05]OFDSenderStorePacket done [15:57:05]KKMCreateOFDPacket done [15:57:05]NVStorageSaveData kkm_last_timestamp [15:57:05]File name is /storage/kkm_last_timestamp [15:57:05]Write 4 bytes [15:57:05]NVStorageSaveData done [15:57:05]ExternCall_PrintAddStr [15:57:05]wPrintStart [15:57:05]Write to MH i2c: 01 00 00 57 00 57 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: 01 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: 01 07 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: 01 07 00 57 00 00 01 12 00 00 FF 0F 7F [15:57:05]MH_Cut [15:57:05]Write to MH i2c: D1 01 00 58 00 01 2A [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: D1 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: D1 01 00 [15:57:05]MH_I2C_Read... [15:57:05]*** Cut start [15:57:05]*** Partial cut [15:57:05]*** CUTSNS_PIN = 0 [15:57:05]Read from MH i2c: D1 01 00 58 00 00 29 [15:57:05]Write to MH i2c: 01 00 00 59 00 59 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]OFD Sender: Processing packet 31629 [packets to send 5, broken 4] [15:57:05]ProducePacketName [15:57:05]name=ofd_packets/00031629 [15:57:05]OFD Sender: To server: pG, [15:57:05]CommunicateWithHost lk.salyk.kg:30040 [15:57:05]ConnectInit lk.salyk.kg [15:57:05]Connected sock=10 [15:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 ED 01 00 00 2C 56 E5 01 58 A5 5A 03 01 00 03 00 D9 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 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 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 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 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 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 46 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8D 7B 00 00 35 04 06 00 38 65 6C EB 15 B9 5A 35 90 29 95 84 F3 6B [15:57:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 42 7C 47 00 9D EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8D 7B 00 00 F4 03 04 00 DE F2 94 66 B6 04 01 00 00 D9 F6 C8 91 60 58 82 B6 [15:57:06]CommunicateWithHost err = 0 [15:57:06]CheckOFDResponse [15:57:06]1017 (14) - 77093643461234 [15:57:06]1041 (16) - 0000000000965389 [15:57:06]1040 (4) - 31629 [15:57:06]1012 (4) - 15.07.2024 09:58 [15:57:06]1206 (1) - 0 [15:57:06]OFD Sender: Remove packet 31629 [15:57:06]ProducePacketName [15:57:06]name=ofd_packets/00031629 [15:57:06]NVStorageDeleteData [15:57:06]OFD Sender: No OFD packet to send [15:57:07]*** Brake cut motor [15:57:07]Read from MH i2c: 01 [15:57:07]MH_I2C_Read... [15:57:07]*** Stop cut motor [15:57:07]*** FLAG_CUTTER_FAIL [15:57:07]*** Cut end [15:57:07]Read from MH i2c: 01 07 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: 01 07 00 59 00 00 01 12 00 00 FF 0F 81 [15:57:07]process_action_free close_receipt [15:57:07]json_value_free [15:57:07]json_value_free done [15:57:07]process_json_proto returns [15:57:07]Send response to host [15:57:07]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [15:57:07]free response buf [15:57:07]execute_script done [15:57:07]execute_script returns [15:57:07]free content buf [15:57:07]Sock 9.Close socket [15:57:07]Sock 9.Thread stoped [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:42]accept exits with 8 [15:57:42]New connection [15:57:42]New thread 3067268452 created [15:57:42]Thread 3067125092 joined [15:57:42]Waiting for new connection... [15:57:42] Sock 8.Parse request [15:57:42]Sock 8.Check first char [15:57:42]accept exits with 9 [15:57:42]New connection [15:57:42]New thread 3067125092 created [15:57:42]Waiting for new connection... [15:57:42] Sock 9.Parse request [15:57:42]Sock 9.Check first char [15:57:42]Sock 8.First char is OK [15:57:42]request: GET /testengine HTTP/1.1 [15:57:42]Method: GET [15:57:42]URL: /testengine [15:57:42]Method is GET - find url and querystring [15:57:42]No ? found - this is static page request [15:57:42]url: /testengine [15:57:42]check /htdocs/testengine [15:57:42]file exist [15:57:42]serve_file /htdocs/testengine/index.html [15:57:42]read remaining request lines [15:57:42]Host: 172.17.39.68:8080 [15:57:42]Connection: keep-alive [15:57:42]Upgrade-Insecure-Requests: 1 [15:57:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:42]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 [15:57:42]Accept-Encoding: gzip, deflate [15:57:42]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:42] [15:57:42]open file /htdocs/testengine/index.html [15:57:42]send HTTP headers [15:57:42]send file content [15:57:42]Finished. Sent 1003 bytes [15:57:42]close file [15:57:42]Sock 8.Close socket [15:57:42]Sock 8.Thread stoped [15:57:42]Sock 9.First char is OK [15:57:42]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [15:57:42]Method: GET [15:57:42]URL: /testengine/css/app.915bc88f.css [15:57:42]Method is GET - find url and querystring [15:57:42]No ? found - this is static page request [15:57:42]url: /testengine/css/app.915bc88f.css [15:57:42]check /htdocs/testengine/css/app.915bc88f.css [15:57:42]accept exits with 10 [15:57:42]New connection [15:57:42]New thread 3066981732 created [15:57:42]Thread 3067268452 joined [15:57:42]Waiting for new connection... [15:57:42]accept exits with 8 [15:57:42]New connection [15:57:42]New thread 3067268452 created [15:57:42]Waiting for new connection... [15:57:42]accept exits with 11 [15:57:42]New connection [15:57:42]New thread 3066838372 created [15:57:42]Waiting for new connection... [15:57:42] Sock 11.Parse request [15:57:42]Sock 11.Check first char [15:57:42]Sock 11.First char is OK [15:57:42]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [15:57:42]Method: GET [15:57:42]URL: /testengine/js/chunk-vendors.8f546e50.js [15:57:42]Method is GET - find url and querystring [15:57:42]No ? found - this is static page request [15:57:42]url: /testengine/js/chunk-vendors.8f546e50.js [15:57:42]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [15:57:42] Sock 8.Parse request [15:57:42]Sock 8.Check first char [15:57:42]Sock 8.First char is OK [15:57:42] Sock 10.Parse request [15:57:42]Sock 10.Check first char [15:57:42]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [15:57:42]Sock 10.First char is OK [15:57:42]Method: GET [15:57:42]URL: /testengine/css/chunk-vendors.1a13a212.css [15:57:42]Method is GET - find url and querystring [15:57:42]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [15:57:42]No ? found - this is static page request [15:57:42]Method: GET [15:57:42]url: /testengine/css/chunk-vendors.1a13a212.css [15:57:42]URL: /testengine/js/app.a9c38288.js [15:57:42]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [15:57:42]Method is GET - find url and querystring [15:57:42]No ? found - this is static page request [15:57:42]url: /testengine/js/app.a9c38288.js [15:57:42]check /htdocs/testengine/js/app.a9c38288.js [15:57:42]file exist [15:57:42]serve_file /htdocs/testengine/css/app.915bc88f.css [15:57:42]read remaining request lines [15:57:42]Host: 172.17.39.68:8080 [15:57:42]Connection: keep-alive [15:57:42]file exist [15:57:42]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [15:57:42]read remaining request lines [15:57:42]Host: 172.17.39.68:8080 [15:57:42]Connection: keep-alive [15:57:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:42]Accept: text/css,*/*;q=0.1 [15:57:42]Accept: text/css,*/*;q=0.1 [15:57:42]Referer: http://172.17.39.68:8080/testengine [15:57:42]Accept-Encoding: gzip, deflate [15:57:42]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:42] [15:57:42]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [15:57:42]Referer: http://172.17.39.68:8080/testengine [15:57:42]send HTTP headers [15:57:42]Accept-Encoding: gzip, deflate [15:57:42]send file content [15:57:42]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:42] [15:57:42]open file /htdocs/testengine/css/app.915bc88f.css [15:57:42]send HTTP headers [15:57:42]file exist [15:57:42]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [15:57:42]read remaining request lines [15:57:42]Host: 172.17.39.68:8080 [15:57:42]Connection: keep-alive [15:57:42]Finished. Sent 140 bytes [15:57:42]close file [15:57:42]Sock 8.Close socket [15:57:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:42]Accept: */* [15:57:42]Sock 8.Thread stoped [15:57:42]Referer: http://172.17.39.68:8080/testengine [15:57:42]Accept-Encoding: gzip, deflate [15:57:42]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:42] [15:57:42]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [15:57:42]send HTTP headers [15:57:42]send file content [15:57:42]send file content [15:57:42]file exist [15:57:42]serve_file /htdocs/testengine/js/app.a9c38288.js [15:57:42]read remaining request lines [15:57:42]Host: 172.17.39.68:8080 [15:57:42]Connection: keep-alive [15:57:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:42]Accept: */* [15:57:42]Referer: http://172.17.39.68:8080/testengine [15:57:42]Accept-Encoding: gzip, deflate [15:57:42]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:42] [15:57:42]open file /htdocs/testengine/js/app.a9c38288.js [15:57:42]send HTTP headers [15:57:42]send file content [15:57:42]Finished. Sent 1227 bytes [15:57:42]close file [15:57:42]Sock 9.Close socket [15:57:42]Sock 9.Thread stoped [15:57:42]Finished. Sent 102400 bytes [15:57:42]close file [15:57:42]Sock 10.Close socket [15:57:42]Sock 10.Thread stoped [15:57:42]Finished. Sent 165537 bytes [15:57:42]close file [15:57:42]Sock 11.Close socket [15:57:42]Sock 11.Thread stoped [15:57:46]accept exits with 12 [15:57:46]New connection [15:57:46]New thread 3066695012 created [15:57:46]Thread 3066838372 joined [15:57:46]Thread 3067125092 joined [15:57:46]Thread 3067268452 joined [15:57:46]Thread 3066981732 joined [15:57:46]Waiting for new connection... [15:57:46] Sock 12.Parse request [15:57:46]Sock 12.Check first char [15:57:46]OFD Sender: No OFD packet to send [15:57:48]Sock 12.First char is OK [15:57:48]request: POST /json_proto HTTP/1.1 [15:57:48]Method: POST [15:57:48]URL: /json_proto [15:57:48]Method is POST - this is cgi request [15:57:48]url: /json_proto [15:57:48]query_string will be loaded in cgi processing [15:57:48]execute_cgi json_proto POST (null) [15:57:48]execute_cgi path=json_proto method=POST [15:57:48]POST find Content-Length [15:57:48]Host: 172.17.39.68:8080 [15:57:48]Connection: keep-alive [15:57:48]Content-Length: 105 [15:57:48]Accept: application/json, text/plain, */* [15:57:48]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:48]Content-Type: application/json [15:57:48]Origin: http://172.17.39.68:8080 [15:57:48]Referer: http://172.17.39.68:8080/testengine [15:57:48]Accept-Encoding: gzip, deflate [15:57:48]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:48] [15:57:48]POST finish read [15:57:48]Found Content-Length = 105 [15:57:48]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [15:57:48]execute_script... [15:57:48]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [15:57:48]POST & json_proto [15:57:48]process_json_proto [15:57:48]json parsed OK: [15:57:48]protocol is kg_v1.0 [15:57:48]action value=get_value [15:57:48]process_action get_value [15:57:48]cmd_get_value [15:57:48]process_action get_value done [15:57:48]requested_data is exist [15:57:48]produce_requested_data [15:57:48]requested_item config.timestamp is exist - process it [15:57:48]MH_GetDate [15:57:48]Write to MH i2c: F0 00 00 5A 00 49 [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: F0 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: F0 09 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: F0 09 00 5A 00 00 FD 46 95 66 EC 7F 94 66 F5 [15:57:48]produce_requested_data done [15:57:48]produce_requested_data return {"config.timestamp":"1721059069"} [15:57:48]process_action_free get_value [15:57:48]json_value_free [15:57:48]json_value_free done [15:57:48]process_json_proto returns [15:57:48]Send response to host [15:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1721059069"}}} [15:57:48]free response buf [15:57:48]execute_script done [15:57:48]execute_script returns [15:57:48]free content buf [15:57:48]Sock 12.Close socket [15:57:48]Sock 12.Thread stoped [15:57:49]accept exits with 8 [15:57:49]New connection [15:57:49]New thread 3067268452 created [15:57:49]Thread 3066695012 joined [15:57:49]Waiting for new connection... [15:57:49] Sock 8.Parse request [15:57:49]Sock 8.Check first char [15:57:49]Sock 8.First char is OK [15:57:49]request: POST /json_proto HTTP/1.1 [15:57:49]Method: POST [15:57:49]URL: /json_proto [15:57:49]Method is POST - this is cgi request [15:57:49]url: /json_proto [15:57:49]query_string will be loaded in cgi processing [15:57:49]execute_cgi json_proto POST (null) [15:57:49]execute_cgi path=json_proto method=POST [15:57:49]POST find Content-Length [15:57:49]Host: 172.17.39.68:8080 [15:57:49]Connection: keep-alive [15:57:49]Content-Length: 113 [15:57:49]Accept: application/json, text/plain, */* [15:57:49]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:57:49]Content-Type: application/json [15:57:49]Origin: http://172.17.39.68:8080 [15:57:49]Referer: http://172.17.39.68:8080/testengine [15:57:49]Accept-Encoding: gzip, deflate [15:57:49]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:57:49] [15:57:49]POST finish read [15:57:49]Found Content-Length = 113 [15:57:49]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1721059068"}}} [15:57:49]execute_script... [15:57:49]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1721059068"}}} [15:57:49]POST & json_proto [15:57:49]process_json_proto [15:57:49]json parsed OK: [15:57:49]protocol is kg_v1.0 [15:57:49]action value=set_value [15:57:49]process_action set_value [15:57:49]cmd_set_value [15:57:49]SetValue [15:57:49]group config [15:57:49]SetConfigValue timestamp=1721059068 [15:57:49]SettingCheckAndSetValue timestamp=1721059068 [15:57:49]store_timestamp [15:57:49]MH_GetDate [15:57:49]Write to MH i2c: F0 00 00 5B 00 4A [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 09 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 09 00 5B 00 00 FE 46 95 66 EC 7F 94 66 F7 [15:57:49]GetLastDocTimeStamp 1721059024 [15:57:49]cur date 1721059070 [15:57:49]tm 1721059068 [15:57:49]tm ok - set date [15:57:49]MH_SetDate [15:57:49]Write to MH i2c: F1 04 00 5C 00 FC 46 95 66 8D [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F1 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F1 01 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F1 01 00 5C 00 00 4D [15:57:48]SetValue res=0 [15:57:48]process_action set_value done [15:57:48]no requested_data - finishing processing [15:57:48]process_action_free set_value [15:57:48]json_value_free [15:57:48]json_value_free done [15:57:48]process_json_proto returns [15:57:48]Send response to host [15:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:57:48]free response buf [15:57:48]execute_script done [15:57:48]execute_script returns [15:57:48]free content buf [15:57:48]Sock 8.Close socket [15:57:48]Sock 8.Thread stoped [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:02]accept exits with 9 [15:58:02]New connection [15:58:02]New thread 3067125092 created [15:58:02]Thread 3067268452 joined [15:58:02]Waiting for new connection... [15:58:02] Sock 9.Parse request [15:58:02]Sock 9.Check first char [15:58:02]Sock 9.First char is OK [15:58:02]request: POST /json_proto HTTP/1.1 [15:58:02]Method: POST [15:58:02]URL: /json_proto [15:58:02]Method is POST - this is cgi request [15:58:02]url: /json_proto [15:58:02]query_string will be loaded in cgi processing [15:58:02]execute_cgi json_proto POST (null) [15:58:02]execute_cgi path=json_proto method=POST [15:58:02]POST find Content-Length [15:58:02]Host: 172.17.39.68:8080 [15:58:02]Connection: keep-alive [15:58:02]Content-Length: 359 [15:58:02]Accept: application/json, text/plain, */* [15:58:02]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:58:02]Content-Type: application/json [15:58:02]Origin: http://172.17.39.68:8080 [15:58:02]Referer: http://172.17.39.68:8080/testengine [15:58:02]Accept-Encoding: gzip, deflate [15:58:02]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:58:02] [15:58:02]POST finish read [15:58:02]Found Content-Length = 359 [15:58:02]post body = {"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [15:58:02]execute_script... [15:58:02]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [15:58:02]POST & json_proto [15:58:02]process_json_proto [15:58:02]json parsed OK: [15:58:02]protocol is kg_v1.0 [15:58:02]action value=x_report [15:58:02]process_action x_report [15:58:02]cmd_x_report [15:58:02]MH_GetDate [15:58:02]Write to MH i2c: F0 00 00 5D 00 4C [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 09 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 09 00 5D 00 00 0A 47 95 66 FC 46 95 66 DE [15:58:02]GetLastDocTimeStamp 1721059024 [15:58:02]current date 1721059082 [15:58:02]FM_GetShiftState [15:58:02]SAM_PROTO_GetShiftState [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 13 01 00 [15:58:02]Write to MH i2c: E2 08 00 5E 00 80 13 01 00 00 00 00 00 DB [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0E 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0E 00 5E 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CE [15:58:02]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_GetShiftState done [15:58:02]FM_GetShiftState done [15:58:02]KKMCreateXReportDocument [15:58:02]Load OK [15:58:02]Malloc new data [15:58:02]MH_GetDate [15:58:02]Write to MH i2c: F0 00 00 5F 00 4E [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 09 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: F0 09 00 5F 00 00 0A 47 95 66 FC 46 95 66 E0 [15:58:02]Malloc new data [15:58:02]Malloc new data [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 11 00 00 [15:58:02]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 60 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 35 [15:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_GetFieldsCounters [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 13 00 00 [15:58:02]Write to MH i2c: E2 08 00 61 00 80 13 00 00 00 00 00 00 DD [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 62 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 62 00 61 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:58:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_GetFieldsCounters done [15:58:02]Malloc new data [15:58:02]Malloc new data [15:58:02]Malloc new data [15:58:02]KKMCreateXReportDocument OK [15:58:02]KKMSetXReportData OK [15:58:02]KKMPrepareXReportFMData [15:58:02]SAM_PROTO_GetShiftData [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 13 02 00 [15:58:02]Write to MH i2c: E2 08 00 62 00 80 13 02 00 00 00 00 00 E0 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 62 00 00 AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 58 78 16 70 04 03 00 58 B4 0C 72 04 03 00 00 C4 09 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 DB 62 02 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 E2 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [15:58:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 58 78 16 70 04 03 00 58 B4 0C 72 04 03 00 00 C4 09 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 DB 62 02 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 E2 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:58:03]wFMCommunicate OK [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 17 00 00 [15:58:03]Write to MH i2c: E2 08 00 63 00 80 17 00 00 00 00 00 00 E3 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 63 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 05 [15:58:03]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 [15:58:03]wFMCommunicate OK [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 17 00 00 [15:58:03]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 FD 00 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 03 90 00 9B [15:58:03]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 [15:58:03]wFMCommunicate OK [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 17 00 00 [15:58:03]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 FD 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 FD 00 65 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 57 [15:58:04]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 [15:58:04]wFMCommunicate OK [15:58:04]wFMCommunicate request_size=4 [15:58:04]MH_SAM_APDU [15:58:04]CAPDU: 80 17 00 00 [15:58:04]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 CB 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 CB 00 66 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [15:58:04]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 [15:58:04]wFMCommunicate OK [15:58:04]SAM_PROTO_GetShiftData done [15:58:04]1194 (1194) - счетчики итогов смены [15:58:04] 1134 (4) - 70 - количество чеков со всеми признаками расчетов [15:58:04] 1129 (155) - счетчики операций «приход» [15:58:04] 1135 (4) - 70 - количество чеков по признаку расчетов [15:58:04] 1201 (3) - 14726.00 - общая итоговая сумма в чеках [15:58:04] 1136 (3) - 8326.00 - итоговая сумма в чеках наличными [15:58:04] 1138 (3) - 6400.00 - итоговая сумма в чеках безналичными [15:58:04] 1024 (122) - суммы налогов [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 0% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1006 (12) - суммы НДС [15:58:04] 1010 (1) - 12% - код ставки НДС [15:58:04] 1011 (3) - 1563.79 - сумма НДС по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (11) - суммы НСП [15:58:04] 1014 (1) - 1% - код ставки НСП [15:58:04] 1015 (2) - 130.26 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 2% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 3% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 5% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1130 (141) - счетчики операций «возврат прихода» [15:58:04] 1135 (4) - 0 - количество чеков по признаку расчетов [15:58:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:58:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:58:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:58:04] 1024 (117) - суммы налогов [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 0% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 12% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 2% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 3% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 5% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1131 (141) - счетчики операций «расход» [15:58:04] 1135 (4) - 0 - количество чеков по признаку расчетов [15:58:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:58:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:58:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:58:04] 1024 (117) - суммы налогов [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 0% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 12% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 2% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 3% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 5% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1132 (141) - счетчики операций «возврат расхода» [15:58:04] 1135 (4) - 0 - количество чеков по признаку расчетов [15:58:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:58:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:58:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:58:04] 1024 (117) - суммы налогов [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 0% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1006 (9) - суммы НДС [15:58:04] 1010 (1) - 12% - код ставки НДС [15:58:04] 1011 (0) - 0.00 - сумма НДС по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 2% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 3% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 5% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 0,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1007 (9) - суммы НСП [15:58:04] 1014 (1) - 1,50% - код ставки НСП [15:58:04] 1015 (0) - 0.00 - сумма НСП по ставке [15:58:04] 1133 (588) - - счетчики коррекции - не используются [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1194 (04AA) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1134 (046E) [15:58:04]Malloc new data [15:58:04]Processing tag 1129 (0469) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1135 (046F) [15:58:04]Malloc new data [15:58:04]Processing tag 1201 (04B1) [15:58:04]Malloc new data [15:58:04]Processing tag 1136 (0470) [15:58:04]Malloc new data [15:58:04]Processing tag 1138 (0472) [15:58:04]Malloc new data [15:58:04]Processing tag 1024 (0400) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1006 (03EE) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1010 (03F2) [15:58:04]Malloc new data [15:58:04]Processing tag 1011 (03F3) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1006 (03EE) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1010 (03F2) [15:58:04]Malloc new data [15:58:04]Processing tag 1011 (03F3) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]SetTLVBufToDocument err=0 [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1130 (046A) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1135 (046F) [15:58:04]Malloc new data [15:58:04]Processing tag 1201 (04B1) [15:58:04]Malloc new data [15:58:04]Processing tag 1136 (0470) [15:58:04]Malloc new data [15:58:04]Processing tag 1138 (0472) [15:58:04]Malloc new data [15:58:04]Processing tag 1024 (0400) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1006 (03EE) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1010 (03F2) [15:58:04]Malloc new data [15:58:04]Processing tag 1011 (03F3) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1006 (03EE) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1010 (03F2) [15:58:04]Malloc new data [15:58:04]Processing tag 1011 (03F3) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1007 (03EF) [15:58:04]Load OK [15:58:04]SetTLVBufToDocument [15:58:04]Processing tag 1014 (03F6) [15:58:04]Malloc new data [15:58:04]Processing tag 1015 (03F7) [15:58:04]Malloc new data [15:58:04]SetTLVBufToDocument err=0 [15:58:04]SetTLVBufToDocument err=0 [15:58:04]SetTLVBufToDocument err=0 [15:58:04]Processing tag 1131 (046B) [15:58:04]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1135 (046F) [15:58:05]Malloc new data [15:58:05]Processing tag 1201 (04B1) [15:58:05]Malloc new data [15:58:05]Processing tag 1136 (0470) [15:58:05]Malloc new data [15:58:05]Processing tag 1138 (0472) [15:58:05]Malloc new data [15:58:05]Processing tag 1024 (0400) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1006 (03EE) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1010 (03F2) [15:58:05]Malloc new data [15:58:05]Processing tag 1011 (03F3) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1006 (03EE) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1010 (03F2) [15:58:05]Malloc new data [15:58:05]Processing tag 1011 (03F3) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]SetTLVBufToDocument err=0 [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1132 (046C) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1135 (046F) [15:58:05]Malloc new data [15:58:05]Processing tag 1201 (04B1) [15:58:05]Malloc new data [15:58:05]Processing tag 1136 (0470) [15:58:05]Malloc new data [15:58:05]Processing tag 1138 (0472) [15:58:05]Malloc new data [15:58:05]Processing tag 1024 (0400) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1006 (03EE) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1010 (03F2) [15:58:05]Malloc new data [15:58:05]Processing tag 1011 (03F3) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1006 (03EE) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1010 (03F2) [15:58:05]Malloc new data [15:58:05]Processing tag 1011 (03F3) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1007 (03EF) [15:58:05]Load OK [15:58:05]SetTLVBufToDocument [15:58:05]Processing tag 1014 (03F6) [15:58:05]Malloc new data [15:58:05]Processing tag 1015 (03F7) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]SetTLVBufToDocument err=0 [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Processing tag 1133 (046D) [15:58:05]Malloc new data [15:58:05]SetTLVBufToDocument err=0 [15:58:05]SetTLVBufToDocument err=0 [15:58:05]Malloc new data [15:58:05]SAM_PROTO_GetFMData [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 13 03 00 [15:58:05]Write to MH i2c: E2 08 00 67 00 80 13 03 00 00 00 00 00 E6 [15:58:05]OFD Sender: No OFD packet to send [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 FD 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 FD 00 67 00 00 B7 04 85 04 B3 04 6E 04 04 00 A8 78 00 00 69 04 A0 00 6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 06 [15:58:05]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A8 78 00 00 69 04 A0 00 6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:58:05]wFMCommunicate OK [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 17 00 00 [15:58:05]Write to MH i2c: E2 08 00 68 00 80 17 00 00 00 00 00 00 E8 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 68 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 19 [15:58:06]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 17 00 00 [15:58:06]Write to MH i2c: E2 08 00 69 00 80 17 00 00 00 00 00 00 E9 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 69 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 8E [15:58:06]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 17 00 00 [15:58:06]Write to MH i2c: E2 08 00 6A 00 80 17 00 00 00 00 00 00 EA [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 FD 00 6A 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 5F [15:58:06]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 17 00 00 [15:58:06]Write to MH i2c: E2 08 00 6B 00 80 17 00 00 00 00 00 00 EB [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 D4 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 D4 00 6B 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:58:06]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:58:06]wFMCommunicate OK [15:58:06]SAM_PROTO_GetFMData done [15:58:06]FM_GetFMData:85 04 B3 04 6E 04 04 00 A8 78 00 00 69 04 A0 00 6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:58:07]oper:6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:58:07]total:CC CF F7 24 [15:58:07]Malloc new data [15:58:07]oper:6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 [15:58:07]total:C8 [15:58:07]Malloc new data [15:58:07]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 [15:58:07]total: [15:58:07]Malloc new data [15:58:07]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 [15:58:07]total: [15:58:07]Malloc new data [15:58:07]KKMPrepareXReportFMData err=0 [15:58:07] ООО Ромашка Добро пожаловать Х отчет ИНН: 02508201610067 Кассир: Сергей Смирнов 15.07.2024 15:58 Смена: 266 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим ** Здесь Вам всегда рады ** Всего чеков: 70 ИТОГИ ПРИХОД Чеков: 70 Общий итог: 14726.00 Итого наличными: 8326.00 Итого безнал.: 6400.00 НДС 0% : 0.00 НДС 12% : 1563.79 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 130.26 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 8326.00 НС Приход: 6202203.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965389 *** ЖДЕМ ВАС ОПЯТЬ *** [15:58:07]StoreToDocumentArchive [15:58:07]MH_GetDate [15:58:07]Write to MH i2c: F0 00 00 6C 00 5B [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: F0 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: F0 09 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: F0 09 00 6C 00 00 0F 47 95 66 FC 46 95 66 F2 [15:58:07]shift 266 fd 1721059087 [15:58:07]Create dir for shift 0266 [15:58:07]save to /storage/0266/doc_1721059087 [15:58:07]save last doc name /storage/0266/doc_1721059087 to /storage/kkm_last_doc_name [15:58:07]save OK [15:58:07]Clear old archive folders... [15:58:07]NVStorageSaveData kkm_last_timestamp [15:58:07]File name is /storage/kkm_last_timestamp [15:58:07]Write 4 bytes [15:58:07]NVStorageSaveData done [15:58:07]ExternCall_PrintAddStr [15:58:07]wPrintStart [15:58:07]Write to MH i2c: 01 00 00 6D 00 6D [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 6D 00 00 01 12 00 00 FF 0F 95 [15:58:07]MH_Cut [15:58:07]Write to MH i2c: D1 01 00 6E 00 01 40 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: D1 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: D1 01 00 [15:58:07]MH_I2C_Read... [15:58:07]*** Cut start [15:58:07]*** Partial cut [15:58:07]*** CUTSNS_PIN = 0 [15:58:07]Read from MH i2c: D1 01 00 6E 00 00 3F [15:58:07]Write to MH i2c: 01 00 00 6F 00 6F [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:08]*** Brake cut motor [15:58:09]Read from MH i2c: 01 [15:58:09]MH_I2C_Read... [15:58:09]*** Stop cut motor [15:58:09]*** FLAG_CUTTER_FAIL [15:58:09]*** Cut end [15:58:09]Read from MH i2c: 01 07 00 [15:58:09]MH_I2C_Read... [15:58:09]Read from MH i2c: 01 07 00 6F 00 00 01 12 00 00 FF 0F 97 [15:58:09]process_action_free x_report [15:58:09]json_value_free [15:58:09]json_value_free done [15:58:09]process_json_proto returns [15:58:09]Send response to host [15:58:09]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [15:58:09]free response buf [15:58:09]execute_script done [15:58:09]execute_script returns [15:58:09]free content buf [15:58:09]Sock 9.Close socket [15:58:09]Sock 9.Thread stoped [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:49]accept exits with 8 [15:58:49]New connection [15:58:49]New thread 3067268452 created [15:58:49]Thread 3067125092 joined [15:58:49]Waiting for new connection... [15:58:49] Sock 8.Parse request [15:58:49]Sock 8.Check first char [15:58:49]Sock 8.First char is OK [15:58:49]request: POST /json_proto HTTP/1.0 [15:58:49]Method: POST [15:58:49]URL: /json_proto [15:58:49]Method is POST - this is cgi request [15:58:49]url: /json_proto [15:58:49]query_string will be loaded in cgi processing [15:58:49]execute_cgi json_proto POST (null) [15:58:49]execute_cgi path=json_proto method=POST [15:58:49]POST find Content-Length [15:58:49]Host: 172.17.39.68:8080 [15:58:49]Content-Length: 215 [15:58:49]Content-Type: application/json [15:58:49] [15:58:49]POST finish read [15:58:49]Found Content-Length = 215 [15:58: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" ] } } [15:58:49]execute_script... [15:58: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" ] } } [15:58:49]POST & json_proto [15:58:49]process_json_proto [15:58:49]json parsed OK: [15:58:49]protocol is kg_v1.0 [15:58:49]action value=get_value [15:58:49]process_action get_value [15:58:49]cmd_get_value [15:58:49]process_action get_value done [15:58:49]requested_data is exist [15:58:49]produce_requested_data [15:58:49]requested_item kkm.sn is exist - process it [15:58:49]requested_item kkm.ver is exist - process it [15:58:49]requested_item fm.sn is exist - process it [15:58:49]wFMCommunicate request_size=4 [15:58:49]MH_SAM_APDU [15:58:49]CAPDU: 80 11 00 00 [15:58:49]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:49]Read from MH i2c: E2 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 17 00 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 45 [15:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:58:49]wFMCommunicate OK [15:58:49]requested_item fd.num is exist - process it [15:58:49]SAM_PROTO_GetFieldsCounters [15:58:49]wFMCommunicate request_size=4 [15:58:49]MH_SAM_APDU [15:58:49]CAPDU: 80 13 00 00 [15:58:49]Write to MH i2c: E2 08 00 71 00 80 13 00 00 00 00 00 00 ED [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:49]Read from MH i2c: E2 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 62 00 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 62 00 71 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:49]wFMCommunicate OK [15:58:49]SAM_PROTO_GetFieldsCounters done [15:58:49]requested_item shift.num is exist - process it [15:58:49]requested_item shift.opened is exist - process it [15:58:49]req_shift_opened [15:58:49]FM_GetShiftState [15:58:49]SAM_PROTO_GetShiftState [15:58:49]wFMCommunicate request_size=4 [15:58:49]MH_SAM_APDU [15:58:49]CAPDU: 80 13 01 00 [15:58:49]Write to MH i2c: E2 08 00 72 00 80 13 01 00 00 00 00 00 EF [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:49]Read from MH i2c: E2 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 0E 00 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 0E 00 72 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E2 [15:58:49]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:58:49]wFMCommunicate OK [15:58:49]SAM_PROTO_GetShiftState done [15:58:49]FM_GetShiftState done [15:58:49]req_shift_opened done [15:58:49]requested_item shift.open_date is exist - process it [15:58:49]req_shift_open_date [15:58:49]req_shift_open_date done [15:58:49]produce_requested_data done [15:58:49]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31629,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [15:58:49]process_action_free get_value [15:58:49]json_value_free [15:58:49]json_value_free done [15:58:49]process_json_proto returns [15:58:49]Send response to host [15:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31629,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [15:58:49]free response buf [15:58:49]execute_script done [15:58:49]execute_script returns [15:58:49]free content buf [15:58:49]Sock 8.Close socket [15:58:49]Sock 8.Thread stoped [15:58:49]accept exits with 9 [15:58:49]New connection [15:58:49]New thread 3067125092 created [15:58:49]Thread 3067268452 joined [15:58:49]Waiting for new connection... [15:58:49] Sock 9.Parse request [15:58:49]Sock 9.Check first char [15:58:49]Sock 9.First char is OK [15:58:49]request: POST /json_proto HTTP/1.0 [15:58:49]Method: POST [15:58:49]URL: /json_proto [15:58:49]Method is POST - this is cgi request [15:58:49]url: /json_proto [15:58:49]query_string will be loaded in cgi processing [15:58:49]execute_cgi json_proto POST (null) [15:58:49]execute_cgi path=json_proto method=POST [15:58:49]POST find Content-Length [15:58:49]Host: 172.17.39.68:8080 [15:58:49]Content-Length: 331 [15:58:49]Content-Type: application/json [15:58:49] [15:58:49]POST finish read [15:58:49]Found Content-Length = 331 [15:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:58:49]execute_script... [15:58: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" ] } } [15:58:49]POST & json_proto [15:58:49]process_json_proto [15:58:49]json parsed OK: [15:58:49]protocol is kg_v1.0 [15:58:49]action value=get_value [15:58:49]process_action get_value [15:58:49]cmd_get_value [15:58:49]process_action get_value done [15:58:49]requested_data is exist [15:58:49]produce_requested_data [15:58:49]requested_item fm.sale.total is exist - process it [15:58:49]SAM_PROTO_GetFMData [15:58:49]wFMCommunicate request_size=4 [15:58:49]MH_SAM_APDU [15:58:49]CAPDU: 80 13 03 00 [15:58:49]Write to MH i2c: E2 08 00 73 00 80 13 03 00 00 00 00 00 F2 [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:58:50]Read from MH i2c: E2 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 73 00 00 B7 04 85 04 B3 04 6E 04 04 00 A8 78 00 00 69 04 A0 00 6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 12 [15:58:50]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A8 78 00 00 69 04 A0 00 6F 04 04 00 A6 78 00 00 B1 04 04 00 CC CF F7 24 70 04 04 00 80 C2 18 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 73 F2 EC 03 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 AD B0 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:58:50]wFMCommunicate OK [15:58:50]wFMCommunicate request_size=4 [15:58:50]MH_SAM_APDU [15:58:50]CAPDU: 80 17 00 00 [15:58:50]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [15:58:50]Write i2c OK [15:58:50]MH_I2C_Read... [15:58:50]OFD Sender: No OFD packet to send [15:58:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:50]Read from MH i2c: E2 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 74 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 25 [15:58:50]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:58:50]wFMCommunicate OK [15:58:50]wFMCommunicate request_size=4 [15:58:50]MH_SAM_APDU [15:58:50]CAPDU: 80 17 00 00 [15:58:50]Write to MH i2c: E2 08 00 75 00 80 17 00 00 00 00 00 00 F5 [15:58:50]Write i2c OK [15:58:50]MH_I2C_Read... [15:58:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:50]Read from MH i2c: E2 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 [15:58:50]MH_I2C_Read... [15:58:50]Read from MH i2c: E2 FD 00 75 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 9A [15:58:50]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:58:50]wFMCommunicate OK [15:58:50]wFMCommunicate request_size=4 [15:58:50]MH_SAM_APDU [15:58:50]CAPDU: 80 17 00 00 [15:58:50]Write to MH i2c: E2 08 00 76 00 80 17 00 00 00 00 00 00 F6 [15:58:50]Write i2c OK [15:58:50]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 FD 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 FD 00 76 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 6B [15:58:51]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:58:51]wFMCommunicate OK [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 17 00 00 [15:58:51]Write to MH i2c: E2 08 00 77 00 80 17 00 00 00 00 00 00 F7 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 D4 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 D4 00 77 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [15:58:51]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:58:51]wFMCommunicate OK [15:58:51]SAM_PROTO_GetFMData done [15:58:51]requested_item fm.sale_refund.total is exist - process it [15:58:51]requested_item fm.buy.total is exist - process it [15:58:51]requested_item shift.sale.total is exist - process it [15:58:51]SAM_PROTO_GetShiftData [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 13 02 00 [15:58:51]Write to MH i2c: E2 08 00 78 00 80 13 02 00 00 00 00 00 F6 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 FD 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 FD 00 78 00 00 AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 58 78 16 70 04 03 00 58 B4 0C 72 04 03 00 00 C4 09 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 DB 62 02 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 E2 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 61 [15:58:51]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 58 78 16 70 04 03 00 58 B4 0C 72 04 03 00 00 C4 09 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 DB 62 02 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 E2 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:58:51]wFMCommunicate OK [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 17 00 00 [15:58:51]Write to MH i2c: E2 08 00 79 00 80 17 00 00 00 00 00 00 F9 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:58:52]Read from MH i2c: E2 [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: E2 FD 00 [15:58:52]MH_I2C_Read... [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]/dev/ttyS4 opened [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 23 [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:08]*** [00:00:08]Read from MH i2c: A0 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:08]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:08]*** Waiting for read because exit forced [00:00:08]*** 10 ms more... [00:00:08]*** MH1903S init start (LINUX_LIGHT) [00:00:08]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:08]*** Serial: 3139303353513838 540000000057257E (1903SQ88T) [00:00:08]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:08]*** step 0: 5000 (2650, 2350 REF) [00:00:08]*** step 1: 4835 (2500, 2335 REF) [00:00:08]*** step 2: 4676 (2440, 2236 REF) [00:00:08]*** step 3: 4523 (2280, 2243 REF) [00:00:08]*** step 4: 4376 (2160, 2216 REF) [00:00:08]*** step 5: 4235 (2050, 2185 REF) [00:00:08]*** step 6: 4098 (1950, 2148 REF) [00:00:08]*** step 7: 3967 (1870, 2097 REF) [00:00:08]*** step 8: 3840 (1828, 2012 REF) [00:00:08]*** step 9: 3719 (1728, 1991 REF) [00:00:08]*** step 10: 3601 (1675, 1926 REF) [00:00:08]*** step 11: 3488 (1635, 1853 REF) [00:00:08]*** step 12: 3379 (1595, 1784 REF) [00:00:08]*** step 13: 3275 (1565, 1710 REF) [00:00:08]*** step 14: 3174 (1543, 1631 REF) [00:00:08]*** step 15: 3077 (1523, 1554 REF) [00:00:08]*** step 16: 2983 (1503, 1480 REF) [00:00:08]*** step 17: 2893 (1486, 1407 REF) [00:00:08]*** step 18: 2806 (1466, 1340 REF) [00:00:08]*** step 19: 2723 (1426, 1297 REF) [00:00:08]*** step 20: 2642 (1406, 1236 REF) [00:00:08]*** step 21: 2565 (1384, 1181 REF) [00:00:08]*** step 22: 2490 (1364, 1126 REF) [00:00:08]*** step 23: 2418 (1344, 1074 REF) [00:00:08]*** step 24: 2349 (1322, 1027 REF) [00:00:08]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 85+1721059068=1721059153 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0xff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:09]*** Cutter blocked [00:00:09]*** Cut unblock start [00:00:09]*** Set cut motor for full cut [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 03 00 02 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]*** Cutter still blocked [00:00:10]*** Brake cut motor [00:00:12]*** Stop cut motor [00:00:13]*** Set cut motor for partial cut [00:00:15]*** Brake cut motor [00:00:15]Read from MH i2c: 00 [00:00:15]MH_I2C_Read... [00:00:15]*** Stop cut motor [00:00:15]Read from MH i2c: 00 29 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 24 [00:00:15]Are we in boot? [00:00:15]We are not in boot now [00:00:15]Write to MH i2c: 01 00 00 04 00 04 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: 01 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: 01 07 00 [00:00:15]MH_I2C_Read... [00:00:15]*** FLAG_PRN_PAP1 set [00:00:15]*** FLAG_CUTTER_SNS reset [00:00:15]Read from MH i2c: 01 07 00 04 00 00 01 12 00 00 FF 0F 2C [00:00:15]MH_Cut [00:00:15]Write to MH i2c: D1 01 00 05 00 01 D7 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: D1 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: D1 01 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: D1 01 00 05 00 00 D6 [00:00:15]Write to MH i2c: 01 00 00 06 00 06 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** Cut start [00:00:15]*** Partial cut [00:00:15]*** CUTSNS_PIN = 0 [00:00:16]*** Brake cut motor [00:00:17]Read from MH i2c: 01 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: 01 07 00 [00:00:17]MH_I2C_Read... [00:00:17]*** Stop cut motor [00:00:17]*** FLAG_CUTTER_FAIL [00:00:17]*** Cut end [00:00:17]Read from MH i2c: 01 07 00 06 00 00 01 12 00 00 FF 0F 2E [00:00:17]Model is 3 [00:00:17]MH firmware is 30620 [00:00:17]MH boot firmware is 3 [00:00:17]MH_SetPrinterDots 448 [00:00:17]HeadWidthInBytes 56 [00:00:17]maxmasksize 7 [00:00:17]Write to MH i2c: D6 06 00 07 00 41 00 40 00 FF FF 61 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D6 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D6 01 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D6 01 00 07 00 00 DD [00:00:17]Write to MH i2c: D5 00 00 08 00 DC [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D5 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D5 01 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D5 01 00 08 00 00 DD [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]LoadDictionaryFromArray [00:00:17]Load OK [00:00:17]ExternCall_SetCallbacks [00:00:17]NVStorageInit [00:00:17]MH_GetDate [00:00:17]Write to MH i2c: F0 00 00 09 00 F8 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 09 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 09 00 09 00 00 59 47 95 66 FC 46 95 66 D9 [15:59:21]Current date/time: 15.07.2024 15:59 [15:59:21]FM_Init [15:59:21]wFMConnect [15:59:21]MH_SAM_On [15:59:21]Write to MH i2c: E0 00 00 0A 00 E9 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_init finished! [15:59:21]*** atr: [15:59:21]*** 0F 3B D5 18 FF 81 91 FE [15:59:21]*** 1F C3 80 73 C8 21 10 0A [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]*** 00 00 00 00 00 00 00 00 [15:59:21]Read from MH i2c: E0 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E0 10 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E0 10 00 0A 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 08 [15:59:21]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:59:21]wFMCommunicate request_size=10 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:59:21]Write to MH i2c: E2 0D 00 0B 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B5 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]wFMCommunicate request_size=4 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 11 00 00 [15:59:21]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E1 [15:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:59:21]wFMCommunicate OK [15:59:21]Detected FM SN is 0000000000965389 [15:59:21]Stored FM SN is 0000000000965389 [15:59:21]wFMCommunicate request_size=9 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 16 00 00 04 BF 17 01 00 [15:59:21]Write to MH i2c: E2 0C 00 0D 00 80 16 00 00 04 00 BF 17 01 00 00 00 6B [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]FM PIN OK [15:59:21]wFMCommunicate request_size=8 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 14 04 00 03 02 00 01 [15:59:21]Write to MH i2c: E2 0B 00 0E 00 80 14 04 00 03 00 02 00 01 00 00 98 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 0E 00 00 90 00 82 [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]wFMCommunicate request_size=13 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:59:21]Write to MH i2c: E2 10 00 0F 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BD [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 0F 00 00 90 00 83 [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]wFMCommunicate request_size=4 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 11 00 00 [15:59:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [15:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:59:21]wFMCommunicate OK [15:59:21]DocumentArchiveInit [15:59:21]Start Httpd... [15:59:21]Httpd thread 3067395428 created [15:59:21]Write to MH i2c: 01 00 00 11 00 11 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 11 00 00 01 12 00 00 FF 0F 39 [15:59:21]MH Int Process started [15:59:21]Allocated Socket 7 [15:59:21]Bind OK [15:59:21]Listen OK [15:59:21]httpd running on port 8080 [15:59:21]Waiting for new connection... [15:59:21]OFD Sender: No OFD packet to send [15:59:23]accept exits with 8 [15:59:23]New connection [15:59:23]New thread 3067108708 created [15:59:23]Waiting for new connection... [15:59:23] Sock 8.Parse request [15:59:23]Sock 8.Check first char [15:59:23]Sock 8.First char is OK [15:59:23]request: POST /json_proto HTTP/1.1 [15:59:23]Method: POST [15:59:23]URL: /json_proto [15:59:23]Method is POST - this is cgi request [15:59:23]url: /json_proto [15:59:23]query_string will be loaded in cgi processing [15:59:23]execute_cgi json_proto POST (null) [15:59:23]execute_cgi path=json_proto method=POST [15:59:23]POST find Content-Length [15:59:23]Host: 172.17.39.68:8080 [15:59:23]Connection: keep-alive [15:59:23]Content-Length: 359 [15:59:23]Accept: application/json, text/plain, */* [15:59:23]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [15:59:23]Content-Type: application/json [15:59:23]Origin: http://172.17.39.68:8080 [15:59:23]Referer: http://172.17.39.68:8080/testengine [15:59:23]Accept-Encoding: gzip, deflate [15:59:23]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [15:59:23] [15:59:23]POST finish read [15:59:23]Found Content-Length = 359 [15:59:23]post body = {"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [15:59:23]execute_script... [15:59:23]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [15:59:23]POST & json_proto [15:59:23]process_json_proto [15:59:23]json parsed OK: [15:59:23]protocol is kg_v1.0 [15:59:23]action value=x_report [15:59:23]process_action x_report [15:59:23]cmd_x_report [15:59:23]MH_GetDate [15:59:23]Write to MH i2c: F0 00 00 12 00 01 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 09 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 09 00 12 00 00 5B 47 95 66 FC 46 95 66 E4 [15:59:23]GetLastDocTimeStamp 1721059082 [15:59:23]current date 1721059163 [15:59:23]FM_GetShiftState [15:59:23]SAM_PROTO_GetShiftState [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 13 01 00 [15:59:23]Write to MH i2c: E2 08 00 13 00 80 13 01 00 00 00 00 00 90 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 0E 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 0E 00 13 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 83 [15:59:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:59:23]wFMCommunicate OK [15:59:23]SAM_PROTO_GetShiftState done [15:59:23]FM_GetShiftState done [15:59:23]KKMCreateXReportDocument [15:59:23]Load OK [15:59:23]Malloc new data [15:59:23]MH_GetDate [15:59:23]Write to MH i2c: F0 00 00 14 00 03 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 09 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: F0 09 00 14 00 00 5B 47 95 66 FC 46 95 66 E6 [15:59:23]Malloc new data [15:59:23]Malloc new data [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 11 00 00 [15:59:23]Write to MH i2c: E2 08 00 15 00 80 11 00 00 00 00 00 00 8F [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 17 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 17 00 15 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EA [15:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:59:23]wFMCommunicate OK [15:59:23]SAM_PROTO_GetFieldsCounters [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 13 00 00 [15:59:23]Write to MH i2c: E2 08 00 16 00 80 13 00 00 00 00 00 00 92 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 62 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 62 00 16 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:23]wFMCommunicate OK [15:59:23]SAM_PROTO_GetFieldsCounters done [15:59:23]Malloc new data [15:59:23]Malloc new data [15:59:23]Malloc new data [15:59:23]KKMCreateXReportDocument OK [15:59:23]KKMSetXReportData OK [15:59:23]KKMPrepareXReportFMData [15:59:23]SAM_PROTO_GetShiftData [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 13 02 00 [15:59:23]Write to MH i2c: E2 08 00 17 00 80 13 02 00 00 00 00 00 95 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:59:24]Read from MH i2c: E2 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 17 00 00 AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 BC 0E 17 70 04 03 00 BC 4A 0D 72 04 03 00 00 C4 09 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 D3 72 02 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 37 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [15:59:24]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 BC 0E 17 70 04 03 00 BC 4A 0D 72 04 03 00 00 C4 09 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 D3 72 02 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 37 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:59:24]wFMCommunicate OK [15:59:24]wFMCommunicate request_size=4 [15:59:24]MH_SAM_APDU [15:59:24]CAPDU: 80 17 00 00 [15:59:24]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [15:59:24]Write i2c OK [15:59:24]MH_I2C_Read... [15:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:24]Read from MH i2c: E2 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 18 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BA [15:59:24]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 [15:59:24]wFMCommunicate OK [15:59:24]wFMCommunicate request_size=4 [15:59:24]MH_SAM_APDU [15:59:24]CAPDU: 80 17 00 00 [15:59:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:59:24]Write i2c OK [15:59:24]MH_I2C_Read... [15:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:24]Read from MH i2c: E2 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 19 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [15:59:24]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 [15:59:24]wFMCommunicate OK [15:59:24]wFMCommunicate request_size=4 [15:59:24]MH_SAM_APDU [15:59:24]CAPDU: 80 17 00 00 [15:59:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:59:24]Write i2c OK [15:59:24]MH_I2C_Read... [15:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:24]Read from MH i2c: E2 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 FD 00 1A 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0C [15:59:25]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 [15:59:25]wFMCommunicate OK [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 17 00 00 [15:59:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 CB 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 CB 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 84 [15:59:25]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 [15:59:25]wFMCommunicate OK [15:59:25]SAM_PROTO_GetShiftData done [15:59:25]1194 (1194) - счетчики итогов смены [15:59:25] 1134 (4) - 71 - количество чеков со всеми признаками расчетов [15:59:25] 1129 (155) - счетчики операций «приход» [15:59:25] 1135 (4) - 71 - количество чеков по признаку расчетов [15:59:25] 1201 (3) - 15111.00 - общая итоговая сумма в чеках [15:59:25] 1136 (3) - 8711.00 - итоговая сумма в чеках наличными [15:59:25] 1138 (3) - 6400.00 - итоговая сумма в чеках безналичными [15:59:25] 1024 (122) - суммы налогов [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 0% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1006 (12) - суммы НДС [15:59:25] 1010 (1) - 12% - код ставки НДС [15:59:25] 1011 (3) - 1604.67 - сумма НДС по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (11) - суммы НСП [15:59:25] 1014 (1) - 1% - код ставки НСП [15:59:25] 1015 (2) - 133.67 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 2% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 3% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 5% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1130 (141) - счетчики операций «возврат прихода» [15:59:25] 1135 (4) - 0 - количество чеков по признаку расчетов [15:59:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:59:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:59:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:59:25] 1024 (117) - суммы налогов [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 0% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 12% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 2% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 3% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 5% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1131 (141) - счетчики операций «расход» [15:59:25] 1135 (4) - 0 - количество чеков по признаку расчетов [15:59:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:59:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:59:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:59:25] 1024 (117) - суммы налогов [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 0% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 12% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 2% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 3% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 5% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1132 (141) - счетчики операций «возврат расхода» [15:59:25] 1135 (4) - 0 - количество чеков по признаку расчетов [15:59:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:59:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:59:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:59:25] 1024 (117) - суммы налогов [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 0% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1006 (9) - суммы НДС [15:59:25] 1010 (1) - 12% - код ставки НДС [15:59:25] 1011 (0) - 0.00 - сумма НДС по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 2% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 3% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 5% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 0,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1007 (9) - суммы НСП [15:59:25] 1014 (1) - 1,50% - код ставки НСП [15:59:25] 1015 (0) - 0.00 - сумма НСП по ставке [15:59:25] 1133 (588) - - счетчики коррекции - не используются [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1194 (04AA) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1134 (046E) [15:59:25]Malloc new data [15:59:25]Processing tag 1129 (0469) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1135 (046F) [15:59:25]Malloc new data [15:59:25]Processing tag 1201 (04B1) [15:59:25]Malloc new data [15:59:25]Processing tag 1136 (0470) [15:59:25]Malloc new data [15:59:25]Processing tag 1138 (0472) [15:59:25]Malloc new data [15:59:25]Processing tag 1024 (0400) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1010 (03F2) [15:59:25]Malloc new data [15:59:25]Processing tag 1011 (03F3) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1010 (03F2) [15:59:25]Malloc new data [15:59:25]Processing tag 1011 (03F3) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]SetTLVBufToDocument err=0 [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1130 (046A) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1135 (046F) [15:59:25]Malloc new data [15:59:25]Processing tag 1201 (04B1) [15:59:25]Malloc new data [15:59:25]Processing tag 1136 (0470) [15:59:25]Malloc new data [15:59:25]Processing tag 1138 (0472) [15:59:25]Malloc new data [15:59:25]Processing tag 1024 (0400) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1010 (03F2) [15:59:25]Malloc new data [15:59:25]Processing tag 1011 (03F3) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1010 (03F2) [15:59:25]Malloc new data [15:59:25]Processing tag 1011 (03F3) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1007 (03EF) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1014 (03F6) [15:59:25]Malloc new data [15:59:25]Processing tag 1015 (03F7) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]SetTLVBufToDocument err=0 [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1131 (046B) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1135 (046F) [15:59:25]Malloc new data [15:59:25]Processing tag 1201 (04B1) [15:59:25]Malloc new data [15:59:25]Processing tag 1136 (0470) [15:59:25]Malloc new data [15:59:25]Processing tag 1138 (0472) [15:59:25]Malloc new data [15:59:25]Processing tag 1024 (0400) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:25]Processing tag 1010 (03F2) [15:59:25]Malloc new data [15:59:25]Processing tag 1011 (03F3) [15:59:25]Malloc new data [15:59:25]SetTLVBufToDocument err=0 [15:59:25]Processing tag 1006 (03EE) [15:59:25]Load OK [15:59:25]SetTLVBufToDocument [15:59:26]Processing tag 1010 (03F2) [15:59:26]Malloc new data [15:59:26]Processing tag 1011 (03F3) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]SetTLVBufToDocument err=0 [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1132 (046C) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1135 (046F) [15:59:26]Malloc new data [15:59:26]Processing tag 1201 (04B1) [15:59:26]Malloc new data [15:59:26]Processing tag 1136 (0470) [15:59:26]Malloc new data [15:59:26]Processing tag 1138 (0472) [15:59:26]Malloc new data [15:59:26]Processing tag 1024 (0400) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1006 (03EE) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1010 (03F2) [15:59:26]Malloc new data [15:59:26]Processing tag 1011 (03F3) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1006 (03EE) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1010 (03F2) [15:59:26]Malloc new data [15:59:26]Processing tag 1011 (03F3) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1007 (03EF) [15:59:26]Load OK [15:59:26]SetTLVBufToDocument [15:59:26]Processing tag 1014 (03F6) [15:59:26]Malloc new data [15:59:26]Processing tag 1015 (03F7) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]SetTLVBufToDocument err=0 [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Processing tag 1133 (046D) [15:59:26]Malloc new data [15:59:26]SetTLVBufToDocument err=0 [15:59:26]SetTLVBufToDocument err=0 [15:59:26]Malloc new data [15:59:26]SAM_PROTO_GetFMData [15:59:26]wFMCommunicate request_size=4 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 13 03 00 [15:59:26]Write to MH i2c: E2 08 00 1C 00 80 13 03 00 00 00 00 00 9B [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]OFD Sender: No OFD packet to send [15:59:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:59:26]Read from MH i2c: E2 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 FD 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 FD 00 1C 00 00 B7 04 85 04 B3 04 6E 04 04 00 A9 78 00 00 69 04 A0 00 6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 14 [15:59:26]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A9 78 00 00 69 04 A0 00 6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:59:26]wFMCommunicate OK [15:59:26]wFMCommunicate request_size=4 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 17 00 00 [15:59:26]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 1D 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 CE [15:59:27]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:59:27]wFMCommunicate OK [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 17 00 00 [15:59:27]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 1E 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 43 [15:59:27]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:59:27]wFMCommunicate OK [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 17 00 00 [15:59:27]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 FD 00 1F 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 14 [15:59:27]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:59:27]wFMCommunicate OK [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 17 00 00 [15:59:27]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 D4 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 D4 00 20 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [15:59:28]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:59:28]wFMCommunicate OK [15:59:28]SAM_PROTO_GetFMData done [15:59:28]FM_GetFMData:85 04 B3 04 6E 04 04 00 A9 78 00 00 69 04 A0 00 6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:59:28]oper:6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:59:28]total:30 66 F8 24 [15:59:28]Malloc new data [15:59:28]oper:6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 [15:59:28]total:C8 [15:59:28]Malloc new data [15:59:28]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 [15:59:28]total: [15:59:28]Malloc new data [15:59:28]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 [15:59:28]total: [15:59:28]Malloc new data [15:59:28]KKMPrepareXReportFMData err=0 [15:59:28] ООО Ромашка Добро пожаловать Х отчет ИНН: 02508201610067 Кассир: Сергей Смирнов 15.07.2024 15:59 Смена: 266 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим ** Здесь Вам всегда рады ** Всего чеков: 71 ИТОГИ ПРИХОД Чеков: 71 Общий итог: 15111.00 Итого наличными: 8711.00 Итого безнал.: 6400.00 НДС 0% : 0.00 НДС 12% : 1604.67 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 133.67 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 8711.00 НС Приход: 6202588.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965389 *** ЖДЕМ ВАС ОПЯТЬ *** [15:59:28]StoreToDocumentArchive [15:59:28]MH_GetDate [15:59:28]Write to MH i2c: F0 00 00 21 00 10 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 09 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 09 00 21 00 00 60 47 95 66 FC 46 95 66 F8 [15:59:28]shift 266 fd 1721059168 [15:59:28]save to /storage/0266/doc_1721059168 [15:59:28]save last doc name /storage/0266/doc_1721059168 to /storage/kkm_last_doc_name [15:59:28]save OK [15:59:28]Clear old archive folders... [15:59:28]NVStorageSaveData kkm_last_timestamp [15:59:28]File name is /storage/kkm_last_timestamp [15:59:28]Write 4 bytes [15:59:28]NVStorageSaveData done [15:59:28]ExternCall_PrintAddStr [15:59:28]wPrintStart [15:59:28]Write to MH i2c: 01 00 00 22 00 22 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: 01 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: 01 07 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: 01 07 00 22 00 00 01 12 00 00 FF 0F 4A [15:59:28]MH_Cut [15:59:28]Write to MH i2c: D1 01 00 23 00 01 F5 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: D1 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: D1 01 00 [15:59:28]MH_I2C_Read... [15:59:28]*** Cut start [15:59:28]*** Partial cut [15:59:28]*** CUTSNS_PIN = 0 [15:59:28]Read from MH i2c: D1 01 00 23 00 00 F4 [15:59:28]Write to MH i2c: 01 00 00 24 00 24 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:30]*** Brake cut motor [15:59:30]Read from MH i2c: 01 [15:59:30]MH_I2C_Read... [15:59:30]*** Stop cut motor [15:59:30]*** FLAG_CUTTER_FAIL [15:59:30]*** Cut end [15:59:30]Read from MH i2c: 01 07 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 07 00 24 00 00 01 12 00 00 FF 0F 4C [15:59:30]process_action_free x_report [15:59:30]json_value_free [15:59:30]json_value_free done [15:59:30]process_json_proto returns [15:59:30]Send response to host [15:59:30]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [15:59:30]free response buf [15:59:30]execute_script done [15:59:30]execute_script returns [15:59:30]free content buf [15:59:30]Sock 8.Close socket [15:59:30]Sock 8.Thread stoped [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:52]accept exits with 6 [15:59:52]New connection [15:59:52]New thread 3066965348 created [15:59:52]Thread 3067108708 joined [15:59:52]Waiting for new connection... [15:59:52] Sock 6.Parse request [15:59:52]Sock 6.Check first char [15:59:52]Sock 6.First char is OK [15:59:52]request: POST /json_proto HTTP/1.0 [15:59:52]Method: POST [15:59:52]URL: /json_proto [15:59:52]Method is POST - this is cgi request [15:59:52]url: /json_proto [15:59:52]query_string will be loaded in cgi processing [15:59:52]execute_cgi json_proto POST (null) [15:59:52]execute_cgi path=json_proto method=POST [15:59:52]POST find Content-Length [15:59:52]Host: 172.17.39.68:8080 [15:59:52]Content-Length: 215 [15:59:52]Content-Type: application/json [15:59:52] [15:59:52]POST finish read [15:59:52]Found Content-Length = 215 [15:59:52]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" ] } } [15:59:52]execute_script... [15:59:52]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" ] } } [15:59:52]POST & json_proto [15:59:52]process_json_proto [15:59:52]json parsed OK: [15:59:52]protocol is kg_v1.0 [15:59:52]action value=get_value [15:59:52]process_action get_value [15:59:52]cmd_get_value [15:59:52]process_action get_value done [15:59:52]requested_data is exist [15:59:52]produce_requested_data [15:59:52]requested_item kkm.sn is exist - process it [15:59:52]requested_item kkm.ver is exist - process it [15:59:52]requested_item fm.sn is exist - process it [15:59:52]wFMCommunicate request_size=4 [15:59:52]MH_SAM_APDU [15:59:52]CAPDU: 80 11 00 00 [15:59:52]Write to MH i2c: E2 08 00 25 00 80 11 00 00 00 00 00 00 9F [15:59:52]Write i2c OK [15:59:52]MH_I2C_Read... [15:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:52]Read from MH i2c: E2 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 17 00 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 17 00 25 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FA [15:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:59:52]wFMCommunicate OK [15:59:52]requested_item fd.num is exist - process it [15:59:52]SAM_PROTO_GetFieldsCounters [15:59:52]wFMCommunicate request_size=4 [15:59:52]MH_SAM_APDU [15:59:52]CAPDU: 80 13 00 00 [15:59:52]Write to MH i2c: E2 08 00 26 00 80 13 00 00 00 00 00 00 A2 [15:59:52]Write i2c OK [15:59:52]MH_I2C_Read... [15:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:52]Read from MH i2c: E2 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 62 00 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 62 00 26 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:52]wFMCommunicate OK [15:59:52]SAM_PROTO_GetFieldsCounters done [15:59:52]requested_item shift.num is exist - process it [15:59:52]requested_item shift.opened is exist - process it [15:59:52]req_shift_opened [15:59:52]FM_GetShiftState [15:59:52]SAM_PROTO_GetShiftState [15:59:52]wFMCommunicate request_size=4 [15:59:52]MH_SAM_APDU [15:59:52]CAPDU: 80 13 01 00 [15:59:52]Write to MH i2c: E2 08 00 27 00 80 13 01 00 00 00 00 00 A4 [15:59:52]Write i2c OK [15:59:52]MH_I2C_Read... [15:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:52]Read from MH i2c: E2 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 0E 00 [15:59:52]MH_I2C_Read... [15:59:52]Read from MH i2c: E2 0E 00 27 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 97 [15:59:52]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:59:52]wFMCommunicate OK [15:59:52]SAM_PROTO_GetShiftState done [15:59:52]FM_GetShiftState done [15:59:52]req_shift_opened done [15:59:52]requested_item shift.open_date is exist - process it [15:59:52]req_shift_open_date [15:59:52]req_shift_open_date done [15:59:52]produce_requested_data done [15:59:52]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31630,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [15:59:52]process_action_free get_value [15:59:52]json_value_free [15:59:52]json_value_free done [15:59:52]process_json_proto returns [15:59:52]Send response to host [15:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31630,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [15:59:52]free response buf [15:59:52]execute_script done [15:59:52]execute_script returns [15:59:52]free content buf [15:59:52]Sock 6.Close socket [15:59:52]Sock 6.Thread stoped [15:59:52]accept exits with 9 [15:59:52]New connection [15:59:52]New thread 3067108708 created [15:59:52]Thread 3066965348 joined [15:59:52]Waiting for new connection... [15:59:52] Sock 9.Parse request [15:59:52]Sock 9.Check first char [15:59:52]Sock 9.First char is OK [15:59:52]request: POST /json_proto HTTP/1.0 [15:59:52]Method: POST [15:59:52]URL: /json_proto [15:59:52]Method is POST - this is cgi request [15:59:52]url: /json_proto [15:59:52]query_string will be loaded in cgi processing [15:59:52]execute_cgi json_proto POST (null) [15:59:52]execute_cgi path=json_proto method=POST [15:59:52]POST find Content-Length [15:59:52]Host: 172.17.39.68:8080 [15:59:52]Content-Length: 331 [15:59:52]Content-Type: application/json [15:59:52] [15:59:52]POST finish read [15:59:52]Found Content-Length = 331 [15:59:52]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" ] } } [15:59:52]execute_script... [15:59:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:59:53]POST & json_proto [15:59:53]process_json_proto [15:59:53]json parsed OK: [15:59:53]protocol is kg_v1.0 [15:59:53]action value=get_value [15:59:53]process_action get_value [15:59:53]cmd_get_value [15:59:53]process_action get_value done [15:59:53]requested_data is exist [15:59:53]produce_requested_data [15:59:53]requested_item fm.sale.total is exist - process it [15:59:53]SAM_PROTO_GetFMData [15:59:53]wFMCommunicate request_size=4 [15:59:53]MH_SAM_APDU [15:59:53]CAPDU: 80 13 03 00 [15:59:53]Write to MH i2c: E2 08 00 28 00 80 13 03 00 00 00 00 00 A7 [15:59:53]Write i2c OK [15:59:53]MH_I2C_Read... [15:59:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:59:53]Read from MH i2c: E2 [15:59:53]MH_I2C_Read... [15:59:53]Read from MH i2c: E2 FD 00 [15:59:53]MH_I2C_Read... [15:59:53]Read from MH i2c: E2 FD 00 28 00 00 B7 04 85 04 B3 04 6E 04 04 00 A9 78 00 00 69 04 A0 00 6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 20 [15:59:53]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 A9 78 00 00 69 04 A0 00 6F 04 04 00 A7 78 00 00 B1 04 04 00 30 66 F8 24 70 04 04 00 E4 58 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6B 02 ED 03 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 02 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [15:59:53]wFMCommunicate OK [15:59:53]wFMCommunicate request_size=4 [15:59:53]MH_SAM_APDU [15:59:53]CAPDU: 80 17 00 00 [15:59:53]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [15:59:53]Write i2c OK [15:59:53]MH_I2C_Read... [15:59:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:53]Read from MH i2c: E2 [15:59:53]MH_I2C_Read... [15:59:53]Read from MH i2c: E2 FD 00 [15:59:53]MH_I2C_Read... [15:59:53]Read from MH i2c: E2 FD 00 29 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 DA [15:59:53]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:59:53]wFMCommunicate OK [15:59:53]wFMCommunicate request_size=4 [15:59:53]MH_SAM_APDU [15:59:53]CAPDU: 80 17 00 00 [15:59:53]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [15:59:53]Write i2c OK [15:59:53]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 FD 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 FD 00 2A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 4F [15:59:54]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:59:54]wFMCommunicate OK [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 17 00 00 [15:59:54]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 FD 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 FD 00 2B 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 20 [15:59:54]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [15:59:54]wFMCommunicate OK [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 17 00 00 [15:59:54]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 D4 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 D4 00 2C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [15:59:54]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:59:54]wFMCommunicate OK [15:59:54]SAM_PROTO_GetFMData done [15:59:54]requested_item fm.sale_refund.total is exist - process it [15:59:54]requested_item fm.buy.total is exist - process it [15:59:54]requested_item shift.sale.total is exist - process it [15:59:54]SAM_PROTO_GetShiftData [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 13 02 00 [15:59:54]Write to MH i2c: E2 08 00 2D 00 80 13 02 00 00 00 00 00 AB [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 2D 00 00 AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 BC 0E 17 70 04 03 00 BC 4A 0D 72 04 03 00 00 C4 09 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 D3 72 02 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 37 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [15:59:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 BC 0E 17 70 04 03 00 BC 4A 0D 72 04 03 00 00 C4 09 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 D3 72 02 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 37 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 17 00 00 [15:59:55]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 2E 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D0 [15:59:55]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 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 17 00 00 [15:59:55]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 2F 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [15:59:55]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 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 17 00 00 [15:59:55]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 FD 00 30 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 22 [15:59:55]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 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 17 00 00 [15:59:55]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:59:56]Read from MH i2c: E2 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 CB 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 CB 00 31 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9A [15:59:56]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 [15:59:56]wFMCommunicate OK [15:59:56]SAM_PROTO_GetShiftData done [15:59:56]requested_item shift.sale.total_cash is exist - process it [15:59:56]requested_item shift.sale_refund.total is exist - process it [15:59:56]requested_item shift.sale_refund.total_cash is exist - process it [15:59:56]requested_item shift.buy.total is exist - process it [15:59:56]requested_item shift.buy.total_cash is exist - process it [15:59:56]produce_requested_data done [15:59:56]produce_requested_data return {"fm.sale.total":6202588.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":15111.00,"shift.sale.total_cash":8711.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} [15:59:56]process_action_free get_value [15:59:56]json_value_free [15:59:56]json_value_free done [15:59:56]process_json_proto returns [15:59:56]Send response to host [15:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6202588.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":15111.00,"shift.sale.total_cash":8711.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}}} [15:59:56]free response buf [15:59:56]execute_script done [15:59:56]execute_script returns [15:59:56]free content buf [15:59:56]Sock 9.Close socket [15:59:56]Sock 9.Thread stoped [15:59:56]OFD Sender: No OFD packet to send [15:59:57]accept exits with 6 [15:59:57]New connection [15:59:57]New thread 3066965348 created [15:59:57]Thread 3067108708 joined [15:59:57]Waiting for new connection... [15:59:57] Sock 6.Parse request [15:59:57]Sock 6.Check first char [15:59:57]Sock 6.First char is OK [15:59:57]request: POST /json_proto HTTP/1.0 [15:59:57]Method: POST [15:59:57]URL: /json_proto [15:59:57]Method is POST - this is cgi request [15:59:57]url: /json_proto [15:59:57]query_string will be loaded in cgi processing [15:59:57]execute_cgi json_proto POST (null) [15:59:57]execute_cgi path=json_proto method=POST [15:59:57]POST find Content-Length [15:59:57]Host: 172.17.39.68:8080 [15:59:57]Content-Length: 654 [15:59:57]Content-Type: application/json [15:59:57] [15:59:57]POST finish read [15:59:57]Found Content-Length = 654 [15:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214213", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [15:59:57]execute_script... [15:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214213", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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" ] } } [15:59:57]POST & json_proto [15:59:57]process_json_proto [15:59:57]json parsed OK: [15:59:57]protocol is kg_v1.0 [15:59:57]action value=close_receipt [15:59:57]process_action close_receipt [15:59:57]cmd_close_receipt [15:59:57]MH_GetDate [15:59:57]Write to MH i2c: F0 00 00 32 00 21 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 09 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 09 00 32 00 00 7D 47 95 66 FC 46 95 66 26 [15:59:57]GetLastDocTimeStamp 1721059163 [15:59:57]current date 1721059197 [15:59:57]FM_GetShiftState [15:59:57]SAM_PROTO_GetShiftState [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 13 01 00 [15:59:57]Write to MH i2c: E2 08 00 33 00 80 13 01 00 00 00 00 00 B0 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 33 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A3 [15:59:57]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [15:59:57]wFMCommunicate OK [15:59:57]SAM_PROTO_GetShiftState done [15:59:57]FM_GetShiftState done [15:59:57]opened in 1721001862 [15:59:57]opened+sec_in_day 1721088262 [15:59:57]quantity*price = 9500 [15:59:57]sum+1 = 9501 [15:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 72 15.07.2024 15:59 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31631 ФПД: 141163952656897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155958&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31631&fm=141163952656897&tin=02508201610067®Number=0000000000098025&sum=9500 0 [15:59:58]StoreToDocumentArchive [15:59:58]shift 370 fd 31631 [15:59:58]save to /storage/0370/doc_00031631 [15:59:58]save last doc name /storage/0370/doc_00031631 to /storage/kkm_last_doc_name [15:59:58]save OK [15:59:58]Clear old archive folders... [15:59:58]Remove dir /storage/0266 [15:59:58]opendir ok [15:59:58]file . [15:59:58]file .. [15:59:58]file doc_1721059087 [15:59:58]remove file /storage/0266/doc_1721059087 [15:59:58]file doc_1721059168 [15:59:58]remove file /storage/0266/doc_1721059168 [15:59:58]remove dir /storage/0266 [15:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:59:58]tlvbuf is 015AF280 [15:59:58]SAM_PROTO_ClearQueue [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 09 00 00 [15:59:58]Write to MH i2c: E2 08 00 40 00 80 09 00 00 00 00 00 00 B2 [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 03 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 03 00 40 00 00 90 00 B4 [15:59:58]RAPDU: 90 00 [15:59:58]wFMCommunicate OK [15:59:58]SAM_PROTO_ClearQueue done [15:59:58]KKMCreateOFDPacket [15:59:58]OFDProtocolAddRootSTLVToBuf [15:59:58]FM_MakeSignedData [15:59:58]FM_MakeSignedData [15:59:58]SAM_PROTO_SignData [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 0D 01 02 [15:59:58]Write to MH i2c: E2 08 00 41 00 80 0D 01 02 00 00 00 00 BA [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 03 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 03 00 41 00 00 90 00 B5 [15:59:58]RAPDU: 90 00 [15:59:58]wFMCommunicate OK [15:59:58]wFMCommunicate request_size=255 [15:59:58]MH_SAM_APDU [15:59:58]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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 48 00 00 00 F4 03 04 00 7E 47 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:59:59]Write to MH i2c: E2 02 01 42 00 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 48 00 00 00 F4 03 04 00 7E 47 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D5 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 42 00 00 90 00 B6 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=52 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8F 7B 00 00 35 04 06 00 80 63 4B 40 D2 01 [15:59:59]Write to MH i2c: E2 37 00 43 00 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8F 7B 00 00 35 04 06 00 80 63 4B 40 D2 01 00 00 D2 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 43 00 00 90 00 B7 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 03 02 [15:59:59]Write to MH i2c: E2 08 00 44 00 80 0D 03 02 00 00 00 00 BF [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0B 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0B 00 44 00 00 95 1F D4 EB 81 89 6E 8C 90 00 37 [15:59:59]RAPDU: 95 1F D4 EB 81 89 6E 8C 90 00 [15:59:59]wFMCommunicate OK [15:59:59]SAM_PROTO_SignData done [15:59:59]FM_MakeSignedData done [15:59:59]CreateOFDProtocolMessage [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 11 00 00 [15:59:59]Write to MH i2c: E2 08 00 45 00 80 11 00 00 00 00 00 00 BF [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 17 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 17 00 45 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1A [15:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:59:59]wFMCommunicate OK [15:59:59]CreateOFDProtocolMessage done [15:59:59]OFDSenderStorePacket 31631 [15:59:59]StoreOFDPacket docnum=31631 [15:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 86 22 31 01 F1 53 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 48 00 00 00 F4 03 04 00 7E 47 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8F 7B 00 00 35 04 06 00 80 63 4B 40 D2 01 95 1F D4 EB 81 89 6E 8C [15:59:59]CheckFolder [15:59:59]dirname=/storage/ofd_packets [15:59:59]CheckFolder done [15:59:59]ProducePacketName [15:59:59]name=ofd_packets/00031631 [15:59:59]NVStorageSaveData ofd_packets/00031631 [15:59:59]File name is /storage/ofd_packets/00031631 [15:59:59]Write 343 bytes [15:59:59]NVStorageSaveData done [15:59:59]OFDSenderStorePacket done [15:59:59]KKMCreateOFDPacket done [15:59:59]NVStorageSaveData kkm_last_timestamp [15:59:59]File name is /storage/kkm_last_timestamp [15:59:59]Write 4 bytes [15:59:59]NVStorageSaveData done [15:59:59]ExternCall_PrintAddStr [15:59:59]wPrintStart [15:59:59]Write to MH i2c: 01 00 00 46 00 46 [15:59:59]OFD Sender: Processing packet 31631 [packets to send 5, broken 4] [15:59:59]ProducePacketName [15:59:59]name=ofd_packets/00031631 [15:59:59]OFD Sender: To server: pG, [15:59:59]CommunicateWithHost lk.salyk.kg:30040 [15:59:59]ConnectInit lk.salyk.kg [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 07 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 07 00 46 00 00 01 12 00 00 FF 0F 6E [15:59:59]MH_Cut [15:59:59]Write to MH i2c: D1 01 00 47 00 01 19 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: D1 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: D1 01 00 [15:59:59]MH_I2C_Read... [15:59:59]*** Cut start [15:59:59]*** Partial cut [15:59:59]*** CUTSNS_PIN = 0 [15:59:59]Read from MH i2c: D1 01 00 47 00 00 18 [15:59:59]Write to MH i2c: 01 00 00 48 00 48 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]Connected sock=10 [15:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 86 22 31 01 F1 53 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 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 48 00 00 00 F4 03 04 00 7E 47 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8F 7B 00 00 35 04 06 00 80 63 4B 40 D2 01 95 1F D4 EB 81 89 6E 8C [16:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A0 52 47 00 5F F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 8F 7B 00 00 F4 03 04 00 8D F3 94 66 B6 04 01 00 00 82 4A F7 85 92 21 56 E6 [16:00:00]CommunicateWithHost err = 0 [16:00:00]CheckOFDResponse [16:00:00]1017 (14) - 77093643461234 [16:00:00]1041 (16) - 0000000000965389 [16:00:00]1040 (4) - 31631 [16:00:00]1012 (4) - 15.07.2024 10:01 [16:00:00]1206 (1) - 0 [16:00:00]OFD Sender: Remove packet 31631 [16:00:00]ProducePacketName [16:00:00]name=ofd_packets/00031631 [16:00:00]NVStorageDeleteData [16:00:00]OFD Sender: No OFD packet to send [16:00:01]*** Brake cut motor [16:00:01]Read from MH i2c: 01 [16:00:01]MH_I2C_Read... [16:00:01]*** Stop cut motor [16:00:01]*** FLAG_CUTTER_FAIL [16:00:01]*** Cut end [16:00:01]Read from MH i2c: 01 07 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: 01 07 00 48 00 00 01 12 00 00 FF 0F 70 [16:00:01]process_action_free close_receipt [16:00:01]json_value_free [16:00:01]json_value_free done [16:00:01]process_json_proto returns [16:00:01]Send response to host [16:00:01]{"protocol":"kg_v1.0","response":{"error":1047,"error_desc":"Cutter error"}} [16:00:01]free response buf [16:00:01]execute_script done [16:00:01]execute_script returns [16:00:01]free content buf [16:00:01]Sock 6.Close socket [16:00:01]Sock 6.Thread stoped [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 23 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 177+1721059068=1721059245 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:11]*** Is cutter blocked? [00:00:11]*** Cutter blocked [00:00:11]*** Cut unblock start [00:00:11]*** Set cut motor for full cut [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:12]*** Cutter still blocked [00:00:12]*** Brake cut motor [00:00:14]*** Stop cut motor [00:00:15]*** Set cut motor for partial cut [00:00:17]*** Brake cut motor [00:00:17]Read from MH i2c: 00 [00:00:17]MH_I2C_Read... [00:00:17]*** Stop cut motor [00:00:17]Read from MH i2c: 00 29 00 [00:00:17]MH_I2C_Read... [00:00:17]*** FLAG_PRN_PAP1 set [00:00:17]*** FLAG_CUTTER_SNS reset [00:00:17]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 24 [00:00:17]Are we in boot? [00:00:17]We are not in boot now [00:00:17]Write to MH i2c: 01 00 00 04 00 04 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: 01 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: 01 07 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: 01 07 00 04 00 00 01 12 00 00 FF 0F 2C [00:00:17]MH_Cut [00:00:17]Write to MH i2c: D1 01 00 05 00 01 D7 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D1 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D1 01 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: D1 01 00 05 00 00 D6 [00:00:17]Write to MH i2c: 01 00 00 06 00 06 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** Cut start [00:00:17]*** Partial cut [00:00:17]*** CUTSNS_PIN = 0 [00:00:18]*** Brake cut motor [00:00:19]Read from MH i2c: 01 [00:00:19]MH_I2C_Read... [00:00:19]*** Stop cut motor [00:00:19]*** FLAG_CUTTER_FAIL [00:00:19]*** Cut end [00:00:19]Read from MH i2c: 01 07 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: 01 07 00 06 00 00 01 12 00 00 FF 0F 2E [00:00:19]Model is 3 [00:00:19]MH firmware is 30620 [00:00:19]MH boot firmware is 3 [00:00:19]MH_SetPrinterDots 448 [00:00:19]HeadWidthInBytes 56 [00:00:19]maxmasksize 7 [00:00:19]Write to MH i2c: D6 06 00 07 00 41 00 40 00 FF FF 61 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D6 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D6 01 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D6 01 00 07 00 00 DD [00:00:19]Write to MH i2c: D5 00 00 08 00 DC [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D5 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D5 01 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: D5 01 00 08 00 00 DD [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]LoadDictionaryFromArray [00:00:19]Load OK [00:00:19]ExternCall_SetCallbacks [00:00:19]NVStorageInit [00:00:19]MH_GetDate [00:00:19]Write to MH i2c: F0 00 00 09 00 F8 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: F0 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: F0 09 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: F0 09 00 09 00 00 B5 47 95 66 FC 46 95 66 35 [16:00:53]Current date/time: 15.07.2024 16:00 [16:00:53]FM_Init [16:00:53]wFMConnect [16:00:53]MH_SAM_On [16:00:53]Write to MH i2c: E0 00 00 0A 00 E9 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_init finished! [16:00:53]*** atr: [16:00:53]*** 0F 3B D5 18 FF 81 91 FE [16:00:53]*** 1F C3 80 73 C8 21 10 0A [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]*** 00 00 00 00 00 00 00 00 [16:00:53]Read from MH i2c: E0 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E0 10 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E0 10 00 0A 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 08 [16:00:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:00:53]wFMCommunicate request_size=10 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:00:53]Write to MH i2c: E2 0D 00 0B 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B5 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 11 00 00 [16:00:53]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 17 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E1 [16:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:00:53]wFMCommunicate OK [16:00:53]Detected FM SN is 0000000000965389 [16:00:53]Stored FM SN is 0000000000965389 [16:00:53]wFMCommunicate request_size=9 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 16 00 00 04 BF 17 01 00 [16:00:53]Write to MH i2c: E2 0C 00 0D 00 80 16 00 00 04 00 BF 17 01 00 00 00 6B [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]FM PIN OK [16:00:53]wFMCommunicate request_size=8 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 14 04 00 03 02 00 01 [16:00:53]Write to MH i2c: E2 0B 00 0E 00 80 14 04 00 03 00 02 00 01 00 00 98 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 0E 00 00 90 00 82 [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]wFMCommunicate request_size=13 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:00:53]Write to MH i2c: E2 10 00 0F 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BD [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 0F 00 00 90 00 83 [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 11 00 00 [16:00:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 17 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [16:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:00:53]wFMCommunicate OK [16:00:53]DocumentArchiveInit [16:00:53]Start Httpd... [16:00:53]Httpd thread 3066973540 created [16:00:53]Write to MH i2c: 01 00 00 11 00 11 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: 01 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: 01 07 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: 01 07 00 11 00 00 01 12 00 00 FF 0F 39 [16:00:53]Allocated Socket 5 [16:00:53]Bind OK [16:00:53]Listen OK [16:00:53]httpd running on port 8080 [16:00:53]Waiting for new connection... [16:00:53]MH Int Process started [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:00]int [16:01:00]Write to MH i2c: 01 00 00 12 00 12 [16:01:00]*** FLAG_PRN_PAP1 reset [16:01:00]Write i2c OK [16:01:00]MH_I2C_Read... [16:01:00]Read from MH i2c: 01 [16:01:00]MH_I2C_Read... [16:01:00]Read from MH i2c: 01 07 00 [16:01:00]MH_I2C_Read... [16:01:00]Read from MH i2c: 01 07 00 12 00 00 00 12 00 00 FF 0F 39 [16:01:00]state=0 [16:01:00]Cutter fail [16:01:00]Cutter bad position [16:01:01]int [16:01:01]Write to MH i2c: 01 00 00 13 00 13 [16:01:01]*** FLAG_PRN_PAP1 set [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: 01 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: 01 07 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: 01 07 00 13 00 00 01 12 00 00 FF 0F 3B [16:01:01]state=0 [16:01:01]No paper [16:01:01]Cutter fail [16:01:01]Cutter bad position [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:13]int [16:02:13]Write to MH i2c: 01 00 00 14 00 14 [16:02:13]*** FLAG_PRN_PAP1 reset [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 14 00 00 00 12 00 00 FF 0F 3B [16:02:13]state=0 [16:02:13]Cutter fail [16:02:13]Cutter bad position [16:02:15]int [16:02:15]Write to MH i2c: 01 00 00 15 00 15 [16:02:15]*** FLAG_PRN_PAP1 set [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 07 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 07 00 15 00 00 01 12 00 00 FF 0F 3D [16:02:15]state=0 [16:02:15]No paper [16:02:15]Cutter fail [16:02:15]Cutter bad position [16:02:15]int [16:02:15]Write to MH i2c: 01 00 00 16 00 16 [16:02:15]*** FLAG_PRN_PAP2 set [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 07 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: 01 07 00 16 00 00 03 12 00 00 FF 0F 40 [16:02:15]state=0 [16:02:15]No paper [16:02:15]Cover opened [16:02:15]Cutter fail [16:02:15]Cutter bad position [16:02:18]OFD Sender: No OFD packet to send [16:02:19]int [16:02:19]Write to MH i2c: 01 00 00 17 00 17 [16:02:19]*** FLAG_PRN_PAP2 reset [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 17 00 00 01 12 00 00 FF 0F 3F [16:02:19]state=3 [16:02:19]No paper [16:02:19]Cutter fail [16:02:19]Cutter bad position [16:02:19]Cover closed [16:02:19]int [16:02:19]Write to MH i2c: 01 00 00 18 00 18 [16:02:19]*** FLAG_PRN_PAP1 reset [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 18 00 00 00 12 00 00 FF 0F 3F [16:02:19]state=0 [16:02:19]Cutter fail [16:02:19]Cutter bad position [16:02:21]int [16:02:21]Write to MH i2c: 01 00 00 19 00 19 [16:02:21]*** FLAG_PRN_PAP1 set [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 19 00 00 01 12 00 00 FF 0F 41 [16:02:21]state=0 [16:02:21]No paper [16:02:21]Cutter fail [16:02:21]Cutter bad position [16:02:21]int [16:02:21]Write to MH i2c: 01 00 00 1A 00 1A [16:02:21]*** FLAG_PRN_PAP2 set [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 1A 00 00 03 12 00 00 FF 0F 44 [16:02:21]state=0 [16:02:21]No paper [16:02:21]Cover opened [16:02:21]Cutter fail [16:02:21]Cutter bad position [16:02:23]OFD Sender: No OFD packet to send [16:02:26]Write to MH i2c: 01 00 00 1B 00 1B [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 1B 00 00 03 12 00 00 FF 0F 45 [16:02:26]state=3 [16:02:26]No paper [16:02:26]Cover opened [16:02:26]Cutter fail [16:02:26]Cutter bad position [16:02:26]int [16:02:26]Write to MH i2c: 01 00 00 1C 00 1C [16:02:26]*** FLAG_PRN_PAP2 reset [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 1C 00 00 01 12 00 00 FF 0F 44 [16:02:26]state=3 [16:02:26]No paper [16:02:26]Cutter fail [16:02:26]Cutter bad position [16:02:26]Cover closed [16:02:26]int [16:02:26]Write to MH i2c: 01 00 00 1D 00 1D [16:02:26]*** FLAG_PRN_PAP1 reset [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: 01 07 00 1D 00 00 00 12 00 00 FF 0F 44 [16:02:26]state=0 [16:02:26]Cutter fail [16:02:26]Cutter bad position [16:02:27]int [16:02:27]Write to MH i2c: 01 00 00 1E 00 1E [16:02:27]*** FLAG_PRN_PAP1 set [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 1E 00 00 01 12 00 00 FF 0F 46 [16:02:27]state=0 [16:02:27]No paper [16:02:27]Cutter fail [16:02:27]Cutter bad position [16:02:27]int [16:02:27]Write to MH i2c: 01 00 00 1F 00 1F [16:02:27]*** FLAG_PRN_PAP2 set [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 1F 00 00 03 12 00 00 FF 0F 49 [16:02:27]state=0 [16:02:27]No paper [16:02:27]Cover opened [16:02:27]Cutter fail [16:02:27]Cutter bad position [16:02:28]OFD Sender: No OFD packet to send [16:02:28]int [16:02:28]Write to MH i2c: 01 00 00 20 00 20 [16:02:28]*** FLAG_PRN_PAP2 reset [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 20 00 00 01 12 00 00 FF 0F 48 [16:02:28]state=3 [16:02:28]No paper [16:02:28]Cutter fail [16:02:28]Cutter bad position [16:02:28]Cover closed [16:02:28]int [16:02:28]Write to MH i2c: 01 00 00 21 00 21 [16:02:28]*** FLAG_PRN_PAP1 reset [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 21 00 00 00 12 00 00 FF 0F 48 [16:02:28]state=0 [16:02:28]Cutter fail [16:02:28]Cutter bad position [16:02:30]int [16:02:30]Write to MH i2c: 01 00 00 22 00 22 [16:02:30]*** FLAG_PRN_PAP1 set [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 22 00 00 01 12 00 00 FF 0F 4A [16:02:30]state=0 [16:02:30]No paper [16:02:30]Cutter fail [16:02:30]Cutter bad position [16:02:30]int [16:02:30]Write to MH i2c: 01 00 00 23 00 23 [16:02:30]*** FLAG_PRN_PAP2 set [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 23 00 00 03 12 00 00 FF 0F 4D [16:02:30]state=0 [16:02:30]No paper [16:02:30]Cover opened [16:02:30]Cutter fail [16:02:30]Cutter bad position [16:02:33]OFD Sender: No OFD packet to send [16:02:34]int [16:02:34]Write to MH i2c: 01 00 00 24 00 24 [16:02:34]*** FLAG_PRN_PAP2 reset [16:02:34]Write i2c OK [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 07 00 [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 07 00 24 00 00 01 12 00 00 FF 0F 4C [16:02:34]state=3 [16:02:34]No paper [16:02:34]Cutter fail [16:02:34]Cutter bad position [16:02:34]Cover closed [16:02:34]int [16:02:34]Write to MH i2c: 01 00 00 25 00 25 [16:02:34]*** FLAG_PRN_PAP1 reset [16:02:34]Write i2c OK [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 07 00 [16:02:34]MH_I2C_Read... [16:02:34]Read from MH i2c: 01 07 00 25 00 00 00 12 00 00 FF 0F 4C [16:02:34]state=0 [16:02:34]Cutter fail [16:02:34]Cutter bad position [16:02:38]OFD Sender: No OFD packet to send [16:02:39]accept exits with 6 [16:02:39]New connection [16:02:39]New thread 3066686820 created [16:02:39]Waiting for new connection... [16:02:39] Sock 6.Parse request [16:02:39]Sock 6.Check first char [16:02:39]Sock 6.First char is OK [16:02:39]request: POST /json_proto HTTP/1.0 [16:02:39]Method: POST [16:02:39]URL: /json_proto [16:02:39]Method is POST - this is cgi request [16:02:39]url: /json_proto [16:02:39]query_string will be loaded in cgi processing [16:02:39]execute_cgi json_proto POST (null) [16:02:39]execute_cgi path=json_proto method=POST [16:02:39]POST find Content-Length [16:02:39]Host: 172.17.39.68:8080 [16:02:39]Content-Length: 215 [16:02:39]Content-Type: application/json [16:02:39] [16:02:39]POST finish read [16:02:39]Found Content-Length = 215 [16:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:39]execute_script... [16:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:39]POST & json_proto [16:02:39]process_json_proto [16:02:39]json parsed OK: [16:02:39]protocol is kg_v1.0 [16:02:39]action value=get_value [16:02:39]process_action get_value [16:02:39]cmd_get_value [16:02:39]process_action get_value done [16:02:39]requested_data is exist [16:02:39]produce_requested_data [16:02:39]requested_item kkm.sn is exist - process it [16:02:39]requested_item kkm.ver is exist - process it [16:02:39]requested_item fm.sn is exist - process it [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 11 00 00 [16:02:39]Write to MH i2c: E2 08 00 26 00 80 11 00 00 00 00 00 00 A0 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:39]Read from MH i2c: E2 17 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 17 00 26 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FB [16:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:02:39]wFMCommunicate OK [16:02:39]requested_item fd.num is exist - process it [16:02:39]SAM_PROTO_GetFieldsCounters [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 13 00 00 [16:02:39]Write to MH i2c: E2 08 00 27 00 80 13 00 00 00 00 00 00 A3 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 62 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 62 00 27 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 8F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:39]wFMCommunicate OK [16:02:39]SAM_PROTO_GetFieldsCounters done [16:02:39]requested_item shift.num is exist - process it [16:02:39]requested_item shift.opened is exist - process it [16:02:39]req_shift_opened [16:02:39]FM_GetShiftState [16:02:39]SAM_PROTO_GetShiftState [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 13 01 00 [16:02:39]Write to MH i2c: E2 08 00 28 00 80 13 01 00 00 00 00 00 A5 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 0E 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 0E 00 28 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 98 [16:02:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:39]wFMCommunicate OK [16:02:39]SAM_PROTO_GetShiftState done [16:02:39]FM_GetShiftState done [16:02:39]req_shift_opened done [16:02:39]requested_item shift.open_date is exist - process it [16:02:39]req_shift_open_date [16:02:39]req_shift_open_date done [16:02:39]produce_requested_data done [16:02:39]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31631,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:02:39]process_action_free get_value [16:02:39]json_value_free [16:02:39]json_value_free done [16:02:39]process_json_proto returns [16:02:39]Send response to host [16:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31631,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:02:39]free response buf [16:02:39]execute_script done [16:02:39]execute_script returns [16:02:39]free content buf [16:02:39]Sock 6.Close socket [16:02:39]Sock 6.Thread stoped [16:02:39]accept exits with 9 [16:02:39]New connection [16:02:39]New thread 3066543460 created [16:02:39]Thread 3066686820 joined [16:02:39]Waiting for new connection... [16:02:39] Sock 9.Parse request [16:02:39]Sock 9.Check first char [16:02:39]Sock 9.First char is OK [16:02:39]request: POST /json_proto HTTP/1.0 [16:02:39]Method: POST [16:02:39]URL: /json_proto [16:02:39]Method is POST - this is cgi request [16:02:39]url: /json_proto [16:02:39]query_string will be loaded in cgi processing [16:02:39]execute_cgi json_proto POST (null) [16:02:39]execute_cgi path=json_proto method=POST [16:02:39]POST find Content-Length [16:02:39]Host: 172.17.39.68:8080 [16:02:39]Content-Length: 331 [16:02:39]Content-Type: application/json [16:02:39] [16:02:39]POST finish read [16:02:39]Found Content-Length = 331 [16:02:39]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" ] } } [16:02:39]execute_script... [16:02:39]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" ] } } [16:02:39]POST & json_proto [16:02:39]process_json_proto [16:02:39]json parsed OK: [16:02:39]protocol is kg_v1.0 [16:02:39]action value=get_value [16:02:39]process_action get_value [16:02:39]cmd_get_value [16:02:39]process_action get_value done [16:02:39]requested_data is exist [16:02:39]produce_requested_data [16:02:39]requested_item fm.sale.total is exist - process it [16:02:39]SAM_PROTO_GetFMData [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 13 03 00 [16:02:39]Write to MH i2c: E2 08 00 29 00 80 13 03 00 00 00 00 00 A8 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 29 00 00 B7 04 85 04 B3 04 6E 04 04 00 AA 78 00 00 69 04 A0 00 6F 04 04 00 A8 78 00 00 B1 04 04 00 4C 8B F8 24 70 04 04 00 00 7E 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 06 ED 03 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 56 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EF [16:02:40]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 AA 78 00 00 69 04 A0 00 6F 04 04 00 A8 78 00 00 B1 04 04 00 4C 8B F8 24 70 04 04 00 00 7E 19 22 72 04 04 00 4C 0D DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 06 ED 03 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 56 B2 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [16:02:40]wFMCommunicate OK [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 17 00 00 [16:02:40]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 2A 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 DB [16:02:40]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:02:40]wFMCommunicate OK [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 17 00 00 [16:02:40]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 2B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 50 [16:02:40]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:02:40]wFMCommunicate OK [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 17 00 00 [16:02:40]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 FD 00 2C 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 21 [16:02:40]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [16:02:40]wFMCommunicate OK [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 17 00 00 [16:02:40]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 D4 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 D4 00 2D 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [16:02:41]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:41]wFMCommunicate OK [16:02:41]SAM_PROTO_GetFMData done [16:02:41]requested_item fm.sale_refund.total is exist - process it [16:02:41]requested_item fm.buy.total is exist - process it [16:02:41]requested_item shift.sale.total is exist - process it [16:02:41]SAM_PROTO_GetShiftData [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 13 02 00 [16:02:41]Write to MH i2c: E2 08 00 2E 00 80 13 02 00 00 00 00 00 AC [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 FD 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 FD 00 2E 00 00 AE 04 AA 04 AA 04 6E 04 04 00 48 00 00 00 69 04 9B 00 6F 04 04 00 48 00 00 00 B1 04 03 00 D8 33 17 70 04 03 00 D8 6F 0D 72 04 03 00 00 C4 09 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 C4 76 02 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 8B 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [16:02:41]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 48 00 00 00 69 04 9B 00 6F 04 04 00 48 00 00 00 B1 04 03 00 D8 33 17 70 04 03 00 D8 6F 0D 72 04 03 00 00 C4 09 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 C4 76 02 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 8B 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:02:41]wFMCommunicate OK [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 17 00 00 [16:02:41]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 FD 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 FD 00 2F 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D1 [16:02:41]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 [16:02:41]wFMCommunicate OK [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 17 00 00 [16:02:41]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 FD 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 FD 00 30 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [16:02:42]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 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 17 00 00 [16:02:42]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 FD 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 FD 00 31 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 23 [16:02:42]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 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 17 00 00 [16:02:42]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 CB 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 CB 00 32 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9B [16:02:42]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 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetShiftData done [16:02:42]requested_item shift.sale.total_cash is exist - process it [16:02:42]requested_item shift.sale_refund.total is exist - process it [16:02:42]requested_item shift.sale_refund.total_cash is exist - process it [16:02:42]requested_item shift.buy.total is exist - process it [16:02:42]requested_item shift.buy.total_cash is exist - process it [16:02:42]produce_requested_data done [16:02:42]produce_requested_data return {"fm.sale.total":6202683.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":15206.00,"shift.sale.total_cash":8806.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} [16:02:42]process_action_free get_value [16:02:42]json_value_free [16:02:42]json_value_free done [16:02:42]process_json_proto returns [16:02:42]Send response to host [16:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6202683.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":15206.00,"shift.sale.total_cash":8806.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}}} [16:02:42]free response buf [16:02:42]execute_script done [16:02:42]execute_script returns [16:02:42]free content buf [16:02:42]Sock 9.Close socket [16:02:42]Sock 9.Thread stoped [16:02:43]OFD Sender: No OFD packet to send [16:02:44]accept exits with 6 [16:02:44]New connection [16:02:44]New thread 3066686820 created [16:02:44]Thread 3066543460 joined [16:02:44]Waiting for new connection... [16:02:44] Sock 6.Parse request [16:02:44]Sock 6.Check first char [16:02:44]Sock 6.First char is OK [16:02:44]request: POST /json_proto HTTP/1.0 [16:02:44]Method: POST [16:02:44]URL: /json_proto [16:02:44]Method is POST - this is cgi request [16:02:44]url: /json_proto [16:02:44]query_string will be loaded in cgi processing [16:02:44]execute_cgi json_proto POST (null) [16:02:44]execute_cgi path=json_proto method=POST [16:02:44]POST find Content-Length [16:02:44]Host: 172.17.39.68:8080 [16:02:44]Content-Length: 1846 [16:02:44]Content-Type: application/json [16:02:44] [16:02:44]POST finish read [16:02:44]Found Content-Length = 1846 [16:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214214", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:44]execute_script... [16:02: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)214214", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:44]POST & json_proto [16:02:44]process_json_proto [16:02:44]json parsed OK: [16:02:44]protocol is kg_v1.0 [16:02:44]action value=close_receipt [16:02:44]process_action close_receipt [16:02:44]cmd_close_receipt [16:02:44]MH_GetDate [16:02:44]Write to MH i2c: F0 00 00 33 00 22 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: F0 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: F0 09 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: F0 09 00 33 00 00 25 48 95 66 FC 46 95 66 D0 [16:02:44]GetLastDocTimeStamp 1721059198 [16:02:44]current date 1721059365 [16:02:44]FM_GetShiftState [16:02:44]SAM_PROTO_GetShiftState [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 13 01 00 [16:02:44]Write to MH i2c: E2 08 00 34 00 80 13 01 00 00 00 00 00 B1 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:44]Read from MH i2c: E2 0E 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 0E 00 34 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A4 [16:02:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:44]wFMCommunicate OK [16:02:44]SAM_PROTO_GetShiftState done [16:02:44]FM_GetShiftState done [16:02:44]opened in 1721001862 [16:02:44]opened+sec_in_day 1721088262 [16:02:44]quantity*price = 9500 [16:02:44]sum+1 = 9501 [16:02:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 348.00 НСП 1% : 3.08 НДС 12% : 36.95 Наличными: 348.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 73 15.07.2024 16:02 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31632 ФПД: 63012345176438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160245&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31632&fm=63012345176438&tin=02508201610067®Number=0000000000098025&sum=34800 0 [16:02:46]StoreToDocumentArchive [16:02:46]shift 370 fd 31632 [16:02:46]save to /storage/0370/doc_00031632 [16:02:46]save last doc name /storage/0370/doc_00031632 to /storage/kkm_last_doc_name [16:02:46]save OK [16:02:46]Clear old archive folders... [16:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=772 [16:02:46]tlvbuf is 015419F0 [16:02:46]SAM_PROTO_ClearQueue [16:02:46]wFMCommunicate request_size=4 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 09 00 00 [16:02:46]Write to MH i2c: E2 08 00 41 00 80 09 00 00 00 00 00 00 B3 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 41 00 00 90 00 B5 [16:02:46]RAPDU: 90 00 [16:02:46]wFMCommunicate OK [16:02:46]SAM_PROTO_ClearQueue done [16:02:46]KKMCreateOFDPacket [16:02:46]OFDProtocolAddRootSTLVToBuf [16:02:46]FM_MakeSignedData [16:02:46]FM_MakeSignedData [16:02:46]SAM_PROTO_SignData [16:02:46]wFMCommunicate request_size=4 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 0D 01 02 [16:02:46]Write to MH i2c: E2 08 00 42 00 80 0D 01 02 00 00 00 00 BB [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 42 00 00 90 00 B6 [16:02:46]RAPDU: 90 00 [16:02:46]wFMCommunicate OK [16:02:46]wFMCommunicate request_size=255 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 0D 02 02 FA 03 00 04 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 [16:02:46]Write to MH i2c: E2 02 01 43 00 80 0D 02 02 FA 00 03 00 04 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 00 00 68 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 43 00 00 90 00 B7 [16:02:46]RAPDU: 90 00 [16:02:46]wFMCommunicate OK [16:02:46]wFMCommunicate request_size=255 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 0D 02 02 FA 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 71 00 8A 04 [16:02:46]Write to MH i2c: E2 02 01 44 00 80 0D 02 02 FA 00 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 71 00 8A 04 00 00 0B [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 03 00 44 00 00 90 00 B8 [16:02:46]RAPDU: 90 00 [16:02:46]wFMCommunicate OK [16:02:46]wFMCommunicate request_size=255 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 0D 02 02 FA 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 25 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [16:02:46]Write to MH i2c: E2 02 01 45 00 80 0D 02 02 FA 00 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 25 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C6 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:47]Read from MH i2c: E2 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 03 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 03 00 45 00 00 90 00 B9 [16:02:47]RAPDU: 90 00 [16:02:47]wFMCommunicate OK [16:02:47]wFMCommunicate request_size=31 [16:02:47]MH_SAM_APDU [16:02:47]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 90 7B 00 00 35 04 06 00 39 4F 34 73 61 76 [16:02:47]Write to MH i2c: E2 22 00 46 00 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 90 7B 00 00 35 04 06 00 39 4F 34 73 61 76 00 00 04 [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 [16:02:47]MH_I2C_Read... [16:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:47]Read from MH i2c: E2 03 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 03 00 46 00 00 90 00 BA [16:02:47]RAPDU: 90 00 [16:02:47]wFMCommunicate OK [16:02:47]wFMCommunicate request_size=4 [16:02:47]MH_SAM_APDU [16:02:47]CAPDU: 80 0D 03 02 [16:02:47]Write to MH i2c: E2 08 00 47 00 80 0D 03 02 00 00 00 00 C2 [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:47]Read from MH i2c: E2 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 0B 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 0B 00 47 00 00 F8 AA F1 9A 83 34 5C D1 90 00 D4 [16:02:47]RAPDU: F8 AA F1 9A 83 34 5C D1 90 00 [16:02:47]wFMCommunicate OK [16:02:47]SAM_PROTO_SignData done [16:02:47]FM_MakeSignedData done [16:02:47]CreateOFDProtocolMessage [16:02:47]wFMCommunicate request_size=4 [16:02:47]MH_SAM_APDU [16:02:47]CAPDU: 80 11 00 00 [16:02:47]Write to MH i2c: E2 08 00 48 00 80 11 00 00 00 00 00 00 C2 [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 [16:02:47]MH_I2C_Read... [16:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:47]Read from MH i2c: E2 17 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: E2 17 00 48 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1D [16:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:02:47]wFMCommunicate OK [16:02:47]CreateOFDProtocolMessage done [16:02:47]OFDSenderStorePacket 31632 [16:02:47]StoreOFDPacket docnum=31632 [16:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 03 00 00 4A 8A 10 03 61 E1 5A 03 01 00 03 00 04 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 08 00 34 36 32 32 37 37 33 37 06 04 32 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 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 25 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 90 7B 00 00 35 04 06 00 39 4F 34 73 61 76 F8 AA F1 9A 83 34 5C D1 [16:02:47]CheckFolder [16:02:47]dirname=/storage/ofd_packets [16:02:47]CheckFolder done [16:02:47]ProducePacketName [16:02:47]name=ofd_packets/00031632 [16:02:47]NVStorageSaveData ofd_packets/00031632 [16:02:47]File name is /storage/ofd_packets/00031632 [16:02:47]Write 822 bytes [16:02:47]NVStorageSaveData done [16:02:47]OFDSenderStorePacket done [16:02:47]KKMCreateOFDPacket done [16:02:47]NVStorageSaveData kkm_last_timestamp [16:02:47]File name is /storage/kkm_last_timestamp [16:02:47]Write 4 bytes [16:02:47]NVStorageSaveData done [16:02:47]ExternCall_PrintAddStr [16:02:47]wPrintStart [16:02:47]Write to MH i2c: 01 00 00 49 00 49 [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: 01 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: 01 07 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: 01 07 00 49 00 00 00 12 00 00 FF 0F 70 [16:02:47]MH_Cut [16:02:47]Write to MH i2c: D1 01 00 4A 00 01 1C [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: D1 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: D1 01 00 [16:02:47]MH_I2C_Read... [16:02:47]Read from MH i2c: D1 01 00 4A 00 00 1B [16:02:47]Write to MH i2c: 01 00 00 4B 00 4B [16:02:47]*** Cut start [16:02:47]*** Partial cut [16:02:47]*** CUTSNS_PIN = 0 [16:02:47]Write i2c OK [16:02:47]MH_I2C_Read... [16:02:47]OFD Sender: Processing packet 31632 [packets to send 5, broken 4] [16:02:47]ProducePacketName [16:02:47]name=ofd_packets/00031632 [16:02:47]OFD Sender: To server: pG, [16:02:47]CommunicateWithHost lk.salyk.kg:30040 [16:02:47]ConnectInit lk.salyk.kg [16:02:47]Connected sock=10 [16:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 18 03 00 00 4A 8A 10 03 61 E1 5A 03 01 00 03 00 04 03 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 *** CUTSNS_PIN = 1 [16:02:47]70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 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 *** CUTSNS_PIN = 0 [16:02:47]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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 25 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 90 7B 00 00 35 04 06 00 39 4F 34 73 61 76 F8 AA F1 9A 83 34 5C D1 [16:02:48]*** Brake cut motor [16:02:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 42 58 47 00 FF E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 90 7B 00 00 F4 03 04 00 36 F4 94 66 B6 04 01 00 00 01 BA 4D A3 4C 4E 45 10 [16:02:48]CommunicateWithHost err = 0 [16:02:48]CheckOFDResponse [16:02:48]1017 (14) - 77093643461234 [16:02:48]1041 (16) - 0000000000965389 [16:02:48]1040 (4) - 31632 [16:02:48]1012 (4) - 15.07.2024 10:04 [16:02:48]1206 (1) - 0 [16:02:48]OFD Sender: Remove packet 31632 [16:02:48]ProducePacketName [16:02:48]name=ofd_packets/00031632 [16:02:48]NVStorageDeleteData [16:02:48]Read from MH i2c: 01 [16:02:48]MH_I2C_Read... [16:02:48]*** Stop cut motor [16:02:48]*** Cut end [16:02:48]Read from MH i2c: 01 07 00 [16:02:48]MH_I2C_Read... [16:02:48]Read from MH i2c: 01 07 00 4B 00 00 00 00 00 00 FF 0F 60 [16:02:48]RasterBufferAndPrint [16:02:48]line Счет N : (3)214214 [16:02:48]line ИНН: 02508201610067 [16:02:48]line Контрольно-Кассовый Чек [16:02:48]line ПРОДАЖА [16:02:48]line Товар: 4680021880490 [16:02:48]line Печ.сд.С каплями 200г/12 [16:02:48]line 1.000 * 95.00 [16:02:48]line = 95.00 [16:02:48]line НДС 12% НСП 1% [16:02:48]line > о реализуемом товаре [16:02:48]line Товар: 4870235681079 [16:02:48]line Grizzly волнистые Сладкий чили 55 гр [16:02:48]line 1.000 * 90.00 [16:02:48]line = 90.00 [16:02:48]line НДС 12% НСП 1% [16:02:48]line > о реализуемом товаре [16:02:48]line Товар: 5449000189356 [16:02:48]line Холодный чай Fuse манго ананас 1л [16:02:48]line 1.000 * 107.00 [16:02:48]line = 107.00 [16:02:48]line НДС 12% НСП 1% [16:02:48]line > о реализуемом товаре [16:02:48]line Товар: 46227737 [16:02:48]line Р/ж mentos pure fresh арбуз ролл 15,5г [16:02:48]line 1.000 * 49.00 [16:02:48]line = 49.00 [16:02:48]line НДС 12% НСП 1% [16:02:48]line > о реализуемом товаре [16:02:48]line Товар: 2000053020015 [16:02:48]line Бумажные стаканы 250мл 1шт [16:02:48]line 1.000 * 7.00 [16:02:48]line = 7.00 [16:02:48]line НДС 12% НСП 1% [16:02:48]line > о реализуемом товаре [16:02:48]line ИТОГО: 348.00 [16:02:48]line НСП 1% : 3.08 [16:02:48]line НДС 12% : 36.95 [16:02:48]line Наличными: 348.00 [16:02:48]line Безнал.: 0.00 [16:02:48]line Место: АЗС № 140 "Партнер Нефть" [16:02:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:02:48]line СНО: Общий режим [16:02:48]line Чек 73 15.07.2024 16:02 [16:02:48]line Смена: 370 ФФД: 1.0 [16:02:48]line ЗНМ: 0300000189 [16:02:48]line РНМ: 0000000000098025 [16:02:48]line Версия ККМ: 001 [16:02:48]line ФМ: 0000000000965389 [16:02:48]line ФД: 31632 [16:02:48]line ФПД: 63012345176438 [16:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160245&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31632&fm=63012345176438&tin=02508201610067®Number=0000000000098025&sum=34800 [16:02:48]line 0 [16:02:48]written 0, free lines is 4095 [16:02:48]OFD Sender: No OFD packet to send [16:02:49]Write to MH i2c: 01 00 00 8F 00 8F [16:02:49]Write i2c OK [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: 01 [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: 01 07 00 [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 52 0B F3 [16:02:49]RasterBufferAndPrint [16:02:49]line [16:02:49]line [16:02:49]line [16:02:49]line [16:02:49]line [16:02:49]written 0, free lines is 2911 [16:02:49]MH_Cut [16:02:49]Write to MH i2c: D1 01 00 96 00 01 68 [16:02:49]Write i2c OK [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: D1 [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: D1 01 00 [16:02:49]MH_I2C_Read... [16:02:49]Read from MH i2c: D1 01 00 96 00 00 67 [16:02:49]Write to MH i2c: 01 00 00 97 00 97 [16:02:49]Write i2c OK [16:02:49]MH_I2C_Read... [16:02:50]*** Cut start [16:02:50]*** Partial cut [16:02:50]*** CUTSNS_PIN = 1 [16:02:50]*** CUTSNS_PIN = 0 [16:02:50]*** Brake cut motor [16:02:50]Read from MH i2c: 01 [16:02:50]MH_I2C_Read... [16:02:50]*** Stop cut motor [16:02:50]*** Cut end [16:02:50]Read from MH i2c: 01 07 00 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [16:02:50]process_action close_receipt done [16:02:50]requested_data is exist [16:02:50]produce_requested_data [16:02:50]requested_item fm.sn is exist - process it [16:02:50]wFMCommunicate request_size=4 [16:02:50]MH_SAM_APDU [16:02:50]CAPDU: 80 11 00 00 [16:02:50]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [16:02:50]Write i2c OK [16:02:50]MH_I2C_Read... [16:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:50]Read from MH i2c: E2 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 17 00 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [16:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:02:50]wFMCommunicate OK [16:02:50]requested_item fd.num is exist - process it [16:02:50]SAM_PROTO_GetFieldsCounters [16:02:50]wFMCommunicate request_size=4 [16:02:50]MH_SAM_APDU [16:02:50]CAPDU: 80 13 00 00 [16:02:50]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [16:02:50]Write i2c OK [16:02:50]MH_I2C_Read... [16:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:50]Read from MH i2c: E2 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 62 00 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 90 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [16:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 90 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:51]wFMCommunicate OK [16:02:51]SAM_PROTO_GetFieldsCounters done [16:02:51]requested_item shift.num is exist - process it [16:02:51]requested_item shift.opened is exist - process it [16:02:51]req_shift_opened [16:02:51]FM_GetShiftState [16:02:51]SAM_PROTO_GetShiftState [16:02:51]wFMCommunicate request_size=4 [16:02:51]MH_SAM_APDU [16:02:51]CAPDU: 80 13 01 00 [16:02:51]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [16:02:51]Write i2c OK [16:02:51]MH_I2C_Read... [16:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:51]Read from MH i2c: E2 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: E2 0E 00 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0A [16:02:51]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:51]wFMCommunicate OK [16:02:51]SAM_PROTO_GetShiftState done [16:02:51]FM_GetShiftState done [16:02:51]req_shift_opened done [16:02:51]requested_item shift.open_date is exist - process it [16:02:51]req_shift_open_date [16:02:51]req_shift_open_date done [16:02:51]produce_requested_data done [16:02:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31632,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:02:51]process_action_free close_receipt [16:02:51]json_value_free [16:02:51]json_value_free done [16:02:51]process_json_proto returns [16:02:51]Send response to host [16:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31632,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:02:51]free response buf [16:02:51]execute_script done [16:02:51]execute_script returns [16:02:51]free content buf [16:02:51]Sock 6.Close socket [16:02:51]Sock 6.Thread stoped [16:02:53]accept exits with 9 [16:02:53]New connection [16:02:53]New thread 3066543460 created [16:02:53]Thread 3066686820 joined [16:02:53]Waiting for new connection... [16:02:53] Sock 9.Parse request [16:02:53]Sock 9.Check first char [16:02:53]Sock 9.First char is OK [16:02:53]request: POST /json_proto HTTP/1.0 [16:02:53]Method: POST [16:02:53]URL: /json_proto [16:02:53]Method is POST - this is cgi request [16:02:53]url: /json_proto [16:02:53]query_string will be loaded in cgi processing [16:02:53]execute_cgi json_proto POST (null) [16:02:53]execute_cgi path=json_proto method=POST [16:02:53]POST find Content-Length [16:02:53]Host: 172.17.39.68:8080 [16:02:53]Content-Length: 1510 [16:02:53]Content-Type: application/json [16:02:53] [16:02:53]POST finish read [16:02:53]Found Content-Length = 1510 [16:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214215", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 303.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:53]execute_script... [16:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214215", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 303.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:53]POST & json_proto [16:02:53]process_json_proto [16:02:53]json parsed OK: [16:02:53]protocol is kg_v1.0 [16:02:53]action value=close_receipt [16:02:53]process_action close_receipt [16:02:53]cmd_close_receipt [16:02:53]MH_GetDate [16:02:53]Write to MH i2c: F0 00 00 9B 00 8A [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 09 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 09 00 9B 00 00 2D 48 95 66 FC 46 95 66 40 [16:02:53]GetLastDocTimeStamp 1721059365 [16:02:53]current date 1721059373 [16:02:53]FM_GetShiftState [16:02:53]SAM_PROTO_GetShiftState [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 13 01 00 [16:02:53]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0E 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0C [16:02:53]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_GetShiftState done [16:02:53]FM_GetShiftState done [16:02:53]opened in 1721001862 [16:02:53]opened+sec_in_day 1721088262 [16:02:53]quantity*price = 10700 [16:02:53]sum+1 = 10701 [16:02:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740757 Чипсы Чипсоны сметана, лук 40г 1.000 * 41.00 = 41.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 303.00 НСП 1% : 2.68 НДС 12% : 32.17 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 74 15.07.2024 16:02 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31633 ФПД: 65793469341195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160253&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31633&fm=65793469341195&tin=02508201610067®Number=0000000000098025&sum=30300 0 [16:02:54]StoreToDocumentArchive [16:02:54]shift 370 fd 31633 [16:02:54]save to /storage/0370/doc_00031633 [16:02:54]save last doc name /storage/0370/doc_00031633 to /storage/kkm_last_doc_name [16:02:54]save OK [16:02:54]Clear old archive folders... [16:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=628 [16:02:54]tlvbuf is 0151AC70 [16:02:54]SAM_PROTO_ClearQueue [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 09 00 00 [16:02:54]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [16:02:54]RAPDU: 90 00 [16:02:54]wFMCommunicate OK [16:02:54]SAM_PROTO_ClearQueue done [16:02:54]KKMCreateOFDPacket [16:02:54]OFDProtocolAddRootSTLVToBuf [16:02:54]FM_MakeSignedData [16:02:54]FM_MakeSignedData [16:02:54]SAM_PROTO_SignData [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 0D 01 02 [16:02:54]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [16:02:54]RAPDU: 90 00 [16:02:54]wFMCommunicate OK [16:02:54]wFMCommunicate request_size=255 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 0D 02 02 FA 03 00 74 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 [16:02:54]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 74 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 00 00 81 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:55]Read from MH i2c: E2 03 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [16:02:55]RAPDU: 90 00 [16:02:55]wFMCommunicate OK [16:02:55]wFMCommunicate request_size=255 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 0D 02 02 FA 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 04 10 00 00 00 00 13 04 06 00 04 10 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 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 [16:02:55]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 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 04 10 00 00 00 00 13 04 06 00 04 10 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 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 00 00 2D [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [16:02:55]RAPDU: 90 00 [16:02:55]wFMCommunicate OK [16:02:55]wFMCommunicate request_size=137 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 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 2D 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 91 7B 00 00 35 04 06 00 3B D6 BC 5E 5E 0B [16:02:55]Write to MH i2c: E2 8C 00 AD 00 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 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 2D 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 91 7B 00 00 35 04 06 00 3B D6 BC 5E 5E 0B 00 00 9F [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [16:02:55]RAPDU: 90 00 [16:02:55]wFMCommunicate OK [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 0D 03 02 [16:02:55]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 0B 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 0B 00 AE 00 00 A1 F8 E4 43 17 23 ED 03 90 00 14 [16:02:55]RAPDU: A1 F8 E4 43 17 23 ED 03 90 00 [16:02:55]wFMCommunicate OK [16:02:55]SAM_PROTO_SignData done [16:02:55]FM_MakeSignedData done [16:02:55]CreateOFDProtocolMessage [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 11 00 00 [16:02:55]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 84 [16:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:02:55]wFMCommunicate OK [16:02:55]CreateOFDProtocolMessage done [16:02:55]OFDSenderStorePacket 31633 [16:02:55]StoreOFDPacket docnum=31633 [16:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 88 02 00 00 7C 82 80 02 EE 15 5A 03 01 00 03 00 74 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 04 10 00 00 00 00 13 04 06 00 04 10 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 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 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 2D 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 91 7B 00 00 35 04 06 00 3B D6 BC 5E 5E 0B A1 F8 E4 43 17 23 ED 03 [16:02:55]CheckFolder [16:02:55]dirname=/storage/ofd_packets [16:02:55]CheckFolder done [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00031633 [16:02:55]NVStorageSaveData ofd_packets/00031633 [16:02:55]File name is /storage/ofd_packets/00031633 [16:02:55]Write 678 bytes [16:02:55]NVStorageSaveData done [16:02:55]OFDSenderStorePacket done [16:02:55]KKMCreateOFDPacket done [16:02:55]NVStorageSaveData kkm_last_timestamp [16:02:55]File name is /storage/kkm_last_timestamp [16:02:55]Write 4 bytes [16:02:55]NVStorageSaveData done [16:02:55]ExternCall_PrintAddStr [16:02:55]wPrintStart [16:02:55]Write to MH i2c: 01 00 00 B0 00 B0 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [16:02:55]RasterBufferAndPrint [16:02:55]line Счет N : (3)214215 [16:02:56]line ИНН: 02508201610067 [16:02:56]line Контрольно-Кассовый Чек [16:02:56]line ПРОДАЖА [16:02:56]line Товар: 5449000189332 [16:02:56]line Холодный чай Fuse персик 1л [16:02:56]line 1.000 * 107.00 [16:02:56]line = 107.00 [16:02:56]line НДС 12% НСП 1% [16:02:56]line > о реализуемом товаре [16:02:56]line Товар: 42113270 [16:02:56]line Жев Orbit арбуз [16:02:56]line 1.000 * 45.00 [16:02:56]line = 45.00 [16:02:56]line НДС 12% НСП 1% [16:02:56]line > о реализуемом товаре [16:02:56]line Товар: 4607010740757 [16:02:56]line Чипсы Чипсоны сметана, лук 40г [16:02:56]line 1.000 * 41.00 [16:02:56]line = 41.00 [16:02:56]line НДС 12% НСП 1% [16:02:56]line > о реализуемом товаре [16:02:56]line Товар: 4870112002782 [16:02:56]line Печенье Ulker Biskrem какао-крем 180г [16:02:56]line 1.000 * 110.00 [16:02:56]line = 110.00 [16:02:56]line НДС 12% НСП 1% [16:02:56]line > о реализуемом товаре [16:02:56]line ИТОГО: 303.00 [16:02:56]line НСП 1% : 2.68 [16:02:56]line НДС 12% : 32.17 [16:02:56]line Наличными: 303.00 [16:02:56]line Безнал.: 0.00 [16:02:56]line Место: АЗС № 140 "Партнер Нефть" [16:02:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:02:56]line СНО: Общий режим [16:02:56]line Чек 74 15.07.2024 16:02 [16:02:56]line Смена: 370 ФФД: 1.0 [16:02:56]line ЗНМ: 0300000189 [16:02:56]line РНМ: 0000000000098025 [16:02:56]line Версия ККМ: 001 [16:02:56]line ФМ: 0000000000965389 [16:02:56]line ФД: 31633 [16:02:56]line ФПД: 65793469341195 [16:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160253&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31633&fm=65793469341195&tin=02508201610067®Number=0000000000098025&sum=30300 [16:02:56]line 0 [16:02:56]written 0, free lines is 4095 [16:02:56]OFD Sender: Processing packet 31633 [packets to send 5, broken 4] [16:02:56]ProducePacketName [16:02:56]name=ofd_packets/00031633 [16:02:56]OFD Sender: To server: pG, [16:02:56]CommunicateWithHost lk.salyk.kg:30040 [16:02:56]ConnectInit lk.salyk.kg [16:02:56]Connected sock=10 [16:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 88 02 00 00 7C 82 80 02 EE 15 5A 03 01 00 03 00 74 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 04 10 00 00 00 00 13 04 06 00 04 10 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 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 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 2D 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 91 7B 00 00 35 04 06 00 3B D6 BC 5E 5E 0B A1 F8 E4 43 17 23 ED 03 [16:02:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6C DA 47 00 E2 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 39 36 35 33 38 39 10 04 04 00 91 7B 00 00 F4 03 04 00 3E F4 94 66 B6 04 01 00 00 22 D3 53 40 8C A8 1B D2 [16:02:56]CommunicateWithHost err = 0 [16:02:56]CheckOFDResponse [16:02:56]1017 (14) - 77093643461234 [16:02:56]1041 (16) - 0000000000965389 [16:02:56]1040 (4) - 31633 [16:02:56]1012 (4) - 15.07.2024 10:04 [16:02:56]1206 (1) - 0 [16:02:56]OFD Sender: Remove packet 31633 [16:02:56]ProducePacketName [16:02:56]name=ofd_packets/00031633 [16:02:56]NVStorageDeleteData [16:02:56]Write to MH i2c: 01 00 00 EC 00 EC [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 07 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 2F 0C 2E [16:02:56]RasterBufferAndPrint [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]written 0, free lines is 3140 [16:02:56]MH_Cut [16:02:56]Write to MH i2c: D1 01 00 F3 00 01 C5 [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 01 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 01 00 F3 00 00 C4 [16:02:56]Write to MH i2c: 01 00 00 F4 00 F4 [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:57]OFD Sender: No OFD packet to send [16:02:57]*** Cut start [16:02:57]*** Partial cut [16:02:57]*** CUTSNS_PIN = 1 [16:02:57]*** CUTSNS_PIN = 0 [16:02:57]*** Brake cut motor [16:02:58]Read from MH i2c: 01 [16:02:58]MH_I2C_Read... [16:02:58]*** Stop cut motor [16:02:58]*** Cut end [16:02:58]Read from MH i2c: 01 07 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [16:02:58]process_action close_receipt done [16:02:58]requested_data is exist [16:02:58]produce_requested_data [16:02:58]requested_item fm.sn is exist - process it [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 11 00 00 [16:02:58]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 17 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CA [16:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:02:58]wFMCommunicate OK [16:02:58]requested_item fd.num is exist - process it [16:02:58]SAM_PROTO_GetFieldsCounters [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 13 00 00 [16:02:58]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 62 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 62 00 F6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 91 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [16:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 91 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:58]wFMCommunicate OK [16:02:58]SAM_PROTO_GetFieldsCounters done [16:02:58]requested_item shift.num is exist - process it [16:02:58]requested_item shift.opened is exist - process it [16:02:58]req_shift_opened [16:02:58]FM_GetShiftState [16:02:58]SAM_PROTO_GetShiftState [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 13 01 00 [16:02:58]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0E 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 67 [16:02:58]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:58]wFMCommunicate OK [16:02:58]SAM_PROTO_GetShiftState done [16:02:58]FM_GetShiftState done [16:02:58]req_shift_opened done [16:02:58]requested_item shift.open_date is exist - process it [16:02:58]req_shift_open_date [16:02:58]req_shift_open_date done [16:02:58]produce_requested_data done [16:02:58]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31633,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:02:58]process_action_free close_receipt [16:02:58]json_value_free [16:02:58]json_value_free done [16:02:58]process_json_proto returns [16:02:58]Send response to host [16:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31633,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:02:58]free response buf [16:02:58]execute_script done [16:02:58]execute_script returns [16:02:58]free content buf [16:02:58]Sock 9.Close socket [16:02:58]Sock 9.Thread stoped [16:02:59]accept exits with 6 [16:02:59]New connection [16:02:59]New thread 3066686820 created [16:02:59]Thread 3066543460 joined [16:02:59]Waiting for new connection... [16:02:59] Sock 6.Parse request [16:02:59]Sock 6.Check first char [16:02:59]Sock 6.First char is OK [16:02:59]request: POST /json_proto HTTP/1.0 [16:02:59]Method: POST [16:02:59]URL: /json_proto [16:02:59]Method is POST - this is cgi request [16:02:59]url: /json_proto [16:02:59]query_string will be loaded in cgi processing [16:02:59]execute_cgi json_proto POST (null) [16:02:59]execute_cgi path=json_proto method=POST [16:02:59]POST find Content-Length [16:02:59]Host: 172.17.39.68:8080 [16:02:59]Content-Length: 985 [16:02:59]Content-Type: application/json [16:02:59] [16:02:59]POST finish read [16:02:59]Found Content-Length = 985 [16:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214216", "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 }]} ,{ "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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:59]execute_script... [16:02: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)214216", "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 }]} ,{ "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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:59]POST & json_proto [16:02:59]process_json_proto [16:02:59]json parsed OK: [16:02:59]protocol is kg_v1.0 [16:02:59]action value=close_receipt [16:02:59]process_action close_receipt [16:02:59]cmd_close_receipt [16:02:59]MH_GetDate [16:02:59]Write to MH i2c: F0 00 00 F8 00 E7 [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: F0 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: F0 09 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: F0 09 00 F8 00 00 34 48 95 66 FC 46 95 66 A4 [16:02:59]GetLastDocTimeStamp 1721059373 [16:02:59]current date 1721059380 [16:02:59]FM_GetShiftState [16:02:59]SAM_PROTO_GetShiftState [16:02:59]wFMCommunicate request_size=4 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 13 01 00 [16:02:59]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 0E 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 69 [16:02:59]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:02:59]wFMCommunicate OK [16:02:59]SAM_PROTO_GetShiftState done [16:02:59]FM_GetShiftState done [16:02:59]opened in 1721001862 [16:02:59]opened+sec_in_day 1721088262 [16:02:59]quantity*price = 14000 [16:02:59]sum+1 = 14001 [16:02:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 75 15.07.2024 16:03 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31634 ФПД: 164887858556540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160300&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31634&fm=164887858556540&tin=02508201610067®Number=0000000000098025&sum=20000 0 [16:03:01]StoreToDocumentArchive [16:03:01]shift 370 fd 31634 [16:03:01]save to /storage/0370/doc_00031634 [16:03:01]save last doc name /storage/0370/doc_00031634 to /storage/kkm_last_doc_name [16:03:01]save OK [16:03:01]Clear old archive folders... [16:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=406 [16:03:01]tlvbuf is B6F14C10 [16:03:01]SAM_PROTO_ClearQueue [16:03:01]wFMCommunicate request_size=4 [16:03:01]MH_SAM_APDU [16:03:01]CAPDU: 80 09 00 00 [16:03:01]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [16:03:01]Write i2c OK [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:01]E2 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 03 00 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [16:03:01]RAPDU: 90 00 [16:03:01]wFMCommunicate OK [16:03:01]SAM_PROTO_ClearQueue done [16:03:01]KKMCreateOFDPacket [16:03:01]OFDProtocolAddRootSTLVToBuf [16:03:01]FM_MakeSignedData [16:03:01]FM_MakeSignedData [16:03:01]SAM_PROTO_SignData [16:03:01]wFMCommunicate request_size=4 [16:03:01]MH_SAM_APDU [16:03:01]CAPDU: 80 0D 01 02 [16:03:01]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [16:03:01]Write i2c OK [16:03:01]MH_I2C_Read... [16:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:02]Read from MH i2c: E2 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [16:03:02]RAPDU: 90 00 [16:03:02]wFMCommunicate OK [16:03:02]wFMCommunicate request_size=255 [16:03:02]MH_SAM_APDU [16:03:02]CAPDU: 80 0D 02 02 FA 03 00 96 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 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 20 [16:03:02]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 96 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 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 20 00 00 D4 [16:03:02]OFD Sender: No OFD packet to send [16:03:02]Write i2c OK [16:03:02]MH_I2C_Read... [16:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:02]Read from MH i2c: E2 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [16:03:02]RAPDU: 90 00 [16:03:02]wFMCommunicate OK [16:03:02]wFMCommunicate request_size=165 [16:03:02]MH_SAM_APDU [16:03:02]CAPDU: 80 0D 02 02 A0 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 4B 00 00 00 F4 03 04 00 34 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 92 7B 00 00 35 04 06 00 95 F6 F2 3C AE 7C [16:03:02]Write to MH i2c: E2 A8 00 09 01 80 0D 02 02 A0 00 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 4B 00 00 00 F4 03 04 00 34 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 92 7B 00 00 35 04 06 00 95 F6 F2 3C AE 7C 00 00 EE [16:03:02]Write i2c OK [16:03:02]MH_I2C_Read... [16:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:02]Read from MH i2c: E2 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [16:03:02]RAPDU: 90 00 [16:03:02]wFMCommunicate OK [16:03:02]wFMCommunicate request_size=4 [16:03:02]MH_SAM_APDU [16:03:02]CAPDU: 80 0D 03 02 [16:03:02]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [16:03:02]Write i2c OK [16:03:02]MH_I2C_Read... [16:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:02]Read from MH i2c: E2 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 0B 00 [16:03:02]MH_I2C_Read... [16:03:02]Read from MH i2c: E2 0B 00 0A 01 00 8B B1 CE 90 09 F9 DD 6E 90 00 6E [16:03:02]RAPDU: 8B B1 CE 90 09 F9 DD 6E 90 00 [16:03:02]wFMCommunicate OK [16:03:02]SAM_PROTO_SignData done [16:03:02]FM_MakeSignedData done [16:03:02]CreateOFDProtocolMessage [16:03:02]wFMCommunicate request_size=4 [16:03:02]MH_SAM_APDU [16:03:02]CAPDU: 80 11 00 00 [16:03:03]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:03]Read from MH i2c: E2 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: E2 17 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E1 [16:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:03:03]wFMCommunicate OK [16:03:03]CreateOFDProtocolMessage done [16:03:03]OFDSenderStorePacket 31634 [16:03:03]StoreOFDPacket docnum=31634 [16:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 7D 57 A2 01 B8 1C 5A 03 01 00 03 00 96 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 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 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 4B 00 00 00 F4 03 04 00 34 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 92 7B 00 00 35 04 06 00 95 F6 F2 3C AE 7C 8B B1 CE 90 09 F9 DD 6E [16:03:03]CheckFolder [16:03:03]dirname=/storage/ofd_packets [16:03:03]CheckFolder done [16:03:03]ProducePacketName [16:03:03]name=ofd_packets/00031634 [16:03:03]NVStorageSaveData ofd_packets/00031634 [16:03:03]File name is /storage/ofd_packets/00031634 [16:03:03]Write 456 bytes [16:03:03]NVStorageSaveData done [16:03:03]OFDSenderStorePacket done [16:03:03]KKMCreateOFDPacket done [16:03:03]NVStorageSaveData kkm_last_timestamp [16:03:03]File name is /storage/kkm_last_timestamp [16:03:03]OFD Sender: Processing packet 31634 [packets to send 5, broken 4] [16:03:03]Write 4 bytes [16:03:03]ProducePacketName [16:03:03]NVStorageSaveData done [16:03:03]name=ofd_packets/00031634 [16:03:03]ExternCall_PrintAddStr [16:03:03]OFD Sender: To server: pG, [16:03:03]wPrintStart [16:03:03]CommunicateWithHost lk.salyk.kg:30040 [16:03:03]Write to MH i2c: ConnectInit lk.salyk.kg [16:03:03]01 00 00 0C 01 0D [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 07 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [16:03:03]RasterBufferAndPrint [16:03:03]line Счет N : (3)214216 [16:03:03]line ИНН: 02508201610067 [16:03:03]line Контрольно-Кассовый Чек [16:03:03]line ПРОДАЖА [16:03:03]line Товар: 4700002082931 [16:03:03]line Водка Хорошая 0,1л [16:03:03]line 2.000 * 70.00 [16:03:03]line = 140.00 [16:03:03]line НДС 12% НСП 1% [16:03:03]line > о реализуемом товаре [16:03:03]line Товар: 4700000160792 [16:03:03]line Снек Курут классический (круглый) [16:03:03]line 1.000 * 60.00 [16:03:03]line = 60.00 [16:03:03]line НДС 12% НСП 1% [16:03:03]line > о реализуемом товаре [16:03:03]line ИТОГО: 200.00 [16:03:03]line НСП 1% : 1.77 [16:03:03]line НДС 12% : 21.24 [16:03:03]line Наличными: 200.00 [16:03:03]line Безнал.: 0.00 [16:03:03]line Место: АЗС № 140 "Партнер Нефть" [16:03:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:03:03]line СНО: Общий режим [16:03:03]line Чек 75 15.07.2024 16:03 [16:03:03]line Смена: 370 ФФД: 1.0 [16:03:03]line ЗНМ: 0300000189 [16:03:03]line РНМ: 0000000000098025 [16:03:03]line Версия ККМ: 001 [16:03:03]line ФМ: 0000000000965389 [16:03:03]line ФД: 31634 [16:03:03]line ФПД: 164887858556540 [16:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160300&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31634&fm=164887858556540&tin=02508201610067®Number=0000000000098025&sum=20000 [16:03:03]line 0 [16:03:03]written 0, free lines is 4095 [16:03:03]Connected sock=11 [16:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 7D 57 A2 01 B8 1C 5A 03 01 00 03 00 96 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 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 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 4B 00 00 00 F4 03 04 00 34 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 92 7B 00 00 35 04 06 00 95 F6 F2 3C AE 7C 8B B1 CE 90 09 F9 DD 6E [16:03:03]Write to MH i2c: 01 00 00 3B 01 3C [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 07 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 BE 0C 0D [16:03:03]RasterBufferAndPrint [16:03:03]line [16:03:03]line [16:03:03]line [16:03:03]line [16:03:03]line [16:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DD 97 47 00 4B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 92 7B 00 00 F4 03 04 00 45 F4 94 66 B6 04 01 00 00 8E E9 75 BC 63 DF 31 A9 [16:03:03]CommunicateWithHost err = 0 [16:03:03]CheckOFDResponse [16:03:03]1017 (14) - 77093643461234 [16:03:03]1041 (16) - 0000000000965389 [16:03:03]1040 (4) - 31634 [16:03:03]1012 (4) - 15.07.2024 10:04 [16:03:03]1206 (1) - 0 [16:03:03]OFD Sender: Remove packet 31634 [16:03:03]ProducePacketName [16:03:03]name=ofd_packets/00031634 [16:03:03]NVStorageDeleteData [16:03:03]written 0, free lines is 3293 [16:03:03]MH_Cut [16:03:03]Write to MH i2c: D1 01 00 42 01 01 15 [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: D1 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: D1 01 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: D1 01 00 42 01 00 14 [16:03:03]Write to MH i2c: 01 00 00 43 01 44 [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:04]OFD Sender: No OFD packet to send [16:03:04]*** Cut start [16:03:04]*** Partial cut [16:03:04]*** CUTSNS_PIN = 1 [16:03:04]*** CUTSNS_PIN = 0 [16:03:04]*** Brake cut motor [16:03:05]Read from MH i2c: 01 [16:03:05]MH_I2C_Read... [16:03:05]*** Stop cut motor [16:03:05]*** Cut end [16:03:05]Read from MH i2c: 01 07 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [16:03:05]process_action close_receipt done [16:03:05]requested_data is exist [16:03:05]produce_requested_data [16:03:05]requested_item fm.sn is exist - process it [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 11 00 00 [16:03:05]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 17 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1A [16:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:03:05]wFMCommunicate OK [16:03:05]requested_item fd.num is exist - process it [16:03:05]SAM_PROTO_GetFieldsCounters [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 13 00 00 [16:03:05]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 62 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 92 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 92 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:05]wFMCommunicate OK [16:03:05]SAM_PROTO_GetFieldsCounters done [16:03:05]requested_item shift.num is exist - process it [16:03:05]requested_item shift.opened is exist - process it [16:03:05]req_shift_opened [16:03:05]FM_GetShiftState [16:03:05]SAM_PROTO_GetShiftState [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 13 01 00 [16:03:05]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 0E 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B7 [16:03:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:03:05]wFMCommunicate OK [16:03:05]SAM_PROTO_GetShiftState done [16:03:05]FM_GetShiftState done [16:03:05]req_shift_opened done [16:03:05]requested_item shift.open_date is exist - process it [16:03:05]req_shift_open_date [16:03:05]req_shift_open_date done [16:03:05]produce_requested_data done [16:03:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31634,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:03:05]process_action_free close_receipt [16:03:05]json_value_free [16:03:05]json_value_free done [16:03:05]process_json_proto returns [16:03:05]Send response to host [16:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31634,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:03:05]free response buf [16:03:05]execute_script done [16:03:05]execute_script returns [16:03:05]free content buf [16:03:05]Sock 6.Close socket [16:03:05]Sock 6.Thread stoped [16:03:06]accept exits with 9 [16:03:06]New connection [16:03:06]New thread 3066543460 created [16:03:06]Thread 3066686820 joined [16:03:06]Waiting for new connection... [16:03:06] Sock 9.Parse request [16:03:06]Sock 9.Check first char [16:03:06]Sock 9.First char is OK [16:03:06]request: POST /json_proto HTTP/1.0 [16:03:06]Method: POST [16:03:06]URL: /json_proto [16:03:06]Method is POST - this is cgi request [16:03:06]url: /json_proto [16:03:06]query_string will be loaded in cgi processing [16:03:06]execute_cgi json_proto POST (null) [16:03:06]execute_cgi path=json_proto method=POST [16:03:06]POST find Content-Length [16:03:06]Host: 172.17.39.68:8080 [16:03:06]Content-Length: 623 [16:03:06]Content-Type: application/json [16:03:06] [16:03:06]POST finish read [16:03:06]Found Content-Length = 623 [16:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214217", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:06]execute_script... [16:03: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)214217", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:06]POST & json_proto [16:03:06]process_json_proto [16:03:06]json parsed OK: [16:03:06]protocol is kg_v1.0 [16:03:06]action value=close_receipt [16:03:06]process_action close_receipt [16:03:06]cmd_close_receipt [16:03:06]MH_GetDate [16:03:06]Write to MH i2c: F0 00 00 47 01 37 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: F0 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: F0 09 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: F0 09 00 47 01 00 3B 48 95 66 FC 46 95 66 FB [16:03:06]GetLastDocTimeStamp 1721059380 [16:03:06]current date 1721059387 [16:03:06]FM_GetShiftState [16:03:06]SAM_PROTO_GetShiftState [16:03:06]wFMCommunicate request_size=4 [16:03:06]MH_SAM_APDU [16:03:06]CAPDU: 80 13 01 00 [16:03:06]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:06]Read from MH i2c: E2 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 0E 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B9 [16:03:06]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:03:06]wFMCommunicate OK [16:03:06]SAM_PROTO_GetShiftState done [16:03:06]FM_GetShiftState done [16:03:06]opened in 1721001862 [16:03:06]opened+sec_in_day 1721088262 [16:03:06]quantity*price = 6300 [16:03:06]sum+1 = 6301 [16:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 63.00 НСП 1% : 0.56 НДС 12% : 6.69 Наличными: 63.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 76 15.07.2024 16:03 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31635 ФПД: 90117588435678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160307&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31635&fm=90117588435678&tin=02508201610067®Number=0000000000098025&sum=6300 0 [16:03:08]StoreToDocumentArchive [16:03:08]shift 370 fd 31635 [16:03:08]save to /storage/0370/doc_00031635 [16:03:08]save last doc name /storage/0370/doc_00031635 to /storage/kkm_last_doc_name [16:03:08]save OK [16:03:08]Clear old archive folders... [16:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=270 [16:03:08]tlvbuf is 014F4200 [16:03:08]SAM_PROTO_ClearQueue [16:03:08]wFMCommunicate request_size=4 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 09 00 00 [16:03:08]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:08]Read from MH i2c: E2 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 03 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [16:03:08]RAPDU: 90 00 [16:03:08]wFMCommunicate OK [16:03:08]SAM_PROTO_ClearQueue done [16:03:08]KKMCreateOFDPacket [16:03:08]OFDProtocolAddRootSTLVToBuf [16:03:08]FM_MakeSignedData [16:03:08]FM_MakeSignedData [16:03:08]SAM_PROTO_SignData [16:03:08]wFMCommunicate request_size=4 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 0D 01 02 [16:03:08]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:08]Read from MH i2c: E2 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 03 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:03:08]RAPDU: 90 00 [16:03:08]wFMCommunicate OK [16:03:08]wFMCommunicate request_size=255 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 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 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3B 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [16:03:08]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 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 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3B 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 2F [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 03 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [16:03:09]RAPDU: 90 00 [16:03:09]wFMCommunicate OK [16:03:09]wFMCommunicate request_size=29 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 0D 02 02 18 39 36 35 33 38 39 10 04 04 00 93 7B 00 00 35 04 06 00 51 F6 22 D8 C2 DE [16:03:09]Write to MH i2c: E2 20 00 58 01 80 0D 02 02 18 00 39 36 35 33 38 39 10 04 04 00 93 7B 00 00 35 04 06 00 51 F6 22 D8 C2 DE 00 00 91 [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:09]E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 03 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:03:09]RAPDU: 90 00 [16:03:09]wFMCommunicate OK [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 0D 03 02 [16:03:09]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]OFD Sender: No OFD packet to send [16:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 0B 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 0B 00 59 01 00 3F 4A A7 80 85 95 CB 95 90 00 00 [16:03:09]RAPDU: 3F 4A A7 80 85 95 CB 95 90 00 [16:03:09]wFMCommunicate OK [16:03:09]SAM_PROTO_SignData done [16:03:09]FM_MakeSignedData done [16:03:09]CreateOFDProtocolMessage [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 11 00 00 [16:03:09]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 17 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 30 [16:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:03:09]wFMCommunicate OK [16:03:09]CreateOFDProtocolMessage done [16:03:09]OFDSenderStorePacket 31635 [16:03:09]StoreOFDPacket docnum=31635 [16:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 22 01 00 00 8A A3 1A 01 3B 55 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 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 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3B 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 93 7B 00 00 35 04 06 00 51 F6 22 D8 C2 DE 3F 4A A7 80 85 95 CB 95 [16:03:09]CheckFolder [16:03:09]dirname=/storage/ofd_packets [16:03:09]CheckFolder done [16:03:09]ProducePacketName [16:03:09]name=ofd_packets/00031635 [16:03:09]NVStorageSaveData ofd_packets/00031635 [16:03:09]File name is /storage/ofd_packets/00031635 [16:03:09]Write 320 bytes [16:03:09]NVStorageSaveData done [16:03:09]OFDSenderStorePacket done [16:03:09]KKMCreateOFDPacket done [16:03:09]NVStorageSaveData kkm_last_timestamp [16:03:09]File name is /storage/kkm_last_timestamp [16:03:09]Write 4 bytes [16:03:09]NVStorageSaveData done [16:03:09]ExternCall_PrintAddStr [16:03:09]wPrintStart [16:03:09]Write to MH i2c: 01 00 00 5B 01 5C [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: 01 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: 01 07 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [16:03:09]RasterBufferAndPrint [16:03:09]line Счет N : (3)214217 [16:03:09]line ИНН: 02508201610067 [16:03:09]line Контрольно-Кассовый Чек [16:03:09]line ПРОДАЖА [16:03:09]line Товар: 4606532012014 [16:03:09]line Перчатки Felix х/б [16:03:09]line 1.000 * 63.00 [16:03:09]line = 63.00 [16:03:09]line НДС 12% НСП 1% [16:03:09]line > о реализуемом товаре [16:03:09]line ИТОГО: 63.00 [16:03:09]line НСП 1% : 0.56 [16:03:09]line НДС 12% : 6.69 [16:03:09]line Наличными: 63.00 [16:03:09]line Безнал.: 0.00 [16:03:09]line Место: АЗС № 140 "Партнер Нефть" [16:03:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:03:09]line СНО: Общий режим [16:03:09]line Чек 76 15.07.2024 16:03 [16:03:09]line Смена: 370 ФФД: 1.0 [16:03:09]line ЗНМ: 0300000189 [16:03:09]line РНМ: 0000000000098025 [16:03:09]line Версия ККМ: 001 [16:03:09]line ФМ: 0000000000965389 [16:03:09]line ФД: 31635 [16:03:09]line ФПД: 90117588435678 [16:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160307&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31635&fm=90117588435678&tin=02508201610067®Number=0000000000098025&sum=6300 [16:03:09]line 0 [16:03:09]OFD Sender: Processing packet 31635 [packets to send 5, broken 4] [16:03:09]ProducePacketName [16:03:09]name=ofd_packets/00031635 [16:03:09]OFD Sender: To server: pG, [16:03:09]CommunicateWithHost lk.salyk.kg:30040 [16:03:09]ConnectInit lk.salyk.kg [16:03:09]written 0, free lines is 4095 [16:03:09]Connected sock=10 [16:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 22 01 00 00 8A A3 1A 01 3B 55 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 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 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3B 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 93 7B 00 00 35 04 06 00 51 F6 22 D8 C2 DE 3F 4A A7 80 85 95 CB 95 [16:03:09]Write to MH i2c: 01 00 00 83 01 84 [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: 01 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: 01 07 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 39 0D D1 [16:03:10]RasterBufferAndPrint [16:03:10]line [16:03:10]line [16:03:10]line [16:03:10]line [16:03:10]line [16:03:10]written 0, free lines is 3422 [16:03:10]MH_Cut [16:03:10]Write to MH i2c: D1 01 00 8A 01 01 5D [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: D1 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: D1 01 00 [16:03:10]MH_I2C_Read... [16:03:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 99 34 47 00 6F Read from MH i2c: EB D1 A5 01 07 00 01 8A 00 01 07 00 00 3B 5C 00 [16:03:10]F9 Write to MH i2c: 03 01 0E 00 00 00 37 8B 37 01 30 8C 39 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 93 7B 00 00 F4 03 04 00 4C F4 94 66 B6 04 01 00 00 13 AB CB FB 27 27 78 42 [16:03:10]CommunicateWithHost err = 0 [16:03:10]CheckOFDResponse [16:03:10]1017 (14) - 77093643461234 [16:03:10]1041 (16) - 0000000000965389 [16:03:10]1040 (4) - 31635 [16:03:10]1012 (4) - 15.07.2024 10:05 [16:03:10]1206 (1) - 0 [16:03:10]OFD Sender: Remove packet 31635 [16:03:10]ProducePacketName [16:03:10]name=ofd_packets/00031635 [16:03:10]NVStorageDeleteData [16:03:10]*** Cut start [16:03:10]*** Partial cut [16:03:10]*** CUTSNS_PIN = 1 [16:03:10]*** CUTSNS_PIN = 0 [16:03:10]OFD Sender: No OFD packet to send [16:03:10]*** Brake cut motor [16:03:11]Read from MH i2c: 01 [16:03:11]MH_I2C_Read... [16:03:11]*** Stop cut motor [16:03:11]*** Cut end [16:03:11]Read from MH i2c: 01 07 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [16:03:11]process_action close_receipt done [16:03:11]requested_data is exist [16:03:11]produce_requested_data [16:03:11]requested_item fm.sn is exist - process it [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 11 00 00 [16:03:11]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 17 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 62 [16:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:03:11]wFMCommunicate OK [16:03:11]requested_item fd.num is exist - process it [16:03:11]SAM_PROTO_GetFieldsCounters [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 13 00 00 [16:03:11]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 62 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 93 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:03:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 93 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:11]wFMCommunicate OK [16:03:11]SAM_PROTO_GetFieldsCounters done [16:03:11]requested_item shift.num is exist - process it [16:03:11]requested_item shift.opened is exist - process it [16:03:11]req_shift_opened [16:03:11]FM_GetShiftState [16:03:11]SAM_PROTO_GetShiftState [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 13 01 00 [16:03:11]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 0E 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FF [16:03:11]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:03:11]wFMCommunicate OK [16:03:11]SAM_PROTO_GetShiftState done [16:03:11]FM_GetShiftState done [16:03:11]req_shift_opened done [16:03:11]requested_item shift.open_date is exist - process it [16:03:11]req_shift_open_date [16:03:11]req_shift_open_date done [16:03:11]produce_requested_data done [16:03:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31635,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:03:11]process_action_free close_receipt [16:03:11]json_value_free [16:03:11]json_value_free done [16:03:11]process_json_proto returns [16:03:11]Send response to host [16:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31635,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:03:11]free response buf [16:03:11]execute_script done [16:03:11]execute_script returns [16:03:11]free content buf [16:03:11]Sock 9.Close socket [16:03:11]Sock 9.Thread stoped [16:03:12]accept exits with 6 [16:03:12]New connection [16:03:12]New thread 3066686820 created [16:03:12]Thread 3066543460 joined [16:03:12]Waiting for new connection... [16:03:12] Sock 6.Parse request [16:03:12]Sock 6.Check first char [16:03:12]Sock 6.First char is OK [16:03:12]request: POST /json_proto HTTP/1.0 [16:03:12]Method: POST [16:03:12]URL: /json_proto [16:03:12]Method is POST - this is cgi request [16:03:12]url: /json_proto [16:03:12]query_string will be loaded in cgi processing [16:03:12]execute_cgi json_proto POST (null) [16:03:12]execute_cgi path=json_proto method=POST [16:03:12]POST find Content-Length [16:03:12]Host: 172.17.39.68:8080 [16:03:12]Content-Length: 668 [16:03:12]Content-Type: application/json [16:03:12] [16:03:12]POST finish read [16:03:12]Found Content-Length = 668 [16:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214218", "tax_sys" : 0, "items" : [ { "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" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:12]execute_script... [16:03: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)214218", "tax_sys" : 0, "items" : [ { "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" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:12]POST & json_proto [16:03:12]process_json_proto [16:03:12]json parsed OK: [16:03:12]protocol is kg_v1.0 [16:03:12]action value=close_receipt [16:03:12]process_action close_receipt [16:03:12]cmd_close_receipt [16:03:12]MH_GetDate [16:03:12]Write to MH i2c: F0 00 00 8F 01 7F [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: F0 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: F0 09 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: F0 09 00 8F 01 00 40 48 95 66 FC 46 95 66 48 [16:03:12]GetLastDocTimeStamp 1721059387 [16:03:12]current date 1721059392 [16:03:12]FM_GetShiftState [16:03:12]SAM_PROTO_GetShiftState [16:03:12]wFMCommunicate request_size=4 [16:03:12]MH_SAM_APDU [16:03:12]CAPDU: 80 13 01 00 [16:03:12]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 0E 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 01 [16:03:12]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:03:12]wFMCommunicate OK [16:03:12]SAM_PROTO_GetShiftState done [16:03:12]FM_GetShiftState done [16:03:12]opened in 1721001862 [16:03:12]opened+sec_in_day 1721088262 [16:03:12]quantity*price = 2100 [16:03:12]sum+1 = 2101 [16:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 77 15.07.2024 16:03 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31636 ФПД: 58575913089957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160313&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31636&fm=58575913089957&tin=02508201610067®Number=0000000000098025&sum=2100 0 [16:03:14]StoreToDocumentArchive [16:03:14]shift 370 fd 31636 [16:03:14]save to /storage/0370/doc_00031636 [16:03:14]save last doc name /storage/0370/doc_00031636 to /storage/kkm_last_doc_name [16:03:14]save OK [16:03:14]Clear old archive folders... [16:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=283 [16:03:14]tlvbuf is 015BC5D0 [16:03:14]SAM_PROTO_ClearQueue [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 09 00 00 [16:03:14]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [16:03:14]RAPDU: 90 00 [16:03:14]wFMCommunicate OK [16:03:14]SAM_PROTO_ClearQueue done [16:03:14]KKMCreateOFDPacket [16:03:14]OFDProtocolAddRootSTLVToBuf [16:03:14]FM_MakeSignedData [16:03:14]FM_MakeSignedData [16:03:14]SAM_PROTO_SignData [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 0D 01 02 [16:03:14]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [16:03:14]RAPDU: 90 00 [16:03:14]wFMCommunicate OK [16:03:14]wFMCommunicate request_size=255 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 41 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 [16:03:14]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 1B 01 1E 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 41 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 00 00 FC [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=42 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 94 7B 00 00 35 04 06 00 35 46 44 7D FB A5 [16:03:15]Write to MH i2c: E2 2D 00 A0 01 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 94 7B 00 00 35 04 06 00 35 46 44 7D FB A5 00 00 E3 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 03 02 [16:03:15]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 A1 01 00 64 16 FF 44 58 58 55 B8 90 00 98 [16:03:15]RAPDU: 64 16 FF 44 58 58 55 B8 90 00 [16:03:15]wFMCommunicate OK [16:03:15]SAM_PROTO_SignData done [16:03:15]FM_MakeSignedData done [16:03:15]CreateOFDProtocolMessage [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 11 00 00 [16:03:15]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:15]Read from MH i2c: E2 17 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 78 [16:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:03:15]wFMCommunicate OK [16:03:15]CreateOFDProtocolMessage done [16:03:15]OFDSenderStorePacket 31636 [16:03:15]StoreOFDPacket docnum=31636 [16:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 AD C2 27 01 48 F0 5A 03 01 00 03 00 1B 01 1E 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 41 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 94 7B 00 00 35 04 06 00 35 46 44 7D FB A5 64 16 FF 44 58 58 55 B8 [16:03:15]CheckFolder [16:03:15]dirname=/storage/ofd_packets [16:03:15]CheckFolder done [16:03:15]ProducePacketName [16:03:15]name=ofd_packets/00031636 [16:03:15]NVStorageSaveData ofd_packets/00031636 [16:03:15]File name is /storage/ofd_packets/00031636 [16:03:15]Write 333 bytes [16:03:15]NVStorageSaveData done [16:03:15]OFDSenderStorePacket done [16:03:15]KKMCreateOFDPacket done [16:03:15]NVStorageSaveData kkm_last_timestamp [16:03:15]File name is /storage/kkm_last_timestamp [16:03:15]Write 4 bytes [16:03:15]NVStorageSaveData done [16:03:15]ExternCall_PrintAddStr [16:03:15]wPrintStart [16:03:15]Write to MH i2c: 01 00 00 A3 01 A4 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 07 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [16:03:15]RasterBufferAndPrint [16:03:15]line Счет N : (3)214218 [16:03:15]line ИНН: 02508201610067 [16:03:15]line Контрольно-Кассовый Чек [16:03:15]line ПРОДАЖА [16:03:15]line Товар: 4690329000476 [16:03:15]line Сух Кириешки шашлык 40г [16:03:15]line 1.000 * 21.00 [16:03:15]line = 21.00 [16:03:15]line НДС 12% НСП 1% [16:03:15]line > о реализуемом товаре [16:03:15]line ИТОГО: 21.00 [16:03:15]line НСП 1% : 0.19 [16:03:15]line НДС 12% : 2.23 [16:03:15]line Наличными: 21.00 [16:03:15]line Безнал.: 0.00 [16:03:15]line Место: АЗС № 140 "Партнер Нефть" [16:03:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:03:15]line СНО: Общий режим [16:03:15]line Чек 77 15.07.2024 16:03 [16:03:15]line Смена: 370 ФФД: 1.0 [16:03:15]line ЗНМ: 0300000189 [16:03:15]line РНМ: 0000000000098025 [16:03:15]line Версия ККМ: 001 [16:03:15]line ФМ: 0000000000965389 [16:03:15]line ФД: 31636 [16:03:15]line ФПД: 58575913089957 [16:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160313&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31636&fm=58575913089957&tin=02508201610067®Number=0000000000098025&sum=2100 [16:03:15]line 0 [16:03:15]written 0, free lines is 4095 [16:03:15]OFD Sender: Processing packet 31636 [packets to send 5, broken 4] [16:03:15]ProducePacketName [16:03:15]name=ofd_packets/00031636 [16:03:15]OFD Sender: To server: pG, [16:03:15]CommunicateWithHost lk.salyk.kg:30040 [16:03:15]ConnectInit lk.salyk.kg [16:03:15]Connected sock=9 [16:03:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 AD C2 27 01 48 F0 5A 03 01 00 03 00 1B 01 1E 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 41 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 94 7B 00 00 35 04 06 00 35 46 44 7D FB A5 64 16 FF 44 58 58 55 B8 [16:03:16]Write to MH i2c: 01 00 00 CB 01 CC [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 CB 01 00 00 00 00 00 32 0D 12 [16:03:16]RasterBufferAndPrint [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]written 0, free lines is 3422 [16:03:16]MH_Cut [16:03:16]Write to MH i2c: D1 01 00 D2 01 01 A5 [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 01 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 01 00 D2 01 00 A4 [16:03:16]Write to MH i2c: 01 00 00 D3 01 D4 [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 06 DC 47 00 4D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 94 7B 00 00 F4 03 04 00 52 F4 94 66 B6 04 01 00 00 5B 3D B6 4A AC 79 86 0F [16:03:16]CommunicateWithHost err = 0 [16:03:16]CheckOFDResponse [16:03:16]1017 (14) - 77093643461234 [16:03:16]1041 (16) - 0000000000965389 [16:03:16]1040 (4) - 31636 [16:03:16]1012 (4) - 15.07.2024 10:05 [16:03:16]1206 (1) - 0 [16:03:16]OFD Sender: Remove packet 31636 [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00031636 [16:03:16]NVStorageDeleteData [16:03:16]*** Cut start [16:03:16]*** Partial cut [16:03:16]*** CUTSNS_PIN = 1 [16:03:16]*** CUTSNS_PIN = 0 [16:03:16]OFD Sender: No OFD packet to send [16:03:17]*** Brake cut motor [16:03:17]Read from MH i2c: 01 [16:03:17]MH_I2C_Read... [16:03:17]*** Stop cut motor [16:03:17]*** Cut end [16:03:17]Read from MH i2c: 01 07 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FF 0F E9 [16:03:17]process_action close_receipt done [16:03:17]requested_data is exist [16:03:17]produce_requested_data [16:03:17]requested_item fm.sn is exist - process it [16:03:17]wFMCommunicate request_size=4 [16:03:17]MH_SAM_APDU [16:03:17]CAPDU: 80 11 00 00 [16:03:17]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [16:03:17]Write i2c OK [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:10]00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 23 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 435+1721059068=1721059503 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 24 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B0 48 95 66 FC 46 95 66 2F [16:05:04]Current date/time: 15.07.2024 16:05 [16:05:04]FM_Init [16:05:04]wFMConnect [16:05:04]MH_SAM_On [16:05:04]Write to MH i2c: E0 00 00 08 00 E7 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_init finished! [16:05:04]*** atr: [16:05:04]*** 0F 3B D5 18 FF 81 91 FE [16:05:04]*** 1F C3 80 73 C8 21 10 0A [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]*** 00 00 00 00 00 00 00 00 [16:05:04]Read from MH i2c: E0 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E0 10 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:05:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:05:04]wFMCommunicate request_size=10 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:05:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 11 00 00 [16:05:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DF [16:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:04]wFMCommunicate OK [16:05:04]Detected FM SN is 0000000000965389 [16:05:04]Stored FM SN is 0000000000965389 [16:05:04]wFMCommunicate request_size=9 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 16 00 00 04 BF 17 01 00 [16:05:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BF 17 01 00 00 00 69 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]FM PIN OK [16:05:04]wFMCommunicate request_size=8 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 14 04 00 03 02 00 01 [16:05:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=13 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:05:04]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 11 00 00 [16:05:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E3 [16:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:04]wFMCommunicate OK [16:05:04]DocumentArchiveInit [16:05:04]Start Httpd... [16:05:04]Httpd thread 3067252068 created [16:05:04]Write to MH i2c: 01 00 00 0F 00 0F [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 07 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:05:04]MH Int Process started [16:05:04]Allocated Socket 8 [16:05:04]Bind OK [16:05:04]Listen OK [16:05:04]httpd running on port 8080 [16:05:04]Waiting for new connection... [16:05:04]OFD Sender: No OFD packet to send [16:05:08]accept exits with 9 [16:05:08]New connection [16:05:08]New thread 3066965348 created [16:05:08]Waiting for new connection... [16:05:08] Sock 9.Parse request [16:05:08]Sock 9.Check first char [16:05:08]Sock 9.First char is OK [16:05:08]request: POST /json_proto HTTP/1.0 [16:05:08]Method: POST [16:05:08]URL: /json_proto [16:05:08]Method is POST - this is cgi request [16:05:08]url: /json_proto [16:05:08]query_string will be loaded in cgi processing [16:05:08]execute_cgi json_proto POST (null) [16:05:08]execute_cgi path=json_proto method=POST [16:05:08]POST find Content-Length [16:05:08]Host: 172.17.39.68:8080 [16:05:08]Content-Length: 215 [16:05:08]Content-Type: application/json [16:05:08] [16:05:08]POST finish read [16:05:08]Found Content-Length = 215 [16:05:08]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" ] } } [16:05:08]execute_script... [16:05:08]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" ] } } [16:05:08]POST & json_proto [16:05:08]process_json_proto [16:05:08]json parsed OK: [16:05:08]protocol is kg_v1.0 [16:05:08]action value=get_value [16:05:08]process_action get_value [16:05:08]cmd_get_value [16:05:08]process_action get_value done [16:05:08]requested_data is exist [16:05:08]produce_requested_data [16:05:08]requested_item kkm.sn is exist - process it [16:05:08]requested_item kkm.ver is exist - process it [16:05:08]requested_item fm.sn is exist - process it [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 11 00 00 [16:05:08]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [16:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:08]wFMCommunicate OK [16:05:08]requested_item fd.num is exist - process it [16:05:08]SAM_PROTO_GetFieldsCounters [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 13 00 00 [16:05:08]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 62 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9D 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_GetFieldsCounters done [16:05:08]requested_item shift.num is exist - process it [16:05:08]requested_item shift.opened is exist - process it [16:05:08]req_shift_opened [16:05:08]FM_GetShiftState [16:05:08]SAM_PROTO_GetShiftState [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 13 01 00 [16:05:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 82 [16:05:08]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_GetShiftState done [16:05:08]FM_GetShiftState done [16:05:08]req_shift_opened done [16:05:08]requested_item shift.open_date is exist - process it [16:05:08]req_shift_open_date [16:05:08]req_shift_open_date done [16:05:08]produce_requested_data done [16:05:08]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31645,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:05:08]process_action_free get_value [16:05:08]json_value_free [16:05:08]json_value_free done [16:05:08]process_json_proto returns [16:05:08]Send response to host [16:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31645,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:05:08]free response buf [16:05:08]execute_script done [16:05:08]execute_script returns [16:05:08]free content buf [16:05:08]Sock 9.Close socket [16:05:08]Sock 9.Thread stoped [16:05:08]accept exits with 6 [16:05:08]New connection [16:05:08]New thread 3066821988 created [16:05:08]Thread 3066965348 joined [16:05:08]Waiting for new connection... [16:05:08] Sock 6.Parse request [16:05:08]Sock 6.Check first char [16:05:08]Sock 6.First char is OK [16:05:08]request: POST /json_proto HTTP/1.0 [16:05:08]Method: POST [16:05:08]URL: /json_proto [16:05:08]Method is POST - this is cgi request [16:05:08]url: /json_proto [16:05:08]query_string will be loaded in cgi processing [16:05:08]execute_cgi json_proto POST (null) [16:05:08]execute_cgi path=json_proto method=POST [16:05:08]POST find Content-Length [16:05:08]Host: 172.17.39.68:8080 [16:05:08]Content-Length: 331 [16:05:08]Content-Type: application/json [16:05:08] [16:05:08]POST finish read [16:05:08]Found Content-Length = 331 [16:05:08]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" ] } } [16:05:08]execute_script... [16:05:08]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" ] } } [16:05:08]POST & json_proto [16:05:08]process_json_proto [16:05:08]json parsed OK: [16:05:08]protocol is kg_v1.0 [16:05:08]action value=get_value [16:05:08]process_action get_value [16:05:08]cmd_get_value [16:05:08]process_action get_value done [16:05:08]requested_data is exist [16:05:08]produce_requested_data [16:05:08]requested_item fm.sale.total is exist - process it [16:05:08]SAM_PROTO_GetFMData [16:05:09]wFMCommunicate request_size=4 [16:05:09]MH_SAM_APDU [16:05:09]CAPDU: 80 13 03 00 [16:05:09]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:09]OFD Sender: No OFD packet to send [16:05:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:05:09]Read from MH i2c: E2 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: E2 FD 00 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: E2 FD 00 13 00 00 B7 04 85 04 B3 04 6E 04 04 00 B8 78 00 00 69 04 A0 00 6F 04 04 00 B6 78 00 00 B1 04 04 00 B4 B5 FC 24 70 04 04 00 2C 80 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9A 77 ED 03 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 C6 BB 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 49 [16:05:09]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 B8 78 00 00 69 04 A0 00 6F 04 04 00 B6 78 00 00 B1 04 04 00 B4 B5 FC 24 70 04 04 00 2C 80 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9A 77 ED 03 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 C6 BB 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [16:05:09]wFMCommunicate OK [16:05:09]wFMCommunicate request_size=4 [16:05:09]MH_SAM_APDU [16:05:09]CAPDU: 80 17 00 00 [16:05:09]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:09]Read from MH i2c: E2 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: E2 FD 00 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: E2 FD 00 14 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 C5 [16:05:09]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:05:09]wFMCommunicate OK [16:05:09]wFMCommunicate request_size=4 [16:05:09]MH_SAM_APDU [16:05:09]CAPDU: 80 17 00 00 [16:05:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:10]Read from MH i2c: E2 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 FD 00 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 FD 00 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 3A [16:05:10]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:10]wFMCommunicate OK [16:05:10]wFMCommunicate request_size=4 [16:05:10]MH_SAM_APDU [16:05:10]CAPDU: 80 17 00 00 [16:05:10]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:05:10]Write i2c OK [16:05:10]MH_I2C_Read... [16:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:10]Read from MH i2c: E2 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 FD 00 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 0B [16:05:10]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [16:05:10]wFMCommunicate OK [16:05:10]wFMCommunicate request_size=4 [16:05:10]MH_SAM_APDU [16:05:10]CAPDU: 80 17 00 00 [16:05:10]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:05:10]Write i2c OK [16:05:10]MH_I2C_Read... [16:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:05:10]Read from MH i2c: E2 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 D4 00 [16:05:10]MH_I2C_Read... [16:05:10]Read from MH i2c: E2 D4 00 17 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [16:05:10]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:10]wFMCommunicate OK [16:05:10]SAM_PROTO_GetFMData done [16:05:10]requested_item fm.sale_refund.total is exist - process it [16:05:10]requested_item fm.buy.total is exist - process it [16:05:10]requested_item shift.sale.total is exist - process it [16:05:10]SAM_PROTO_GetShiftData [16:05:10]wFMCommunicate request_size=4 [16:05:10]MH_SAM_APDU [16:05:10]CAPDU: 80 13 02 00 [16:05:10]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:05:10]Write i2c OK [16:05:10]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 40 5E 1B 70 04 03 00 04 72 11 72 04 03 00 3C EC 09 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 02 E8 02 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 FB 3D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [16:05:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 40 5E 1B 70 04 03 00 04 72 11 72 04 03 00 3C EC 09 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 02 E8 02 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 FB 3D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:05:11]wFMCommunicate OK [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 17 00 00 [16:05:11]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [16:05:11]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 [16:05:11]wFMCommunicate OK [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 17 00 00 [16:05:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [16:05:11]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 [16:05:11]wFMCommunicate OK [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 17 00 00 [16:05:11]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 FD 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [16:05:12]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 [16:05:12]wFMCommunicate OK [16:05:12]wFMCommunicate request_size=4 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 17 00 00 [16:05:12]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 CB 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [16:05:12]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 [16:05:12]wFMCommunicate OK [16:05:12]SAM_PROTO_GetShiftData done [16:05:12]requested_item shift.sale.total_cash is exist - process it [16:05:12]requested_item shift.sale_refund.total is exist - process it [16:05:12]requested_item shift.sale_refund.total_cash is exist - process it [16:05:12]requested_item shift.buy.total is exist - process it [16:05:12]requested_item shift.buy.total_cash is exist - process it [16:05:12]produce_requested_data done [16:05:12]produce_requested_data return {"fm.sale.total":6205413.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":17936.00,"shift.sale.total_cash":11433.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} [16:05:12]process_action_free get_value [16:05:12]json_value_free [16:05:12]json_value_free done [16:05:12]process_json_proto returns [16:05:12]Send response to host [16:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6205413.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":17936.00,"shift.sale.total_cash":11433.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}}} [16:05:12]free response buf [16:05:12]execute_script done [16:05:12]execute_script returns [16:05:12]free content buf [16:05:12]Sock 6.Close socket [16:05:12]Sock 6.Thread stoped [16:05:13]accept exits with 9 [16:05:13]New connection [16:05:13]New thread 3066965348 created [16:05:13]Thread 3066821988 joined [16:05:13]Waiting for new connection... [16:05:13] Sock 9.Parse request [16:05:13]Sock 9.Check first char [16:05:13]Sock 9.First char is OK [16:05:13]request: POST /json_proto HTTP/1.0 [16:05:13]Method: POST [16:05:13]URL: /json_proto [16:05:13]Method is POST - this is cgi request [16:05:13]url: /json_proto [16:05:13]query_string will be loaded in cgi processing [16:05:13]execute_cgi json_proto POST (null) [16:05:13]execute_cgi path=json_proto method=POST [16:05:13]POST find Content-Length [16:05:13]Host: 172.17.39.68:8080 [16:05:13]Content-Length: 961 [16:05:13]Content-Type: application/json [16:05:13] [16:05:13]POST finish read [16:05:13]Found Content-Length = 961 [16:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214228", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:13]execute_script... [16:05:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214228", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:13]POST & json_proto [16:05:13]process_json_proto [16:05:13]json parsed OK: [16:05:13]protocol is kg_v1.0 [16:05:13]action value=close_receipt [16:05:13]process_action close_receipt [16:05:13]cmd_close_receipt [16:05:13]MH_GetDate [16:05:13]Write to MH i2c: F0 00 00 1D 00 0C [16:05:13]Write i2c OK [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: F0 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: F0 09 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: F0 09 00 1D 00 00 BA 48 95 66 FC 46 95 66 4F [16:05:13]GetLastDocTimeStamp 1721059463 [16:05:13]current date 1721059514 [16:05:13]FM_GetShiftState [16:05:13]SAM_PROTO_GetShiftState [16:05:13]wFMCommunicate request_size=4 [16:05:13]MH_SAM_APDU [16:05:13]CAPDU: 80 13 01 00 [16:05:13]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:05:13]Write i2c OK [16:05:13]MH_I2C_Read... [16:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:13]Read from MH i2c: E2 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 0E 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 8E [16:05:13]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:13]wFMCommunicate OK [16:05:13]SAM_PROTO_GetShiftState done [16:05:13]FM_GetShiftState done [16:05:13]opened in 1721001862 [16:05:13]opened+sec_in_day 1721088262 [16:05:13]quantity*price = 8500 [16:05:13]sum+1 = 8501 [16:05:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082931 Водка Хорошая 0,1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 87 15.07.2024 16:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31646 ФПД: 130127785352242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160514&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31646&fm=130127785352242&tin=02508201610067®Number=0000000000098025&sum=15500 0 [16:05:15]StoreToDocumentArchive [16:05:15]shift 370 fd 31646 [16:05:15]save to /storage/0370/doc_00031646 [16:05:15]save last doc name /storage/0370/doc_00031646 to /storage/kkm_last_doc_name [16:05:15]save OK [16:05:15]Clear old archive folders... [16:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=399 [16:05:15]tlvbuf is 014C33A0 [16:05:15]SAM_PROTO_ClearQueue [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 09 00 00 [16:05:15]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]SAM_PROTO_ClearQueue done [16:05:15]KKMCreateOFDPacket [16:05:15]OFDProtocolAddRootSTLVToBuf [16:05:15]FM_MakeSignedData [16:05:15]FM_MakeSignedData [16:05:15]SAM_PROTO_SignData [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 01 02 [16:05:15]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=255 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 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 8C 3C 00 00 00 00 EB 03 [16:05:15]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 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 8C 3C 00 00 00 00 EB 03 00 00 BB [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=158 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 99 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 57 00 00 00 F4 03 04 00 BA 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9E 7B 00 00 35 04 06 00 76 59 BC 6B DC 32 [16:05:16]Write to MH i2c: E2 A1 00 2E 00 80 0D 02 02 99 00 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 57 00 00 00 F4 03 04 00 BA 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9E 7B 00 00 35 04 06 00 76 59 BC 6B DC 32 00 00 D9 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 03 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:05:16]RAPDU: 90 00 [16:05:16]wFMCommunicate OK [16:05:16]wFMCommunicate request_size=4 [16:05:16]MH_SAM_APDU [16:05:16]CAPDU: 80 0D 03 02 [16:05:16]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 0B 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 0B 00 2F 00 00 34 2D 8C AD 8F 90 2B 40 90 00 CF [16:05:16]RAPDU: 34 2D 8C AD 8F 90 2B 40 90 00 [16:05:16]wFMCommunicate OK [16:05:16]SAM_PROTO_SignData done [16:05:16]FM_MakeSignedData done [16:05:16]CreateOFDProtocolMessage [16:05:16]wFMCommunicate request_size=4 [16:05:16]MH_SAM_APDU [16:05:16]CAPDU: 80 11 00 00 [16:05:16]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 17 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [16:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:16]wFMCommunicate OK [16:05:16]CreateOFDProtocolMessage done [16:05:16]OFDSenderStorePacket 31646 [16:05:16]StoreOFDPacket docnum=31646 [16:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 D0 2E 9B 01 F8 E2 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 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 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 57 00 00 00 F4 03 04 00 BA 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9E 7B 00 00 35 04 06 00 76 59 BC 6B DC 32 34 2D 8C AD 8F 90 2B 40 [16:05:16]CheckFolder [16:05:16]dirname=/storage/ofd_packets [16:05:16]CheckFolder done [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00031646 [16:05:16]NVStorageSaveData ofd_packets/00031646 [16:05:16]File name is /storage/ofd_packets/00031646 [16:05:16]Write 449 bytes [16:05:16]NVStorageSaveData done [16:05:16]OFDSenderStorePacket done [16:05:16]KKMCreateOFDPacket done [16:05:16]NVStorageSaveData kkm_last_timestamp [16:05:16]File name is /storage/kkm_last_timestamp [16:05:16]Write 4 bytes [16:05:16]NVStorageSaveData done [16:05:16]ExternCall_PrintAddStr [16:05:16]wPrintStart [16:05:16]Write to MH i2c: 01 00 00 31 00 31 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:05:16]RasterBufferAndPrint [16:05:16]line Счет N : (3)214228 [16:05:16]line ИНН: 02508201610067 [16:05:16]line Контрольно-Кассовый Чек [16:05:16]line ПРОДАЖА [16:05:16]line Товар: 4601025117702 [16:05:16]line Напиток Фрутмотив апельсин 0,5 [16:05:16]line 1.000 * 85.00 [16:05:16]line = 85.00 [16:05:16]line НДС 12% НСП 1% [16:05:16]line > о реализуемом товаре [16:05:16]line Товар: 4700002082931 [16:05:16]line Водка Хорошая 0,1л [16:05:16]line 1.000 * 70.00 [16:05:16]line = 70.00 [16:05:16]line НДС 12% НСП 1% [16:05:16]line > о реализуемом товаре [16:05:16]line ИТОГО: 155.00 [16:05:16]line НСП 1% : 1.37 [16:05:16]line НДС 12% : 16.46 [16:05:16]line Наличными: 155.00 [16:05:16]line Безнал.: 0.00 [16:05:16]line Место: АЗС № 140 "Партнер Нефть" [16:05:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:05:16]line СНО: Общий режим [16:05:16]line Чек 87 15.07.2024 16:05 [16:05:16]line Смена: 370 ФФД: 1.0 [16:05:16]line ЗНМ: 0300000189 [16:05:16]line РНМ: 0000000000098025 [16:05:16]line Версия ККМ: 001 [16:05:16]line ФМ: 0000000000965389 [16:05:16]line ФД: 31646 [16:05:16]line ФПД: 130127785352242 [16:05:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160514&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31646&fm=130127785352242&tin=02508201610067®Number=0000000000098025&sum=15500 [16:05:16]line 0 [16:05:16]written 0, free lines is 4095 [16:05:16]OFD Sender: Processing packet 31646 [packets to send 6, broken 5] [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00031646 [16:05:16]OFD Sender: To server: pG, [16:05:16]CommunicateWithHost lk.salyk.kg:30040 [16:05:16]ConnectInit lk.salyk.kg [16:05:16]Connected sock=10 [16:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 D0 2E 9B 01 F8 E2 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 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 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 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 57 00 00 00 F4 03 04 00 BA 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9E 7B 00 00 35 04 06 00 76 59 BC 6B DC 32 34 2D 8C AD 8F 90 2B 40 [16:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F6 BA 47 00 7B DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9E 7B 00 00 F4 03 04 00 CA F4 94 66 B6 04 01 00 00 7D D4 AB AA F5 2A B9 FB [16:05:16]CommunicateWithHost err = 0 [16:05:16]CheckOFDResponse [16:05:16]1017 (14) - 77093643461234 [16:05:16]1041 (16) - 0000000000965389 [16:05:16]1040 (4) - 31646 [16:05:16]1012 (4) - 15.07.2024 10:07 [16:05:16]1206 (1) - 0 [16:05:16]OFD Sender: Remove packet 31646 [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00031646 [16:05:16]NVStorageDeleteData [16:05:16]Write to MH i2c: 01 00 00 60 00 60 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 07 0D 7B [16:05:17]RasterBufferAndPrint [16:05:17]line [16:05:17]line [16:05:17]line [16:05:17]line [16:05:17]line [16:05:17]written 0, free lines is 3358 [16:05:17]MH_Cut [16:05:17]Write to MH i2c: D1 01 00 67 00 01 39 [16:05:17]Write i2c OK [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: D1 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: D1 01 00 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: D1 01 00 67 00 00 38 [16:05:17]Write to MH i2c: 01 00 00 68 00 68 [16:05:17]Write i2c OK [16:05:17]MH_I2C_Read... [16:05:17]OFD Sender: No OFD packet to send [16:05:17]*** Cut start [16:05:17]*** Partial cut [16:05:17]*** CUTSNS_PIN = 1 [16:05:17]*** CUTSNS_PIN = 0 [16:05:17]*** Brake cut motor [16:05:18]Read from MH i2c: 01 [16:05:18]MH_I2C_Read... [16:05:18]*** Stop cut motor [16:05:18]*** Cut end [16:05:18]Read from MH i2c: 01 07 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [16:05:18]process_action close_receipt done [16:05:18]requested_data is exist [16:05:18]produce_requested_data [16:05:18]requested_item fm.sn is exist - process it [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 11 00 00 [16:05:18]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 17 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3E [16:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:18]wFMCommunicate OK [16:05:18]requested_item fd.num is exist - process it [16:05:18]SAM_PROTO_GetFieldsCounters [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 00 00 [16:05:18]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 62 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 62 00 6A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9E 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetFieldsCounters done [16:05:18]requested_item shift.num is exist - process it [16:05:18]requested_item shift.opened is exist - process it [16:05:18]req_shift_opened [16:05:18]FM_GetShiftState [16:05:18]SAM_PROTO_GetShiftState [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 01 00 [16:05:18]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DB [16:05:18]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetShiftState done [16:05:18]FM_GetShiftState done [16:05:18]req_shift_opened done [16:05:18]requested_item shift.open_date is exist - process it [16:05:18]req_shift_open_date [16:05:18]req_shift_open_date done [16:05:18]produce_requested_data done [16:05:18]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31646,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:05:18]process_action_free close_receipt [16:05:18]json_value_free [16:05:18]json_value_free done [16:05:18]process_json_proto returns [16:05:18]Send response to host [16:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31646,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:05:18]free response buf [16:05:18]execute_script done [16:05:18]execute_script returns [16:05:18]free content buf [16:05:18]Sock 9.Close socket [16:05:18]Sock 9.Thread stoped [16:05:19]accept exits with 6 [16:05:19]New connection [16:05:19]New thread 3066821988 created [16:05:19]Thread 3066965348 joined [16:05:19]Waiting for new connection... [16:05:19] Sock 6.Parse request [16:05:19]Sock 6.Check first char [16:05:19]Sock 6.First char is OK [16:05:19]request: POST /json_proto HTTP/1.0 [16:05:19]Method: POST [16:05:19]URL: /json_proto [16:05:19]Method is POST - this is cgi request [16:05:19]url: /json_proto [16:05:19]query_string will be loaded in cgi processing [16:05:19]execute_cgi json_proto POST (null) [16:05:19]execute_cgi path=json_proto method=POST [16:05:19]POST find Content-Length [16:05:19]Host: 172.17.39.68:8080 [16:05:19]Content-Length: 709 [16:05:19]Content-Type: application/json [16:05:19] [16:05:19]POST finish read [16:05:19]Found Content-Length = 709 [16:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214229", "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" ] } } [16:05:19]execute_script... [16:05: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)214229", "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" ] } } [16:05:19]POST & json_proto [16:05:19]process_json_proto [16:05:19]json parsed OK: [16:05:19]protocol is kg_v1.0 [16:05:19]action value=close_receipt [16:05:19]process_action close_receipt [16:05:19]cmd_close_receipt [16:05:19]MH_GetDate [16:05:19]Write to MH i2c: F0 00 00 6C 00 5B [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: F0 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: F0 09 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: F0 09 00 6C 00 00 BF 48 95 66 FC 46 95 66 A3 [16:05:19]GetLastDocTimeStamp 1721059514 [16:05:19]current date 1721059519 [16:05:19]FM_GetShiftState [16:05:19]SAM_PROTO_GetShiftState [16:05:19]wFMCommunicate request_size=4 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 13 01 00 [16:05:19]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 0E 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DD [16:05:19]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:19]wFMCommunicate OK [16:05:19]SAM_PROTO_GetShiftState done [16:05:19]FM_GetShiftState done [16:05:19]opened in 1721001862 [16:05:19]opened+sec_in_day 1721088262 [16:05:19]quantity*price = 9500 [16:05:19]sum+1 = 9501 [16:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 88 15.07.2024 16:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31647 ФПД: 145441134019294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160520&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31647&fm=145441134019294&tin=02508201610067®Number=0000000000098025&sum=9500 0 [16:05:21]StoreToDocumentArchive [16:05:21]shift 370 fd 31647 [16:05:21]save to /storage/0370/doc_00031647 [16:05:21]save last doc name /storage/0370/doc_00031647 to /storage/kkm_last_doc_name [16:05:21]save OK [16:05:21]Clear old archive folders... [16:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:05:21]tlvbuf is 01483370 [16:05:21]SAM_PROTO_ClearQueue [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 09 00 00 [16:05:21]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]SAM_PROTO_ClearQueue done [16:05:21]KKMCreateOFDPacket [16:05:21]OFDProtocolAddRootSTLVToBuf [16:05:21]FM_MakeSignedData [16:05:21]FM_MakeSignedData [16:05:21]SAM_PROTO_SignData [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 01 02 [16:05:21]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]wFMCommunicate request_size=255 [16:05:21]MH_SAM_APDU [16:05:21]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 58 00 00 00 F4 03 04 00 C0 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 [16:05:21]Write to MH i2c: E2 02 01 7C 00 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 58 00 00 00 F4 03 04 00 C0 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 00 00 08 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]wFMCommunicate request_size=63 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9F 7B 00 00 35 04 06 00 84 47 27 21 02 DE [16:05:21]Write to MH i2c: E2 42 00 7D 00 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9F 7B 00 00 35 04 06 00 84 47 27 21 02 DE 00 00 55 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 03 02 [16:05:21]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 0B 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 0B 00 7E 00 00 05 99 3A B5 B0 9D 93 E4 90 00 4B [16:05:21]RAPDU: 05 99 3A B5 B0 9D 93 E4 90 00 [16:05:21]wFMCommunicate OK [16:05:21]SAM_PROTO_SignData done [16:05:21]FM_MakeSignedData done [16:05:21]CreateOFDProtocolMessage [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 11 00 00 [16:05:21]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 17 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 54 [16:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:21]wFMCommunicate OK [16:05:21]CreateOFDProtocolMessage done [16:05:21]OFDSenderStorePacket 31647 [16:05:21]StoreOFDPacket docnum=31647 [16:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 80 12 3C 01 04 1B 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 58 00 00 00 F4 03 04 00 C0 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9F 7B 00 00 35 04 06 00 84 47 27 21 02 DE 05 99 3A B5 B0 9D 93 E4 [16:05:21]CheckFolder [16:05:21]dirname=/storage/ofd_packets [16:05:21]CheckFolder done [16:05:21]ProducePacketName [16:05:21]name=ofd_packets/00031647 [16:05:21]NVStorageSaveData ofd_packets/00031647 [16:05:21]File name is /storage/ofd_packets/00031647 [16:05:21]Write 354 bytes [16:05:21]NVStorageSaveData done [16:05:21]OFDSenderStorePacket done [16:05:21]KKMCreateOFDPacket done [16:05:21]NVStorageSaveData kkm_last_timestamp [16:05:21]File name is /storage/kkm_last_timestamp [16:05:21]Write 4 bytes [16:05:21]NVStorageSaveData done [16:05:21]ExternCall_PrintAddStr [16:05:21]wPrintStart [16:05:21]Write to MH i2c: 01 00 00 80 00 80 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: 01 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: 01 07 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [16:05:22]RasterBufferAndPrint [16:05:22]line Счет N : (3)214229 [16:05:22]line ИНН: 02508201610067 [16:05:22]line Контрольно-Кассовый Чек [16:05:22]line ПРОДАЖА [16:05:22]line Товар: 4700000480302 [16:05:22]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:05:22]line 1.000 * 95.00 [16:05:22]line = 95.00 [16:05:22]line НДС 12% НСП 1% [16:05:22]line > о реализуемом товаре [16:05:22]line ИТОГО: 95.00 [16:05:22]line НСП 1% : 0.84 [16:05:22]line НДС 12% : 10.09 [16:05:22]line Наличными: 95.00 [16:05:22]line Безнал.: 0.00 [16:05:22]line Место: АЗС № 140 "Партнер Нефть" [16:05:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:05:22]line СНО: Общий режим [16:05:22]line Чек 88 15.07.2024 16:05 [16:05:22]line Смена: 370 ФФД: 1.0 [16:05:22]line ЗНМ: 0300000189 [16:05:22]line РНМ: 0000000000098025 [16:05:22]line Версия ККМ: 001 [16:05:22]line ФМ: 0000000000965389 [16:05:22]line ФД: 31647 [16:05:22]line ФПД: 145441134019294 [16:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160520&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31647&fm=145441134019294&tin=02508201610067®Number=0000000000098025&sum=9500 [16:05:22]line 0 [16:05:22]written 0, free lines is 4095 [16:05:22]OFD Sender: Processing packet 31647 [packets to send 6, broken 5] [16:05:22]ProducePacketName [16:05:22]name=ofd_packets/00031647 [16:05:22]OFD Sender: To server: pG, [16:05:22]CommunicateWithHost lk.salyk.kg:30040 [16:05:22]ConnectInit lk.salyk.kg [16:05:22]Connected sock=10 [16:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 80 12 3C 01 04 1B 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 58 00 00 00 F4 03 04 00 C0 48 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9F 7B 00 00 35 04 06 00 84 47 27 21 02 DE 05 99 3A B5 B0 9D 93 E4 [16:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8E E0 47 00 0D 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 9F 7B 00 00 F4 03 04 00 D0 F4 94 66 B6 04 01 00 00 0C 3D EB 55 8C FA 6D 7E [16:05:22]CommunicateWithHost err = 0 [16:05:22]CheckOFDResponse [16:05:22]1017 (14) - 77093643461234 [16:05:22]1041 (16) - 0000000000965389 [16:05:22]1040 (4) - 31647 [16:05:22]1012 (4) - 15.07.2024 10:07 [16:05:22]1206 (1) - 0 [16:05:22]OFD Sender: Remove packet 31647 [16:05:22]ProducePacketName [16:05:22]name=ofd_packets/00031647 [16:05:22]NVStorageDeleteData [16:05:22]Write to MH i2c: 01 00 00 A9 00 A9 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 5F 0D 1C [16:05:22]RasterBufferAndPrint [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]written 0, free lines is 3449 [16:05:22]MH_Cut [16:05:22]Write to MH i2c: D1 01 00 B0 00 01 82 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 01 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 01 00 B0 00 00 81 [16:05:22]Write to MH i2c: 01 00 00 B1 00 B1 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:23]OFD Sender: No OFD packet to send [16:05:23]*** Cut start [16:05:23]*** Partial cut [16:05:23]*** CUTSNS_PIN = 1 [16:05:23]*** CUTSNS_PIN = 0 [16:05:23]*** Brake cut motor [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]*** Stop cut motor [16:05:23]*** Cut end [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [16:05:23]process_action close_receipt done [16:05:23]requested_data is exist [16:05:23]produce_requested_data [16:05:23]requested_item fm.sn is exist - process it [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 11 00 00 [16:05:23]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 87 [16:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:23]wFMCommunicate OK [16:05:23]requested_item fd.num is exist - process it [16:05:23]SAM_PROTO_GetFieldsCounters [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 13 00 00 [16:05:23]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 62 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:05:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_GetFieldsCounters done [16:05:24]requested_item shift.num is exist - process it [16:05:24]requested_item shift.opened is exist - process it [16:05:24]req_shift_opened [16:05:24]FM_GetShiftState [16:05:24]SAM_PROTO_GetShiftState [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 13 01 00 [16:05:24]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 24 [16:05:24]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_GetShiftState done [16:05:24]FM_GetShiftState done [16:05:24]req_shift_opened done [16:05:24]requested_item shift.open_date is exist - process it [16:05:24]req_shift_open_date [16:05:24]req_shift_open_date done [16:05:24]produce_requested_data done [16:05:24]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31647,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:05:24]process_action_free close_receipt [16:05:24]json_value_free [16:05:24]json_value_free done [16:05:24]process_json_proto returns [16:05:24]Send response to host [16:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31647,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:05:24]free response buf [16:05:24]execute_script done [16:05:24]execute_script returns [16:05:24]free content buf [16:05:24]Sock 6.Close socket [16:05:24]Sock 6.Thread stoped [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:40]accept exits with 9 [16:05:40]New connection [16:05:40]New thread 3066965348 created [16:05:40]Thread 3066821988 joined [16:05:40]Waiting for new connection... [16:05:40] Sock 9.Parse request [16:05:40]Sock 9.Check first char [16:05:40]Sock 9.First char is OK [16:05:40]request: POST /json_proto HTTP/1.1 [16:05:40]Method: POST [16:05:40]URL: /json_proto [16:05:40]Method is POST - this is cgi request [16:05:40]url: /json_proto [16:05:40]query_string will be loaded in cgi processing [16:05:40]execute_cgi json_proto POST (null) [16:05:40]execute_cgi path=json_proto method=POST [16:05:40]POST find Content-Length [16:05:40]Host: 172.17.39.68:8080 [16:05:40]Connection: keep-alive [16:05:40]Content-Length: 105 [16:05:40]Accept: application/json, text/plain, */* [16:05:40]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [16:05:40]Content-Type: application/json [16:05:40]Origin: http://172.17.39.68:8080 [16:05:40]Referer: http://172.17.39.68:8080/testengine [16:05:40]Accept-Encoding: gzip, deflate [16:05:40]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [16:05:40] [16:05:40]POST finish read [16:05:40]Found Content-Length = 105 [16:05:40]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [16:05:40]execute_script... [16:05:40]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [16:05:40]POST & json_proto [16:05:40]process_json_proto [16:05:40]json parsed OK: [16:05:40]protocol is kg_v1.0 [16:05:40]action value=get_value [16:05:40]process_action get_value [16:05:40]cmd_get_value [16:05:40]process_action get_value done [16:05:40]requested_data is exist [16:05:40]produce_requested_data [16:05:40]requested_item config.timestamp is exist - process it [16:05:40]MH_GetDate [16:05:40]Write to MH i2c: F0 00 00 B5 00 A4 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: F0 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: F0 09 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: F0 09 00 B5 00 00 D4 48 95 66 FC 46 95 66 01 [16:05:40]produce_requested_data done [16:05:40]produce_requested_data return {"config.timestamp":"1721059540"} [16:05:40]process_action_free get_value [16:05:40]json_value_free [16:05:40]json_value_free done [16:05:40]process_json_proto returns [16:05:40]Send response to host [16:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1721059540"}}} [16:05:40]free response buf [16:05:40]execute_script done [16:05:40]execute_script returns [16:05:40]free content buf [16:05:40]Sock 9.Close socket [16:05:40]Sock 9.Thread stoped [16:05:41]accept exits with 7 [16:05:41]New connection [16:05:41]New thread 3066821988 created [16:05:41]Thread 3066965348 joined [16:05:41]Waiting for new connection... [16:05:41] Sock 7.Parse request [16:05:41]Sock 7.Check first char [16:05:41]Sock 7.First char is OK [16:05:41]request: POST /json_proto HTTP/1.1 [16:05:41]Method: POST [16:05:41]URL: /json_proto [16:05:41]Method is POST - this is cgi request [16:05:41]url: /json_proto [16:05:41]query_string will be loaded in cgi processing [16:05:41]execute_cgi json_proto POST (null) [16:05:41]execute_cgi path=json_proto method=POST [16:05:41]POST find Content-Length [16:05:41]Host: 172.17.39.68:8080 [16:05:41]Connection: keep-alive [16:05:41]Content-Length: 113 [16:05:41]Accept: application/json, text/plain, */* [16:05:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [16:05:41]Content-Type: application/json [16:05:41]Origin: http://172.17.39.68:8080 [16:05:41]Referer: http://172.17.39.68:8080/testengine [16:05:41]Accept-Encoding: gzip, deflate [16:05:41]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [16:05:41] [16:05:41]POST finish read [16:05:41]Found Content-Length = 113 [16:05:41]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1721059542"}}} [16:05:41]execute_script... [16:05:41]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1721059542"}}} [16:05:41]POST & json_proto [16:05:41]process_json_proto [16:05:41]json parsed OK: [16:05:41]protocol is kg_v1.0 [16:05:41]action value=set_value [16:05:41]process_action set_value [16:05:41]cmd_set_value [16:05:41]SetValue [16:05:41]group config [16:05:41]SetConfigValue timestamp=1721059542 [16:05:41]SettingCheckAndSetValue timestamp=1721059542 [16:05:41]store_timestamp [16:05:41]MH_GetDate [16:05:41]Write to MH i2c: F0 00 00 B6 00 A5 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 B6 00 00 D5 48 95 66 FC 46 95 66 03 [16:05:41]GetLastDocTimeStamp 1721059520 [16:05:41]cur date 1721059541 [16:05:41]tm 1721059542 [16:05:41]tm ok - set date [16:05:41]MH_SetDate [16:05:41]Write to MH i2c: F1 04 00 B7 00 D6 48 95 66 C4 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F1 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F1 01 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F1 01 00 B7 00 00 A8 [16:05:42]SetValue res=0 [16:05:42]process_action set_value done [16:05:42]no requested_data - finishing processing [16:05:42]process_action_free set_value [16:05:42]json_value_free [16:05:42]json_value_free done [16:05:42]process_json_proto returns [16:05:42]Send response to host [16:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:05:42]free response buf [16:05:42]execute_script done [16:05:42]execute_script returns [16:05:42]free content buf [16:05:42]Sock 7.Close socket [16:05:42]Sock 7.Thread stoped [16:05:43]OFD Sender: No OFD packet to send [16:05:45]accept exits with 9 [16:05:45]New connection [16:05:45]New thread 3066965348 created [16:05:45]Thread 3066821988 joined [16:05:45]Waiting for new connection... [16:05:45] Sock 9.Parse request [16:05:45]Sock 9.Check first char [16:05:45]Sock 9.First char is OK [16:05:45]request: POST /json_proto HTTP/1.1 [16:05:45]Method: POST [16:05:45]URL: /json_proto [16:05:45]Method is POST - this is cgi request [16:05:45]url: /json_proto [16:05:45]query_string will be loaded in cgi processing [16:05:45]execute_cgi json_proto POST (null) [16:05:45]execute_cgi path=json_proto method=POST [16:05:45]POST find Content-Length [16:05:45]Host: 172.17.39.68:8080 [16:05:45]Connection: keep-alive [16:05:45]Content-Length: 359 [16:05:45]Accept: application/json, text/plain, */* [16:05:45]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [16:05:45]Content-Type: application/json [16:05:45]Origin: http://172.17.39.68:8080 [16:05:45]Referer: http://172.17.39.68:8080/testengine [16:05:45]Accept-Encoding: gzip, deflate [16:05:45]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [16:05:45] [16:05:45]POST finish read [16:05:45]Found Content-Length = 359 [16:05:45]post body = {"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [16:05:45]execute_script... [16:05:45]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"x_report","params":{"pre_header_text":" ООО Ромашка\n Добро пожаловать","post_header_text":"** Здесь Вам всегда рады **","pre_footer_text":"*** СПАСИБО ***","post_footer_text":"*** ЖДЕМ ВАС ОПЯТЬ ***","operator":"Сергей Смирнов"}}} [16:05:45]POST & json_proto [16:05:45]process_json_proto [16:05:45]json parsed OK: [16:05:45]protocol is kg_v1.0 [16:05:45]action value=x_report [16:05:45]process_action x_report [16:05:45]cmd_x_report [16:05:45]MH_GetDate [16:05:45]Write to MH i2c: F0 00 00 B8 00 A7 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 09 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 09 00 B8 00 00 D9 48 95 66 D6 48 95 66 E5 [16:05:45]GetLastDocTimeStamp 1721059520 [16:05:45]current date 1721059545 [16:05:45]FM_GetShiftState [16:05:45]SAM_PROTO_GetShiftState [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 01 00 [16:05:45]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 86 67 94 66 00 00 00 00 90 00 29 [16:05:45]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetShiftState done [16:05:45]FM_GetShiftState done [16:05:45]KKMCreateXReportDocument [16:05:45]Load OK [16:05:45]Malloc new data [16:05:45]MH_GetDate [16:05:45]Write to MH i2c: F0 00 00 BA 00 A9 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 09 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: F0 09 00 BA 00 00 D9 48 95 66 D6 48 95 66 E7 [16:05:45]Malloc new data [16:05:45]Malloc new data [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 11 00 00 [16:05:45]Write to MH i2c: E2 08 00 BB 00 80 11 00 00 00 00 00 00 35 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 BB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 90 [16:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetFieldsCounters [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 00 00 [16:05:45]Write to MH i2c: E2 08 00 BC 00 80 13 00 00 00 00 00 00 38 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 BC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 9F 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetFieldsCounters done [16:05:45]Malloc new data [16:05:45]Malloc new data [16:05:45]Malloc new data [16:05:45]KKMCreateXReportDocument OK [16:05:45]KKMSetXReportData OK [16:05:45]KKMPrepareXReportFMData [16:05:45]SAM_PROTO_GetShiftData [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 02 00 [16:05:45]Write to MH i2c: E2 08 00 BD 00 80 13 02 00 00 00 00 00 3B [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 BD 00 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 E8 BF 1B 70 04 03 00 AC D3 11 72 04 03 00 3C EC 09 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 61 F2 02 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 D8 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [16:05:46]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 E8 BF 1B 70 04 03 00 AC D3 11 72 04 03 00 3C EC 09 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 61 F2 02 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 D8 3E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 BE 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 60 [16:05:46]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 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 BF 00 80 17 00 00 00 00 00 00 3F [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 BF 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [16:05:46]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 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 C0 00 80 17 00 00 00 00 00 00 40 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 FD 00 C0 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B2 [16:05:47]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 [16:05:47]wFMCommunicate OK [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 17 00 00 [16:05:47]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 CB 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 CB 00 C1 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2A [16:05:47]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 [16:05:47]wFMCommunicate OK [16:05:47]SAM_PROTO_GetShiftData done [16:05:47]1194 (1194) - счетчики итогов смены [16:05:47] 1134 (4) - 88 - количество чеков со всеми признаками расчетов [16:05:47] 1129 (155) - счетчики операций «приход» [16:05:47] 1135 (4) - 88 - количество чеков по признаку расчетов [16:05:47] 1201 (3) - 18186.00 - общая итоговая сумма в чеках [16:05:47] 1136 (3) - 11683.00 - итоговая сумма в чеках наличными [16:05:47] 1138 (3) - 6503.00 - итоговая сумма в чеках безналичными [16:05:47] 1024 (122) - суммы налогов [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 0% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1006 (12) - суммы НДС [16:05:47] 1010 (1) - 12% - код ставки НДС [16:05:47] 1011 (3) - 1931.21 - сумма НДС по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (11) - суммы НСП [16:05:47] 1014 (1) - 1% - код ставки НСП [16:05:47] 1015 (2) - 160.88 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 2% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 3% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 5% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1130 (141) - счетчики операций «возврат прихода» [16:05:47] 1135 (4) - 0 - количество чеков по признаку расчетов [16:05:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:05:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:05:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:05:47] 1024 (117) - суммы налогов [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 0% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 12% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 2% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 3% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 5% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1131 (141) - счетчики операций «расход» [16:05:47] 1135 (4) - 0 - количество чеков по признаку расчетов [16:05:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:05:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:05:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:05:47] 1024 (117) - суммы налогов [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 0% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 12% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 2% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 3% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 5% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1132 (141) - счетчики операций «возврат расхода» [16:05:47] 1135 (4) - 0 - количество чеков по признаку расчетов [16:05:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:05:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:05:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:05:47] 1024 (117) - суммы налогов [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 0% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1006 (9) - суммы НДС [16:05:47] 1010 (1) - 12% - код ставки НДС [16:05:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 2% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 3% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 5% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 0,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1007 (9) - суммы НСП [16:05:47] 1014 (1) - 1,50% - код ставки НСП [16:05:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:05:47] 1133 (588) - - счетчики коррекции - не используются [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1194 (04AA) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1134 (046E) [16:05:47]Malloc new data [16:05:47]Processing tag 1129 (0469) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1135 (046F) [16:05:47]Malloc new data [16:05:47]Processing tag 1201 (04B1) [16:05:47]Malloc new data [16:05:47]Processing tag 1136 (0470) [16:05:47]Malloc new data [16:05:47]Processing tag 1138 (0472) [16:05:47]Malloc new data [16:05:47]Processing tag 1024 (0400) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1006 (03EE) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1010 (03F2) [16:05:47]Malloc new data [16:05:47]Processing tag 1011 (03F3) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1006 (03EE) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1010 (03F2) [16:05:47]Malloc new data [16:05:47]Processing tag 1011 (03F3) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]SetTLVBufToDocument err=0 [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1130 (046A) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1135 (046F) [16:05:47]Malloc new data [16:05:47]Processing tag 1201 (04B1) [16:05:47]Malloc new data [16:05:47]Processing tag 1136 (0470) [16:05:47]Malloc new data [16:05:47]Processing tag 1138 (0472) [16:05:47]Malloc new data [16:05:47]Processing tag 1024 (0400) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1006 (03EE) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1010 (03F2) [16:05:47]Malloc new data [16:05:47]Processing tag 1011 (03F3) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1006 (03EE) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1010 (03F2) [16:05:47]Malloc new data [16:05:47]Processing tag 1011 (03F3) [16:05:47]Malloc new data [16:05:47]SetTLVBufToDocument err=0 [16:05:47]Processing tag 1007 (03EF) [16:05:47]Load OK [16:05:47]SetTLVBufToDocument [16:05:47]Processing tag 1014 (03F6) [16:05:47]Malloc new data [16:05:47]Processing tag 1015 (03F7) [16:05:47]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1131 (046B) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1135 (046F) [16:05:48]Malloc new data [16:05:48]Processing tag 1201 (04B1) [16:05:48]Malloc new data [16:05:48]Processing tag 1136 (0470) [16:05:48]Malloc new data [16:05:48]Processing tag 1138 (0472) [16:05:48]Malloc new data [16:05:48]Processing tag 1024 (0400) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1006 (03EE) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1010 (03F2) [16:05:48]Malloc new data [16:05:48]Processing tag 1011 (03F3) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1006 (03EE) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1010 (03F2) [16:05:48]Malloc new data [16:05:48]Processing tag 1011 (03F3) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1132 (046C) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1135 (046F) [16:05:48]Malloc new data [16:05:48]Processing tag 1201 (04B1) [16:05:48]Malloc new data [16:05:48]Processing tag 1136 (0470) [16:05:48]Malloc new data [16:05:48]Processing tag 1138 (0472) [16:05:48]Malloc new data [16:05:48]Processing tag 1024 (0400) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1006 (03EE) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1010 (03F2) [16:05:48]Malloc new data [16:05:48]Processing tag 1011 (03F3) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1006 (03EE) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1010 (03F2) [16:05:48]Malloc new data [16:05:48]Processing tag 1011 (03F3) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1007 (03EF) [16:05:48]Load OK [16:05:48]SetTLVBufToDocument [16:05:48]Processing tag 1014 (03F6) [16:05:48]Malloc new data [16:05:48]Processing tag 1015 (03F7) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Processing tag 1133 (046D) [16:05:48]Malloc new data [16:05:48]SetTLVBufToDocument err=0 [16:05:48]SetTLVBufToDocument err=0 [16:05:48]Malloc new data [16:05:48]SAM_PROTO_GetFMData [16:05:48]wFMCommunicate request_size=4 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 13 03 00 [16:05:48]Write to MH i2c: E2 08 00 C2 00 80 13 03 00 00 00 00 00 41 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]OFD Sender: No OFD packet to send [16:05:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 C2 00 00 B7 04 85 04 B3 04 6E 04 04 00 BA 78 00 00 69 04 A0 00 6F 04 04 00 B8 78 00 00 B1 04 04 00 5C 17 FD 24 70 04 04 00 D4 E1 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 81 ED 03 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 A3 BC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 57 [16:05:48]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 BA 78 00 00 69 04 A0 00 6F 04 04 00 B8 78 00 00 B1 04 04 00 5C 17 FD 24 70 04 04 00 D4 E1 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 81 ED 03 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 A3 BC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [16:05:49]wFMCommunicate OK [16:05:49]wFMCommunicate request_size=4 [16:05:49]MH_SAM_APDU [16:05:49]CAPDU: 80 17 00 00 [16:05:49]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [16:05:49]Write i2c OK [16:05:49]MH_I2C_Read... [16:05:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:49]Read from MH i2c: E2 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 FD 00 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 FD 00 C3 00 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 74 [16:05:49]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:05:49]wFMCommunicate OK [16:05:49]wFMCommunicate request_size=4 [16:05:49]MH_SAM_APDU [16:05:49]CAPDU: 80 17 00 00 [16:05:49]Write to MH i2c: E2 08 00 C4 00 80 17 00 00 00 00 00 00 44 [16:05:49]Write i2c OK [16:05:49]MH_I2C_Read... [16:05:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:49]Read from MH i2c: E2 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 FD 00 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 FD 00 C4 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 E9 [16:05:49]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:49]wFMCommunicate OK [16:05:49]wFMCommunicate request_size=4 [16:05:49]MH_SAM_APDU [16:05:49]CAPDU: 80 17 00 00 [16:05:49]Write to MH i2c: E2 08 00 C5 00 80 17 00 00 00 00 00 00 45 [16:05:49]Write i2c OK [16:05:49]MH_I2C_Read... [16:05:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:50]Read from MH i2c: E2 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 FD 00 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 FD 00 C5 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 BA [16:05:50]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [16:05:50]wFMCommunicate OK [16:05:50]wFMCommunicate request_size=4 [16:05:50]MH_SAM_APDU [16:05:50]CAPDU: 80 17 00 00 [16:05:50]Write to MH i2c: E2 08 00 C6 00 80 17 00 00 00 00 00 00 46 [16:05:50]Write i2c OK [16:05:50]MH_I2C_Read... [16:05:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:05:50]Read from MH i2c: E2 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 D4 00 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 D4 00 C6 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [16:05:50]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:50]wFMCommunicate OK [16:05:50]SAM_PROTO_GetFMData done [16:05:50]FM_GetFMData:85 04 B3 04 6E 04 04 00 BA 78 00 00 69 04 A0 00 6F 04 04 00 B8 78 00 00 B1 04 04 00 5C 17 FD 24 70 04 04 00 D4 E1 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 81 ED 03 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 A3 BC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:05:51]oper:6F 04 04 00 B8 78 00 00 B1 04 04 00 5C 17 FD 24 70 04 04 00 D4 E1 1D 22 72 04 04 00 88 35 DF 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 81 ED 03 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 A3 BC 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:05:51]total:5C 17 FD 24 [16:05:51]Malloc new data [16:05:51]oper:6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 [16:05:51]total:C8 [16:05:51]Malloc new data [16:05:51]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 [16:05:51]total: [16:05:51]Malloc new data [16:05:51]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 [16:05:51]total: [16:05:51]Malloc new data [16:05:51]KKMPrepareXReportFMData err=0 [16:05:51] ООО Ромашка Добро пожаловать Х отчет ИНН: 02508201610067 Кассир: Сергей Смирнов 15.07.2024 16:05 Смена: 266 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим ** Здесь Вам всегда рады ** Всего чеков: 88 ИТОГИ ПРИХОД Чеков: 88 Общий итог: 18186.00 Итого наличными: 11683.00 Итого безнал.: 6503.00 НДС 0% : 0.00 НДС 12% : 1931.21 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 160.88 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 11683.00 НС Приход: 6205663.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965389 *** ЖДЕМ ВАС ОПЯТЬ *** [16:05:51]StoreToDocumentArchive [16:05:51]MH_GetDate [16:05:51]Write to MH i2c: F0 00 00 C7 00 B6 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 C7 00 00 DF 48 95 66 D6 48 95 66 FA [16:05:51]shift 266 fd 1721059551 [16:05:51]Create dir for shift 0266 [16:05:51]save to /storage/0266/doc_1721059551 [16:05:51]save last doc name /storage/0266/doc_1721059551 to /storage/kkm_last_doc_name [16:05:51]save OK [16:05:51]Clear old archive folders... [16:05:51]NVStorageSaveData kkm_last_timestamp [16:05:51]File name is /storage/kkm_last_timestamp [16:05:51]Write 4 bytes [16:05:51]NVStorageSaveData done [16:05:51]ExternCall_PrintAddStr [16:05:51]wPrintStart [16:05:51]Write to MH i2c: 01 00 00 C8 00 C8 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 07 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 07 00 C8 00 00 00 00 00 00 FF 0F DD [16:05:51]RasterBufferAndPrint [16:05:51]line ООО Ромашка [16:05:51]line Добро пожаловать [16:05:51]line Х отчет [16:05:51]line ИНН: 02508201610067 [16:05:51]line Кассир: Сергей Смирнов [16:05:51]line 15.07.2024 16:05 [16:05:51]line Смена: 266 [16:05:51]line РНМ: 0000000000098025 [16:05:51]line ЗНМ: 0300000189 [16:05:51]line СНО: Общий режим [16:05:51]line ** Здесь Вам всегда рады ** [16:05:51]line Всего чеков: 88 [16:05:51]line ИТОГИ ПРИХОД [16:05:51]line Чеков: 88 [16:05:51]line Общий итог: 18186.00 [16:05:51]line Итого наличными: 11683.00 [16:05:51]line Итого безнал.: 6503.00 [16:05:51]line НДС 0% : 0.00 [16:05:51]line НДС 12% : 1931.21 [16:05:51]line НСП 0% : 0.00 [16:05:51]line НСП 1,50% : 0.00 [16:05:51]line НСП 0,50% : 0.00 [16:05:51]line НСП 5% : 0.00 [16:05:51]line НСП 3% : 0.00 [16:05:51]line НСП 2% : 0.00 [16:05:51]line НСП 1% : 160.88 [16:05:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:05:51]line Чеков: 0 [16:05:51]line Общий итог: 0.00 [16:05:51]line Итого наличными: 0.00 [16:05:51]line Итого безнал.: 0.00 [16:05:51]line НДС 0% : 0.00 [16:05:51]line НДС 12% : 0.00 [16:05:51]line НСП 0% : 0.00 [16:05:51]line НСП 1,50% : 0.00 [16:05:51]line НСП 0,50% : 0.00 [16:05:51]line НСП 5% : 0.00 [16:05:51]line НСП 3% : 0.00 [16:05:51]line НСП 2% : 0.00 [16:05:51]line НСП 1% : 0.00 [16:05:51]line ИТОГИ РАСХОД [16:05:51]line Чеков: 0 [16:05:51]line Общий итог: 0.00 [16:05:51]line Итого наличными: 0.00 [16:05:51]line Итого безнал.: 0.00 [16:05:51]line НДС 0% : 0.00 [16:05:51]line НДС 12% : 0.00 [16:05:51]line НСП 0% : 0.00 [16:05:51]line НСП 1,50% : 0.00 [16:05:51]line НСП 0,50% : 0.00 [16:05:51]line НСП 5% : 0.00 [16:05:51]line НСП 3% : 0.00 [16:05:51]line НСП 2% : 0.00 [16:05:51]line НСП 1% : 0.00 [16:05:51]line ИТОГИ ВОЗВРАТ РАСХОДА [16:05:51]line Чеков: 0 [16:05:51]line Общий итог: 0.00 [16:05:51]line Итого наличными: 0.00 [16:05:51]line Итого безнал.: 0.00 [16:05:51]line НДС 0% : 0.00 [16:05:51]line НДС 12% : 0.00 [16:05:51]line НСП 0% : 0.00 [16:05:51]line НСП 1,50% : 0.00 [16:05:51]line НСП 0,50% : 0.00 [16:05:51]line НСП 5% : 0.00 [16:05:51]line НСП 3% : 0.00 [16:05:51]line НСП 2% : 0.00 [16:05:51]line НСП 1% : 0.00 [16:05:51]line *** СПАСИБО *** [16:05:51]line Сумма внесений: 0.00 [16:05:51]line Сумма выплат: 0.00 [16:05:51]line Нал. в кассе: 11683.00 [16:05:51]line НС Приход: 6205663.64 [16:05:51]line НС Возвр.Прихода: 2.00 [16:05:51]line НС Расход: 0.00 [16:05:51]line НС Возвр.Расхода: 0.00 [16:05:51]line ФМ: 0000000000965389 [16:05:51]line *** ЖДЕМ ВАС ОПЯТЬ *** [16:05:51]written 0, free lines is 4095 [16:05:52]Write to MH i2c: 01 00 00 18 01 19 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 07 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 C1 0A EB [16:05:52]RasterBufferAndPrint [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]written 0, free lines is 2784 [16:05:52]MH_Cut [16:05:52]Write to MH i2c: D1 01 00 1F 01 01 F2 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 01 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 01 00 1F 01 00 F1 [16:05:52]Write to MH i2c: 01 00 00 20 01 21 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:53]*** Cut start [16:05:53]*** Partial cut [16:05:53]*** CUTSNS_PIN = 1 [16:05:53]OFD Sender: No OFD packet to send [16:05:53]*** CUTSNS_PIN = 0 [16:05:53]*** Brake cut motor [16:05:54]Read from MH i2c: 01 [16:05:54]MH_I2C_Read... [16:05:54]*** Stop cut motor [16:05:54]*** Cut end [16:05:54]Read from MH i2c: 01 07 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 FF 0F 36 [16:05:54]process_action x_report done [16:05:54]no requested_data - finishing processing [16:05:54]process_action_free x_report [16:05:54]json_value_free [16:05:54]json_value_free done [16:05:54]process_json_proto returns [16:05:54]Send response to host [16:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:05:54]free response buf [16:05:54]execute_script done [16:05:54]execute_script returns [16:05:54]free content buf [16:05:54]Sock 9.Close socket [16:05:54]Sock 9.Thread stoped [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:43]accept exits with 7 [16:33:43]New connection [16:33:43]New thread 3066821988 created [16:33:43]Thread 3066965348 joined [16:33:43]Waiting for new connection... [16:33:43] Sock 7.Parse request [16:33:43]Sock 7.Check first char [16:33:43]Sock 7.First char is OK [16:33:43]request: POST /json_proto HTTP/1.0 [16:33:43]Method: POST [16:33:43]URL: /json_proto [16:33:43]Method is POST - this is cgi request [16:33:43]url: /json_proto [16:33:43]query_string will be loaded in cgi processing [16:33:43]execute_cgi json_proto POST (null) [16:33:43]execute_cgi path=json_proto method=POST [16:33:43]POST find Content-Length [16:33:43]Host: 172.17.39.68:8080 [16:33:43]Content-Length: 731 [16:33:43]Content-Type: application/json [16:33:43] [16:33:43]POST finish read [16:33:43]Found Content-Length = 731 [16:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214230", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [16:33:43]execute_script... [16:33: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)214230", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [16:33:43]POST & json_proto [16:33:43]process_json_proto [16:33:43]json parsed OK: [16:33:43]protocol is kg_v1.0 [16:33:43]action value=close_receipt [16:33:43]process_action close_receipt [16:33:43]cmd_close_receipt [16:33:43]MH_GetDate [16:33:43]Write to MH i2c: F0 00 00 21 01 11 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: F0 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: F0 09 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: F0 09 00 21 01 00 67 4F 95 66 D6 48 95 66 E4 [16:33:43]GetLastDocTimeStamp 1721059545 [16:33:43]current date 1721061223 [16:33:43]FM_GetShiftState [16:33:43]SAM_PROTO_GetShiftState [16:33:43]wFMCommunicate request_size=4 [16:33:43]MH_SAM_APDU [16:33:43]CAPDU: 80 13 01 00 [16:33:43]Write to MH i2c: E2 08 00 22 01 80 13 01 00 00 00 00 00 A0 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:43]Read from MH i2c: E2 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: E2 0E 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: E2 0E 00 22 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 93 [16:33:43]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:33:43]wFMCommunicate OK [16:33:43]SAM_PROTO_GetShiftState done [16:33:43]FM_GetShiftState done [16:33:43]opened in 1721001862 [16:33:43]opened+sec_in_day 1721088262 [16:33:43]quantity*price = 10500 [16:33:43]sum+1 = 10501 [16:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 89 15.07.2024 16:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31648 ФПД: 178754486515079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163343&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31648&fm=178754486515079&tin=02508201610067®Number=0000000000098025&sum=10500 0 [16:33:44]StoreToDocumentArchive [16:33:44]shift 370 fd 31648 [16:33:44]save to /storage/0370/doc_00031648 [16:33:44]save last doc name /storage/0370/doc_00031648 to /storage/kkm_last_doc_name [16:33:44]save OK [16:33:44]Clear old archive folders... [16:33:44]Remove dir /storage/0266 [16:33:44]opendir ok [16:33:44]file . [16:33:44]file .. [16:33:44]file doc_1721059551 [16:33:44]remove file /storage/0266/doc_1721059551 [16:33:44]remove dir /storage/0266 [16:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=307 [16:33:44]tlvbuf is 01489230 [16:33:44]SAM_PROTO_ClearQueue [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 09 00 00 [16:33:44]Write to MH i2c: E2 08 00 2F 01 80 09 00 00 00 00 00 00 A2 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 2F 01 00 90 00 A4 [16:33:44]RAPDU: 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_ClearQueue done [16:33:44]KKMCreateOFDPacket [16:33:44]OFDProtocolAddRootSTLVToBuf [16:33:44]FM_MakeSignedData [16:33:44]FM_MakeSignedData [16:33:44]SAM_PROTO_SignData [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 0D 01 02 [16:33:44]Write to MH i2c: E2 08 00 30 01 80 0D 01 02 00 00 00 00 AA [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 30 01 00 90 00 A5 [16:33:44]RAPDU: 90 00 [16:33:44]wFMCommunicate OK [16:33:44]wFMCommunicate request_size=255 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 59 00 00 00 F4 03 04 00 67 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 [16:33:44]Write to MH i2c: E2 02 01 31 01 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 59 00 00 00 F4 03 04 00 67 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 00 00 AA [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 31 01 00 90 00 A6 [16:33:44]RAPDU: 90 00 [16:33:44]wFMCommunicate OK [16:33:44]wFMCommunicate request_size=66 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A0 7B 00 00 35 04 06 00 A2 93 85 AB B5 87 [16:33:44]Write to MH i2c: E2 45 00 32 01 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A0 7B 00 00 35 04 06 00 A2 93 85 AB B5 87 00 00 C2 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [16:33:44]RAPDU: 90 00 [16:33:44]wFMCommunicate OK [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 0D 03 02 [16:33:44]Write to MH i2c: E2 08 00 33 01 80 0D 03 02 00 00 00 00 AF [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0B 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0B 00 33 01 00 83 2B DF F6 98 D1 BA 0D 90 00 63 [16:33:44]RAPDU: 83 2B DF F6 98 D1 BA 0D 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_SignData done [16:33:44]FM_MakeSignedData done [16:33:44]CreateOFDProtocolMessage [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 11 00 00 [16:33:44]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0A [16:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:33:44]wFMCommunicate OK [16:33:44]CreateOFDProtocolMessage done [16:33:44]OFDSenderStorePacket 31648 [16:33:44]StoreOFDPacket docnum=31648 [16:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 47 01 00 00 68 78 3F 01 EB DB 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 59 00 00 00 F4 03 04 00 67 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A0 7B 00 00 35 04 06 00 A2 93 85 AB B5 87 83 2B DF F6 98 D1 BA 0D [16:33:44]CheckFolder [16:33:44]dirname=/storage/ofd_packets [16:33:44]CheckFolder done [16:33:44]ProducePacketName [16:33:44]name=ofd_packets/00031648 [16:33:44]NVStorageSaveData ofd_packets/00031648 [16:33:44]File name is /storage/ofd_packets/00031648 [16:33:44]Write 357 bytes [16:33:44]NVStorageSaveData done [16:33:44]OFDSenderStorePacket done [16:33:44]KKMCreateOFDPacket done [16:33:44]NVStorageSaveData kkm_last_timestamp [16:33:44]File name is /storage/kkm_last_timestamp [16:33:44]Write 4 bytes [16:33:44]NVStorageSaveData done [16:33:44]ExternCall_PrintAddStr [16:33:44]wPrintStart [16:33:44]Write to MH i2c: 01 00 00 35 01 36 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 FF 0F 4B [16:33:44]RasterBufferAndPrint [16:33:44]line Счет N : (3)214230 [16:33:44]line ИНН: 02508201610067 [16:33:44]line Контрольно-Кассовый Чек [16:33:44]line ПРОДАЖА [16:33:44]line Товар: 4607018771791 [16:33:44]line Минеральная вода Ессентуки 17 0,45л ст [16:33:44]line 1.000 * 105.00 [16:33:44]line = 105.00 [16:33:44]line НДС 12% НСП 1% [16:33:44]line > о реализуемом товаре [16:33:44]line ИТОГО: 105.00 [16:33:44]line НСП 1% : 0.93 [16:33:44]line НДС 12% : 11.15 [16:33:44]line Наличными: 105.00 [16:33:44]line Безнал.: 0.00 [16:33:44]line Место: АЗС № 140 "Партнер Нефть" [16:33:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:33:44]line СНО: Общий режим [16:33:44]line Чек 89 15.07.2024 16:33 [16:33:44]line Смена: 370 ФФД: 1.0 [16:33:44]line ЗНМ: 0300000189 [16:33:44]line РНМ: 0000000000098025 [16:33:45]line Версия ККМ: 001 [16:33:45]line ФМ: 0000000000965389 [16:33:45]line ФД: 31648 [16:33:45]line ФПД: 178754486515079 [16:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163343&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31648&fm=178754486515079&tin=02508201610067®Number=0000000000098025&sum=10500 [16:33:45]line 0 [16:33:45]OFD Sender: Processing packet 31648 [packets to send 6, broken 5] [16:33:45]ProducePacketName [16:33:45]name=ofd_packets/00031648 [16:33:45]OFD Sender: To server: pG, [16:33:45]CommunicateWithHost lk.salyk.kg:30040 [16:33:45]ConnectInit lk.salyk.kg [16:33:45]written 0, free lines is 4095 [16:33:45]Connected sock=10 [16:33:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 47 01 00 00 68 78 3F 01 EB DB 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 59 00 00 00 F4 03 04 00 67 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A0 7B 00 00 35 04 06 00 A2 93 85 AB B5 87 83 2B DF F6 98 D1 BA 0D [16:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3A DC 47 00 E7 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A0 7B 00 00 F4 03 04 00 76 FB 94 66 B6 04 01 00 00 12 55 1F 87 1C 36 F5 6F [16:33:45]CommunicateWithHost err = 0 [16:33:45]CheckOFDResponse [16:33:45]1017 (14) - 77093643461234 [16:33:45]1041 (16) - 0000000000965389 [16:33:45]1040 (4) - 31648 [16:33:45]1012 (4) - 15.07.2024 10:35 [16:33:45]1206 (1) - 0 [16:33:45]OFD Sender: Remove packet 31648 [16:33:45]ProducePacketName [16:33:45]name=ofd_packets/00031648 [16:33:45]NVStorageDeleteData [16:33:45]Write to MH i2c: 01 00 00 5E 01 5F [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 07 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 F4 0C 66 [16:33:45]RasterBufferAndPrint [16:33:45]line [16:33:45]line [16:33:45]line [16:33:45]line [16:33:45]line [16:33:45]written 0, free lines is 3323 [16:33:45]MH_Cut [16:33:45]Write to MH i2c: D1 01 00 65 01 01 38 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: D1 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: D1 01 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: D1 01 00 65 01 00 37 [16:33:45]Write to MH i2c: 01 00 00 66 01 67 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]OFD Sender: No OFD packet to send [16:33:46]*** Cut start [16:33:46]*** Partial cut [16:33:46]*** CUTSNS_PIN = 1 [16:33:46]*** CUTSNS_PIN = 0 [16:33:46]*** Brake cut motor [16:33:46]Read from MH i2c: 01 [16:33:46]MH_I2C_Read... [16:33:46]*** Stop cut motor [16:33:46]*** Cut end [16:33:46]Read from MH i2c: 01 07 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 FF 0F 7C [16:33:46]process_action close_receipt done [16:33:46]requested_data is exist [16:33:46]produce_requested_data [16:33:46]requested_item fm.sn is exist - process it [16:33:46]wFMCommunicate request_size=4 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 11 00 00 [16:33:46]Write to MH i2c: E2 08 00 67 01 80 11 00 00 00 00 00 00 E2 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 17 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 17 00 67 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3D [16:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:33:47]wFMCommunicate OK [16:33:47]requested_item fd.num is exist - process it [16:33:47]SAM_PROTO_GetFieldsCounters [16:33:47]wFMCommunicate request_size=4 [16:33:47]MH_SAM_APDU [16:33:47]CAPDU: 80 13 00 00 [16:33:47]Write to MH i2c: E2 08 00 68 01 80 13 00 00 00 00 00 00 E5 [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 62 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 62 00 68 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:47]wFMCommunicate OK [16:33:47]SAM_PROTO_GetFieldsCounters done [16:33:47]requested_item shift.num is exist - process it [16:33:47]requested_item shift.opened is exist - process it [16:33:47]req_shift_opened [16:33:47]FM_GetShiftState [16:33:47]SAM_PROTO_GetShiftState [16:33:47]wFMCommunicate request_size=4 [16:33:47]MH_SAM_APDU [16:33:47]CAPDU: 80 13 01 00 [16:33:47]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 0E 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DA [16:33:47]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:33:47]wFMCommunicate OK [16:33:47]SAM_PROTO_GetShiftState done [16:33:47]FM_GetShiftState done [16:33:47]req_shift_opened done [16:33:47]requested_item shift.open_date is exist - process it [16:33:47]req_shift_open_date [16:33:47]req_shift_open_date done [16:33:47]produce_requested_data done [16:33:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31648,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:33:47]process_action_free close_receipt [16:33:47]json_value_free [16:33:47]json_value_free done [16:33:47]process_json_proto returns [16:33:47]Send response to host [16:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31648,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:33:47]free response buf [16:33:47]execute_script done [16:33:47]execute_script returns [16:33:47]free content buf [16:33:47]Sock 7.Close socket [16:33:47]Sock 7.Thread stoped [16:33:50]OFD Sender: No OFD packet to send [16:33:52]accept exits with 9 [16:33:52]New connection [16:33:52]New thread 3066965348 created [16:33:52]Thread 3066821988 joined [16:33:52]Waiting for new connection... [16:33:52] Sock 9.Parse request [16:33:52]Sock 9.Check first char [16:33:52]Sock 9.First char is OK [16:33:52]request: POST /json_proto HTTP/1.0 [16:33:52]Method: POST [16:33:52]URL: /json_proto [16:33:52]Method is POST - this is cgi request [16:33:52]url: /json_proto [16:33:52]query_string will be loaded in cgi processing [16:33:52]execute_cgi json_proto POST (null) [16:33:52]execute_cgi path=json_proto method=POST [16:33:52]POST find Content-Length [16:33:52]Host: 172.17.39.68:8080 [16:33:52]Content-Length: 655 [16:33:52]Content-Type: application/json [16:33:52] [16:33:52]POST finish read [16:33:52]Found Content-Length = 655 [16:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214231", "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" : 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" ] } } [16:33:52]execute_script... [16:33: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)214231", "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" : 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" ] } } [16:33:52]POST & json_proto [16:33:52]process_json_proto [16:33:52]json parsed OK: [16:33:52]protocol is kg_v1.0 [16:33:52]action value=close_receipt [16:33:52]process_action close_receipt [16:33:52]cmd_close_receipt [16:33:52]MH_GetDate [16:33:52]Write to MH i2c: F0 00 00 6A 01 5A [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 09 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 09 00 6A 01 00 70 4F 95 66 D6 48 95 66 36 [16:33:52]GetLastDocTimeStamp 1721061223 [16:33:52]current date 1721061232 [16:33:52]FM_GetShiftState [16:33:52]SAM_PROTO_GetShiftState [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 13 01 00 [16:33:52]Write to MH i2c: E2 08 00 6B 01 80 13 01 00 00 00 00 00 E9 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 6B 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 DC [16:33:52]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:33:52]wFMCommunicate OK [16:33:52]SAM_PROTO_GetShiftState done [16:33:52]FM_GetShiftState done [16:33:52]opened in 1721001862 [16:33:52]opened+sec_in_day 1721088262 [16:33:52]quantity*price = 8500 [16:33:52]sum+1 = 8501 [16:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 90 15.07.2024 16:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31649 ФПД: 71333488986883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163352&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31649&fm=71333488986883&tin=02508201610067®Number=0000000000098025&sum=8500 0 [16:33:53]StoreToDocumentArchive [16:33:53]shift 370 fd 31649 [16:33:53]save to /storage/0370/doc_00031649 [16:33:53]save last doc name /storage/0370/doc_00031649 to /storage/kkm_last_doc_name [16:33:53]save OK [16:33:53]Clear old archive folders... [16:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:33:53]tlvbuf is 014F6930 [16:33:53]SAM_PROTO_ClearQueue [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 09 00 00 [16:33:53]Write to MH i2c: E2 08 00 78 01 80 09 00 00 00 00 00 00 EB [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_ClearQueue done [16:33:53]KKMCreateOFDPacket [16:33:53]OFDProtocolAddRootSTLVToBuf [16:33:53]FM_MakeSignedData [16:33:53]FM_MakeSignedData [16:33:53]SAM_PROTO_SignData [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 01 02 [16:33:53]Write to MH i2c: E2 08 00 79 01 80 0D 01 02 00 00 00 00 F3 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=255 [16:33:53]MH_SAM_APDU [16:33:53]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 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 5A 00 00 00 F4 03 04 00 70 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:33:53]Write to MH i2c: E2 02 01 7A 01 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 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 5A 00 00 00 F4 03 04 00 70 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5E [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=53 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A1 7B 00 00 35 04 06 00 40 E0 9F 45 8B 03 [16:33:53]Write to MH i2c: E2 38 00 7B 01 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A1 7B 00 00 35 04 06 00 40 E0 9F 45 8B 03 00 00 A0 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 7B 01 00 90 00 F0 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 03 02 [16:33:53]Write to MH i2c: E2 08 00 7C 01 80 0D 03 02 00 00 00 00 F8 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0B 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0B 00 7C 01 00 2A DE B4 A4 6E 5E B0 A6 90 00 7B [16:33:53]RAPDU: 2A DE B4 A4 6E 5E B0 A6 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_SignData done [16:33:53]FM_MakeSignedData done [16:33:53]CreateOFDProtocolMessage [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 11 00 00 [16:33:53]Write to MH i2c: E2 08 00 7D 01 80 11 00 00 00 00 00 00 F8 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 7D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 53 [16:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:33:53]wFMCommunicate OK [16:33:53]CreateOFDProtocolMessage done [16:33:53]OFDSenderStorePacket 31649 [16:33:53]StoreOFDPacket docnum=31649 [16:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 9E E8 32 01 B6 1C 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 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 5A 00 00 00 F4 03 04 00 70 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A1 7B 00 00 35 04 06 00 40 E0 9F 45 8B 03 2A DE B4 A4 6E 5E B0 A6 [16:33:53]CheckFolder [16:33:53]dirname=/storage/ofd_packets [16:33:53]CheckFolder done [16:33:53]ProducePacketName [16:33:53]name=ofd_packets/00031649 [16:33:53]NVStorageSaveData ofd_packets/00031649 [16:33:53]File name is /storage/ofd_packets/00031649 [16:33:53]Write 344 bytes [16:33:53]NVStorageSaveData done [16:33:53]OFDSenderStorePacket done [16:33:53]KKMCreateOFDPacket done [16:33:53]NVStorageSaveData kkm_last_timestamp [16:33:53]File name is /storage/kkm_last_timestamp [16:33:53]Write 4 bytes [16:33:53]NVStorageSaveData done [16:33:53]ExternCall_PrintAddStr [16:33:53]wPrintStart [16:33:53]Write to MH i2c: 01 00 00 7E 01 7F [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 07 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [16:33:53]RasterBufferAndPrint [16:33:53]line Счет N : (3)214231 [16:33:53]line ИНН: 02508201610067 [16:33:53]OFD Sender: Processing packet 31649 [packets to send 6, broken 5] [16:33:53]ProducePacketName [16:33:53]name=ofd_packets/00031649 [16:33:53]OFD Sender: To server: pG, [16:33:53]CommunicateWithHost lk.salyk.kg:30040 [16:33:53]ConnectInit lk.salyk.kg [16:33:53]line Контрольно-Кассовый Чек [16:33:53]line ПРОДАЖА [16:33:53]line Товар: 4600682557456 [16:33:53]line Напиток FLash up energy эн ж/б 0,5/0,45л [16:33:53]line 1.000 * 85.00 [16:33:53]line = 85.00 [16:33:53]line НДС 12% НСП 1% [16:33:53]line > о реализуемом товаре [16:33:53]line ИТОГО: 85.00 [16:33:53]line НСП 1% : 0.75 [16:33:53]line НДС 12% : 9.03 [16:33:53]line Наличными: 85.00 [16:33:53]line Безнал.: 0.00 [16:33:53]line Место: АЗС № 140 "Партнер Нефть" [16:33:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:33:53]line СНО: Общий режим [16:33:53]line Чек 90 15.07.2024 16:33 [16:33:53]line Смена: 370 ФФД: 1.0 [16:33:53]line ЗНМ: 0300000189 [16:33:53]line РНМ: 0000000000098025 [16:33:53]line Версия ККМ: 001 [16:33:53]line ФМ: 0000000000965389 [16:33:53]line ФД: 31649 [16:33:53]line ФПД: 71333488986883 [16:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163352&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31649&fm=71333488986883&tin=02508201610067®Number=0000000000098025&sum=8500 [16:33:53]line 0 [16:33:53]written 0, free lines is 4095 [16:33:54]Connected sock=10 [16:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 9E E8 32 01 B6 1C 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 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 5A 00 00 00 F4 03 04 00 70 4F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A1 7B 00 00 35 04 06 00 40 E0 9F 45 8B 03 2A DE B4 A4 6E 5E B0 A6 [16:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 42 89 47 00 38 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A1 7B 00 00 F4 03 04 00 7F FB 94 66 B6 04 01 00 00 68 65 36 0F 58 0F 99 AE [16:33:54]CommunicateWithHost err = 0 [16:33:54]CheckOFDResponse [16:33:54]1017 (14) - 77093643461234 [16:33:54]1041 (16) - 0000000000965389 [16:33:54]1040 (4) - 31649 [16:33:54]1012 (4) - 15.07.2024 10:35 [16:33:54]1206 (1) - 0 [16:33:54]OFD Sender: Remove packet 31649 [16:33:54]ProducePacketName [16:33:54]name=ofd_packets/00031649 [16:33:54]NVStorageDeleteData [16:33:54]Write to MH i2c: 01 00 00 A7 01 A8 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 05 0D C1 [16:33:54]RasterBufferAndPrint [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]written 0, free lines is 3343 [16:33:54]MH_Cut [16:33:54]Write to MH i2c: D1 01 00 AE 01 01 81 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 01 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 01 00 AE 01 00 80 [16:33:54]Write to MH i2c: 01 00 00 AF 01 B0 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]OFD Sender: No OFD packet to send [16:33:55]*** Cut start [16:33:55]*** Partial cut [16:33:55]*** CUTSNS_PIN = 1 [16:33:55]*** CUTSNS_PIN = 0 [16:33:55]*** Brake cut motor [16:33:55]Read from MH i2c: 01 [16:33:55]MH_I2C_Read... [16:33:55]*** Stop cut motor [16:33:55]*** Cut end [16:33:55]Read from MH i2c: 01 07 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [16:33:55]process_action close_receipt done [16:33:55]requested_data is exist [16:33:55]produce_requested_data [16:33:55]requested_item fm.sn is exist - process it [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 11 00 00 [16:33:55]Write to MH i2c: E2 08 00 B0 01 80 11 00 00 00 00 00 00 2B [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 86 [16:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:33:55]wFMCommunicate OK [16:33:55]requested_item fd.num is exist - process it [16:33:55]SAM_PROTO_GetFieldsCounters [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 13 00 00 [16:33:55]Write to MH i2c: E2 08 00 B1 01 80 13 00 00 00 00 00 00 2E [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 62 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 62 00 B1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A1 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [16:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A1 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_GetFieldsCounters done [16:33:55]requested_item shift.num is exist - process it [16:33:55]requested_item shift.opened is exist - process it [16:33:55]req_shift_opened [16:33:55]FM_GetShiftState [16:33:55]SAM_PROTO_GetShiftState [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 13 01 00 [16:33:55]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 23 [16:33:56]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetShiftState done [16:33:56]FM_GetShiftState done [16:33:56]req_shift_opened done [16:33:56]requested_item shift.open_date is exist - process it [16:33:56]req_shift_open_date [16:33:56]req_shift_open_date done [16:33:56]produce_requested_data done [16:33:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31649,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:33:56]process_action_free close_receipt [16:33:56]json_value_free [16:33:56]json_value_free done [16:33:56]process_json_proto returns [16:33:56]Send response to host [16:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31649,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:33:56]free response buf [16:33:56]execute_script done [16:33:56]execute_script returns [16:33:56]free content buf [16:33:56]Sock 9.Close socket [16:33:56]Sock 9.Thread stoped [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]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:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:19]accept exits with 7 [16:50:19]New connection [16:50:19]New thread 3066821988 created [16:50:19]Thread 3066965348 joined [16:50:19]Waiting for new connection... [16:50:19] Sock 7.Parse request [16:50:19]Sock 7.Check first char [16:50:19]Sock 7.First char is OK [16:50:19]request: POST /json_proto HTTP/1.0 [16:50:19]Method: POST [16:50:19]URL: /json_proto [16:50:19]Method is POST - this is cgi request [16:50:19]url: /json_proto [16:50:19]query_string will be loaded in cgi processing [16:50:19]execute_cgi json_proto POST (null) [16:50:19]execute_cgi path=json_proto method=POST [16:50:19]POST find Content-Length [16:50:19]Host: 172.17.39.68:8080 [16:50:19]Content-Length: 644 [16:50:19]Content-Type: application/json [16:50:19] [16:50:19]POST finish read [16:50:19]Found Content-Length = 644 [16:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214232", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]execute_script... [16:50:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214232", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]POST & json_proto [16:50:19]process_json_proto [16:50:19]json parsed OK: [16:50:19]protocol is kg_v1.0 [16:50:19]action value=close_receipt [16:50:19]process_action close_receipt [16:50:19]cmd_close_receipt [16:50:19]MH_GetDate [16:50:19]Write to MH i2c: F0 00 00 B3 01 A3 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 B3 01 00 4B 53 95 66 D6 48 95 66 5E [16:50:19]GetLastDocTimeStamp 1721061232 [16:50:19]current date 1721062219 [16:50:19]FM_GetShiftState [16:50:19]SAM_PROTO_GetShiftState [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 01 00 [16:50:19]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 25 [16:50:19]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetShiftState done [16:50:19]FM_GetShiftState done [16:50:19]opened in 1721001862 [16:50:19]opened+sec_in_day 1721088262 [16:50:19]quantity*price = 11500 [16:50:19]sum+1 = 11501 [16:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 91 15.07.2024 16:50 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31650 ФПД: 225099007033152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165019&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31650&fm=225099007033152&tin=02508201610067®Number=0000000000098025&sum=11500 0 [16:50:20]StoreToDocumentArchive [16:50:20]shift 370 fd 31650 [16:50:20]save to /storage/0370/doc_00031650 [16:50:20]save last doc name /storage/0370/doc_00031650 to /storage/kkm_last_doc_name [16:50:20]save OK [16:50:20]Clear old archive folders... [16:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:50:20]tlvbuf is 0149ADF0 [16:50:20]SAM_PROTO_ClearQueue [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 09 00 00 [16:50:20]Write to MH i2c: E2 08 00 C1 01 80 09 00 00 00 00 00 00 34 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 C1 01 00 90 00 36 [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]SAM_PROTO_ClearQueue done [16:50:20]KKMCreateOFDPacket [16:50:20]OFDProtocolAddRootSTLVToBuf [16:50:20]FM_MakeSignedData [16:50:20]FM_MakeSignedData [16:50:20]SAM_PROTO_SignData [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 0D 01 02 [16:50:20]Write to MH i2c: E2 08 00 C2 01 80 0D 01 02 00 00 00 00 3C [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]wFMCommunicate request_size=255 [16:50:20]MH_SAM_APDU [16:50:20]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 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 EC 2C 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 4B 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [16:50:20]Write to MH i2c: E2 02 01 C3 01 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 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 EC 2C 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 4B 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 E2 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]wFMCommunicate request_size=39 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A2 7B 00 00 35 04 06 00 CC B9 F2 5A 7F 40 [16:50:20]Write to MH i2c: E2 2A 00 C4 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A2 7B 00 00 35 04 06 00 CC B9 F2 5A 7F 40 00 00 AF [16:50:20]OFD Sender: No OFD packet to send [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 0D 03 02 [16:50:20]Write to MH i2c: E2 08 00 C5 01 80 0D 03 02 00 00 00 00 41 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 0B 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 0B 00 C5 01 00 1F 45 14 8A 0E 1F 2C 8D 90 00 2A [16:50:20]RAPDU: 1F 45 14 8A 0E 1F 2C 8D 90 00 [16:50:20]wFMCommunicate OK [16:50:20]SAM_PROTO_SignData done [16:50:20]FM_MakeSignedData done [16:50:20]CreateOFDProtocolMessage [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 11 00 00 [16:50:20]Write to MH i2c: E2 08 00 C6 01 80 11 00 00 00 00 00 00 41 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 17 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 17 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9C [16:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:50:20]wFMCommunicate OK [16:50:20]CreateOFDProtocolMessage done [16:50:20]OFDSenderStorePacket 31650 [16:50:20]StoreOFDPacket docnum=31650 [16:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 66 35 24 01 78 D5 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 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 EC 2C 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 4B 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A2 7B 00 00 35 04 06 00 CC B9 F2 5A 7F 40 1F 45 14 8A 0E 1F 2C 8D [16:50:20]CheckFolder [16:50:20]dirname=/storage/ofd_packets [16:50:20]CheckFolder done [16:50:20]ProducePacketName [16:50:20]name=ofd_packets/00031650 [16:50:20]NVStorageSaveData ofd_packets/00031650 [16:50:20]File name is /storage/ofd_packets/00031650 [16:50:20]Write 330 bytes [16:50:20]NVStorageSaveData done [16:50:20]OFDSenderStorePacket done [16:50:20]KKMCreateOFDPacket done [16:50:20]NVStorageSaveData kkm_last_timestamp [16:50:20]File name is /storage/kkm_last_timestamp [16:50:20]Write 4 bytes [16:50:20]NVStorageSaveData done [16:50:20]ExternCall_PrintAddStr [16:50:20]wPrintStart [16:50:20]Write to MH i2c: 01 00 00 C7 01 C8 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: 01 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: 01 07 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 FF 0F DD [16:50:20]RasterBufferAndPrint [16:50:20]line Счет N : (3)214232 [16:50:20]line ИНН: 02508201610067 [16:50:20]line Контрольно-Кассовый Чек [16:50:20]line ПРОДАЖА [16:50:20]line Товар: 2000036210013 [16:50:20]line Кофе Капучино (GABB TRADE) [16:50:20]line 1.000 * 115.00 [16:50:20]line = 115.00 [16:50:20]line НДС 12% НСП 1% [16:50:20]line > о реализуемом товаре [16:50:20]line ИТОГО: 115.00 [16:50:20]line НСП 1% : 1.02 [16:50:20]line НДС 12% : 12.21 [16:50:20]line Наличными: 115.00 [16:50:20]line Безнал.: 0.00 [16:50:20]line Место: АЗС № 140 "Партнер Нефть" [16:50:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:50:20]line СНО: Общий режим [16:50:20]line Чек 91 15.07.2024 16:50 [16:50:20]line Смена: 370 ФФД: 1.0 [16:50:20]line ЗНМ: 0300000189 [16:50:20]line РНМ: 0000000000098025 [16:50:20]line Версия ККМ: 001 [16:50:20]line ФМ: 0000000000965389 [16:50:20]line ФД: 31650 [16:50:20]line ФПД: 225099007033152 [16:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165019&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31650&fm=225099007033152&tin=02508201610067®Number=0000000000098025&sum=11500 [16:50:21]OFD Sender: Processing packet 31650 [packets to send 6, broken 5] [16:50:21]ProducePacketName [16:50:21]name=ofd_packets/00031650 [16:50:21]OFD Sender: To server: pG, [16:50:21]CommunicateWithHost lk.salyk.kg:30040 [16:50:21]ConnectInit lk.salyk.kg [16:50:21]line 0 [16:50:21]written 0, free lines is 4095 [16:50:21]Connected sock=10 [16:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 66 35 24 01 78 D5 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 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 EC 2C 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 4B 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A2 7B 00 00 35 04 06 00 CC B9 F2 5A 7F 40 1F 45 14 8A 0E 1F 2C 8D [16:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 63 A4 47 00 97 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A2 7B 00 00 F4 03 04 00 5A FF 94 66 B6 04 01 00 00 7E 90 8B FD C1 CA 3E BA [16:50:21]CommunicateWithHost err = 0 [16:50:21]CheckOFDResponse [16:50:21]1017 (14) - 77093643461234 [16:50:21]1041 (16) - 0000000000965389 [16:50:21]1040 (4) - 31650 [16:50:21]1012 (4) - 15.07.2024 10:52 [16:50:21]1206 (1) - 0 [16:50:21]OFD Sender: Remove packet 31650 [16:50:21]ProducePacketName [16:50:21]name=ofd_packets/00031650 [16:50:21]NVStorageDeleteData [16:50:21]Write to MH i2c: 01 00 00 EF 01 F0 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 06 0D 0A [16:50:21]RasterBufferAndPrint [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]written 0, free lines is 3340 [16:50:21]MH_Cut [16:50:21]Write to MH i2c: D1 01 00 F6 01 01 C9 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 01 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 01 00 F6 01 00 C8 [16:50:21]Write to MH i2c: 01 00 00 F7 01 F8 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]OFD Sender: No OFD packet to send [16:50:22]*** Cut start [16:50:22]*** Partial cut [16:50:22]*** CUTSNS_PIN = 1 [16:50:22]*** CUTSNS_PIN = 0 [16:50:22]*** Brake cut motor [16:50:22]Read from MH i2c: 01 [16:50:22]MH_I2C_Read... [16:50:22]*** Stop cut motor [16:50:22]*** Cut end [16:50:22]Read from MH i2c: 01 07 00 [16:50:22]MH_I2C_Read... [16:50:22]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [16:50:22]process_action close_receipt done [16:50:22]requested_data is exist [16:50:22]produce_requested_data [16:50:22]requested_item fm.sn is exist - process it [16:50:22]wFMCommunicate request_size=4 [16:50:22]MH_SAM_APDU [16:50:22]CAPDU: 80 11 00 00 [16:50:22]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [16:50:22]Write i2c OK [16:50:22]MH_I2C_Read... [16:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:22]Read from MH i2c: E2 [16:50:22]MH_I2C_Read... [16:50:22]Read from MH i2c: E2 17 00 [16:50:22]MH_I2C_Read... [16:50:22]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CE [16:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:50:22]wFMCommunicate OK [16:50:22]requested_item fd.num is exist - process it [16:50:22]SAM_PROTO_GetFieldsCounters [16:50:22]wFMCommunicate request_size=4 [16:50:22]MH_SAM_APDU [16:50:22]CAPDU: 80 13 00 00 [16:50:22]Write to MH i2c: E2 08 00 F9 01 80 13 00 00 00 00 00 00 76 [16:50:22]Write i2c OK [16:50:22]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 62 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 62 00 F9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A2 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A2 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:23]wFMCommunicate OK [16:50:23]SAM_PROTO_GetFieldsCounters done [16:50:23]requested_item shift.num is exist - process it [16:50:23]requested_item shift.opened is exist - process it [16:50:23]req_shift_opened [16:50:23]FM_GetShiftState [16:50:23]SAM_PROTO_GetShiftState [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 13 01 00 [16:50:23]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 0E 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6B [16:50:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:50:23]wFMCommunicate OK [16:50:23]SAM_PROTO_GetShiftState done [16:50:23]FM_GetShiftState done [16:50:23]req_shift_opened done [16:50:23]requested_item shift.open_date is exist - process it [16:50:23]req_shift_open_date [16:50:23]req_shift_open_date done [16:50:23]produce_requested_data done [16:50:23]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31650,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:50:23]process_action_free close_receipt [16:50:23]json_value_free [16:50:23]json_value_free done [16:50:23]process_json_proto returns [16:50:23]Send response to host [16:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31650,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:50:23]free response buf [16:50:23]execute_script done [16:50:23]execute_script returns [16:50:23]free content buf [16:50:23]Sock 7.Close socket [16:50:23]Sock 7.Thread stoped [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:24]accept exits with 9 [16:52:24]New connection [16:52:24]New thread 3066965348 created [16:52:24]Thread 3066821988 joined [16:52:24]Waiting for new connection... [16:52:24] Sock 9.Parse request [16:52:24]Sock 9.Check first char [16:52:24]Sock 9.First char is OK [16:52:24]request: POST /json_proto HTTP/1.0 [16:52:24]Method: POST [16:52:24]URL: /json_proto [16:52:24]Method is POST - this is cgi request [16:52:24]url: /json_proto [16:52:24]query_string will be loaded in cgi processing [16:52:24]execute_cgi json_proto POST (null) [16:52:24]execute_cgi path=json_proto method=POST [16:52:24]POST find Content-Length [16:52:24]Host: 172.17.39.68:8080 [16:52:24]Content-Length: 604 [16:52:24]Content-Type: application/json [16:52:24] [16:52:24]POST finish read [16:52:24]Found Content-Length = 604 [16:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214233", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:24]execute_script... [16:52: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)214233", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:24]POST & json_proto [16:52:24]process_json_proto [16:52:24]json parsed OK: [16:52:24]protocol is kg_v1.0 [16:52:24]action value=close_receipt [16:52:24]process_action close_receipt [16:52:24]cmd_close_receipt [16:52:24]MH_GetDate [16:52:24]Write to MH i2c: F0 00 00 FB 01 EB [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: F0 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: F0 09 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: F0 09 00 FB 01 00 C8 53 95 66 D6 48 95 66 23 [16:52:24]GetLastDocTimeStamp 1721062219 [16:52:24]current date 1721062344 [16:52:24]FM_GetShiftState [16:52:24]SAM_PROTO_GetShiftState [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 13 01 00 [16:52:24]Write to MH i2c: E2 08 00 FC 01 80 13 01 00 00 00 00 00 7A [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0E 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0E 00 FC 01 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6D [16:52:24]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:52:24]wFMCommunicate OK [16:52:24]SAM_PROTO_GetShiftState done [16:52:24]FM_GetShiftState done [16:52:24]opened in 1721001862 [16:52:24]opened+sec_in_day 1721088262 [16:52:24]quantity*price = 5500 [16:52:24]sum+1 = 5501 [16:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 92 15.07.2024 16:52 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31651 ФПД: 231041880380298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31651&fm=231041880380298&tin=02508201610067®Number=0000000000098025&sum=5500 0 [16:52:25]StoreToDocumentArchive [16:52:25]shift 370 fd 31651 [16:52:25]save to /storage/0370/doc_00031651 [16:52:25]save last doc name /storage/0370/doc_00031651 to /storage/kkm_last_doc_name [16:52:25]save OK [16:52:25]Clear old archive folders... [16:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:52:25]tlvbuf is 01492CB0 [16:52:25]SAM_PROTO_ClearQueue [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 09 00 00 [16:52:25]Write to MH i2c: E2 08 00 09 02 80 09 00 00 00 00 00 00 7D [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [16:52:25]RAPDU: 90 00 [16:52:25]wFMCommunicate OK [16:52:25]SAM_PROTO_ClearQueue done [16:52:25]KKMCreateOFDPacket [16:52:25]OFDProtocolAddRootSTLVToBuf [16:52:25]FM_MakeSignedData [16:52:25]FM_MakeSignedData [16:52:25]SAM_PROTO_SignData [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 0D 01 02 [16:52:25]Write to MH i2c: E2 08 00 0A 02 80 0D 01 02 00 00 00 00 85 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [16:52:25]RAPDU: 90 00 [16:52:25]wFMCommunicate OK [16:52:25]wFMCommunicate request_size=255 [16:52:25]MH_SAM_APDU [16:52:25]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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C8 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [16:52:25]Write to MH i2c: E2 02 01 0B 02 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C8 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 C3 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [16:52:25]RAPDU: 90 00 [16:52:25]wFMCommunicate OK [16:52:25]wFMCommunicate request_size=34 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A3 7B 00 00 35 04 06 00 D2 21 A1 35 53 8A [16:52:25]Write to MH i2c: E2 25 00 0C 02 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A3 7B 00 00 35 04 06 00 D2 21 A1 35 53 8A 00 00 15 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [16:52:25]RAPDU: 90 00 [16:52:25]wFMCommunicate OK [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 0D 03 02 [16:52:25]Write to MH i2c: E2 08 00 0D 02 80 0D 03 02 00 00 00 00 8A [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 0B 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 0B 00 0D 02 00 89 49 6B 68 34 49 43 2F 90 00 1F [16:52:25]RAPDU: 89 49 6B 68 34 49 43 2F 90 00 [16:52:25]wFMCommunicate OK [16:52:25]SAM_PROTO_SignData done [16:52:25]FM_MakeSignedData done [16:52:25]CreateOFDProtocolMessage [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 11 00 00 [16:52:25]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 17 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [16:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:52:25]wFMCommunicate OK [16:52:25]CreateOFDProtocolMessage done [16:52:25]OFDSenderStorePacket 31651 [16:52:25]StoreOFDPacket docnum=31651 [16:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 18 B0 1F 01 8A F3 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C8 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A3 7B 00 00 35 04 06 00 D2 21 A1 35 53 8A 89 49 6B 68 34 49 43 2F [16:52:25]CheckFolder [16:52:25]dirname=/storage/ofd_packets [16:52:25]CheckFolder done [16:52:25]ProducePacketName [16:52:25]name=ofd_packets/00031651 [16:52:25]NVStorageSaveData ofd_packets/00031651 [16:52:25]File name is /storage/ofd_packets/00031651 [16:52:25]Write 325 bytes [16:52:25]NVStorageSaveData done [16:52:25]OFDSenderStorePacket done [16:52:25]KKMCreateOFDPacket done [16:52:25]NVStorageSaveData kkm_last_timestamp [16:52:25]File name is /storage/kkm_last_timestamp [16:52:25]Write 4 bytes [16:52:25]NVStorageSaveData done [16:52:25]ExternCall_PrintAddStr [16:52:25]wPrintStart [16:52:25]Write to MH i2c: 01 00 00 0F 02 11 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [16:52:25]RasterBufferAndPrint [16:52:25]line Счет N : (3)214233 [16:52:25]line ИНН: 02508201610067 [16:52:25]line Контрольно-Кассовый Чек [16:52:25]line ПРОДАЖА [16:52:25]line Товар: 4870112003925 [16:52:25]line Конд ULKER-Albeni 40gr (6*24) [16:52:25]line 1.000 * 55.00 [16:52:25]line = 55.00 [16:52:25]line НДС 12% НСП 1% [16:52:25]line > о реализуемом товаре [16:52:25]line ИТОГО: 55.00 [16:52:25]line НСП 1% : 0.49 [16:52:25]line НДС 12% : 5.84 [16:52:25]line Наличными: 55.00 [16:52:25]line Безнал.: 0.00 [16:52:25]line Место: АЗС № 140 "Партнер Нефть" [16:52:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:52:25]line СНО: Общий режим [16:52:25]line Чек 92 15.07.2024 16:52 [16:52:25]line Смена: 370 ФФД: 1.0 [16:52:25]line ЗНМ: 0300000189 [16:52:25]line РНМ: 0000000000098025 [16:52:25]line Версия ККМ: 001 [16:52:25]line ФМ: 0000000000965389 [16:52:25]line ФД: 31651 [16:52:25]line ФПД: 231041880380298 [16:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31651&fm=231041880380298&tin=02508201610067®Number=0000000000098025&sum=5500 [16:52:26]line 0 [16:52:26]OFD Sender: Processing packet 31651 [packets to send 6, broken 5] [16:52:26]ProducePacketName [16:52:26]name=ofd_packets/00031651 [16:52:26]OFD Sender: To server: pG, [16:52:26]CommunicateWithHost lk.salyk.kg:30040 [16:52:26]ConnectInit lk.salyk.kg [16:52:26]written 0, free lines is 4095 [16:52:26]Connected sock=10 [16:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 18 B0 1F 01 8A F3 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C8 53 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A3 7B 00 00 35 04 06 00 D2 21 A1 35 53 8A 89 49 6B 68 34 49 43 2F [16:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A1 CA 47 00 2A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A3 7B 00 00 F4 03 04 00 D8 FF 94 66 B6 04 01 00 00 DD 5A 4B 4A 14 45 D6 96 [16:52:26]CommunicateWithHost err = 0 [16:52:26]CheckOFDResponse [16:52:26]1017 (14) - 77093643461234 [16:52:26]1041 (16) - 0000000000965389 [16:52:26]1040 (4) - 31651 [16:52:26]1012 (4) - 15.07.2024 10:54 [16:52:26]1206 (1) - 0 [16:52:26]OFD Sender: Remove packet 31651 [16:52:26]ProducePacketName [16:52:26]name=ofd_packets/00031651 [16:52:26]NVStorageDeleteData [16:52:26]Write to MH i2c: 01 00 00 37 02 39 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: 01 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: 01 07 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 04 0D 51 [16:52:26]RasterBufferAndPrint [16:52:26]line [16:52:26]line [16:52:26]line [16:52:26]line [16:52:26]line [16:52:26]written 0, free lines is 3338 [16:52:26]MH_Cut [16:52:26]Write to MH i2c: D1 01 00 3E 02 01 12 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: D1 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: D1 01 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: D1 01 00 3E 02 00 11 [16:52:26]Write to MH i2c: 01 00 00 3F 02 41 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:27]OFD Sender: No OFD packet to send [16:52:27]*** Cut start [16:52:27]*** Partial cut [16:52:27]*** CUTSNS_PIN = 1 [16:52:27]*** CUTSNS_PIN = 0 [16:52:27]*** Brake cut motor [16:52:27]Read from MH i2c: 01 [16:52:28]MH_I2C_Read... [16:52:28]*** Stop cut motor [16:52:28]*** Cut end [16:52:28]Read from MH i2c: 01 07 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [16:52:28]process_action close_receipt done [16:52:28]requested_data is exist [16:52:28]produce_requested_data [16:52:28]requested_item fm.sn is exist - process it [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 11 00 00 [16:52:28]Write to MH i2c: E2 08 00 40 02 80 11 00 00 00 00 00 00 BC [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 17 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 17 00 40 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 17 [16:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:52:28]wFMCommunicate OK [16:52:28]requested_item fd.num is exist - process it [16:52:28]SAM_PROTO_GetFieldsCounters [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 13 00 00 [16:52:28]Write to MH i2c: E2 08 00 41 02 80 13 00 00 00 00 00 00 BF [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 62 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 62 00 41 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A3 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A3 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:28]wFMCommunicate OK [16:52:28]SAM_PROTO_GetFieldsCounters done [16:52:28]requested_item shift.num is exist - process it [16:52:28]requested_item shift.opened is exist - process it [16:52:28]req_shift_opened [16:52:28]FM_GetShiftState [16:52:28]SAM_PROTO_GetShiftState [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 13 01 00 [16:52:28]Write to MH i2c: E2 08 00 42 02 80 13 01 00 00 00 00 00 C1 [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 0E 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 0E 00 42 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B4 [16:52:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:52:28]wFMCommunicate OK [16:52:28]SAM_PROTO_GetShiftState done [16:52:28]FM_GetShiftState done [16:52:28]req_shift_opened done [16:52:28]requested_item shift.open_date is exist - process it [16:52:28]req_shift_open_date [16:52:28]req_shift_open_date done [16:52:28]produce_requested_data done [16:52:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31651,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:52:28]process_action_free close_receipt [16:52:28]json_value_free [16:52:28]json_value_free done [16:52:28]process_json_proto returns [16:52:28]Send response to host [16:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31651,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:52:28]free response buf [16:52:28]execute_script done [16:52:28]execute_script returns [16:52:28]free content buf [16:52:28]Sock 9.Close socket [16:52:28]Sock 9.Thread stoped [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:25]accept exits with 7 [16:56:25]New connection [16:56:25]New thread 3066821988 created [16:56:25]Thread 3066965348 joined [16:56:25]Waiting for new connection... [16:56:25] Sock 7.Parse request [16:56:25]Sock 7.Check first char [16:56:25]Sock 7.First char is OK [16:56:25]request: POST /json_proto HTTP/1.0 [16:56:25]Method: POST [16:56:25]URL: /json_proto [16:56:25]Method is POST - this is cgi request [16:56:25]url: /json_proto [16:56:25]query_string will be loaded in cgi processing [16:56:25]execute_cgi json_proto POST (null) [16:56:25]execute_cgi path=json_proto method=POST [16:56:25]POST find Content-Length [16:56:25]Host: 172.17.39.68:8080 [16:56:25]Content-Length: 866 [16:56:25]Content-Type: application/json [16:56:25] [16:56:25]POST finish read [16:56:25]Found Content-Length = 866 [16:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214234", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:25]execute_script... [16:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214234", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:25]POST & json_proto [16:56:25]process_json_proto [16:56:25]json parsed OK: [16:56:25]protocol is kg_v1.0 [16:56:25]action value=close_receipt [16:56:25]process_action close_receipt [16:56:25]cmd_close_receipt [16:56:25]MH_GetDate [16:56:25]Write to MH i2c: F0 00 00 43 02 34 [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 09 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 09 00 43 02 00 B9 54 95 66 D6 48 95 66 5E [16:56:25]GetLastDocTimeStamp 1721062344 [16:56:25]current date 1721062585 [16:56:25]FM_GetShiftState [16:56:25]SAM_PROTO_GetShiftState [16:56:25]wFMCommunicate request_size=4 [16:56:25]MH_SAM_APDU [16:56:25]CAPDU: 80 13 01 00 [16:56:25]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:25]Read from MH i2c: E2 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0E 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B6 [16:56:25]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:56:25]wFMCommunicate OK [16:56:25]SAM_PROTO_GetShiftState done [16:56:25]FM_GetShiftState done [16:56:25]opened in 1721001862 [16:56:25]opened+sec_in_day 1721088262 [16:56:25]quantity*price = 8500 [16:56:25]sum+1 = 8501 [16:56:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329487 Напиток Pepsi 1,5л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 93 15.07.2024 16:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31652 ФПД: 91078715195801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165625&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31652&fm=91078715195801&tin=02508201610067®Number=0000000000098025&sum=26000 0 [16:56:26]StoreToDocumentArchive [16:56:26]shift 370 fd 31652 [16:56:26]save to /storage/0370/doc_00031652 [16:56:26]save last doc name /storage/0370/doc_00031652 to /storage/kkm_last_doc_name [16:56:26]save OK [16:56:26]Clear old archive folders... [16:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=370 [16:56:26]tlvbuf is B6DAB060 [16:56:26]SAM_PROTO_ClearQueue [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 09 00 00 [16:56:26]Write to MH i2c: E2 08 00 51 02 80 09 00 00 00 00 00 00 C5 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]SAM_PROTO_ClearQueue done [16:56:26]KKMCreateOFDPacket [16:56:26]OFDProtocolAddRootSTLVToBuf [16:56:26]FM_MakeSignedData [16:56:26]FM_MakeSignedData [16:56:26]SAM_PROTO_SignData [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 01 02 [16:56:26]Write to MH i2c: E2 08 00 52 02 80 0D 01 02 00 00 00 00 CD [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=255 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 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 [16:56:26]Write to MH i2c: E2 02 01 53 02 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 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 00 00 6E [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=129 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 02 02 7C 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 5D 00 00 00 F4 03 04 00 B9 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A4 7B 00 00 35 04 06 00 52 D5 EA 77 41 99 [16:56:26]Write to MH i2c: E2 84 00 54 02 80 0D 02 02 7C 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 5D 00 00 00 F4 03 04 00 B9 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A4 7B 00 00 35 04 06 00 52 D5 EA 77 41 99 00 00 27 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 03 02 [16:56:26]Write to MH i2c: E2 08 00 55 02 80 0D 03 02 00 00 00 00 D2 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 0B 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 0B 00 55 02 00 D9 6B F1 2A 0F C7 CF 7F 90 00 56 [16:56:26]RAPDU: D9 6B F1 2A 0F C7 CF 7F 90 00 [16:56:26]wFMCommunicate OK [16:56:26]SAM_PROTO_SignData done [16:56:26]FM_MakeSignedData done [16:56:26]CreateOFDProtocolMessage [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 11 00 00 [16:56:26]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2D [16:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:56:26]wFMCommunicate OK [16:56:26]CreateOFDProtocolMessage done [16:56:26]OFDSenderStorePacket 31652 [16:56:26]StoreOFDPacket docnum=31652 [16:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 86 01 00 00 13 49 7E 01 0D 1B 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 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 5D 00 00 00 F4 03 04 00 B9 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A4 7B 00 00 35 04 06 00 52 D5 EA 77 41 99 D9 6B F1 2A 0F C7 CF 7F [16:56:26]CheckFolder [16:56:26]dirname=/storage/ofd_packets [16:56:26]CheckFolder done [16:56:26]ProducePacketName [16:56:26]name=ofd_packets/00031652 [16:56:26]NVStorageSaveData ofd_packets/00031652 [16:56:26]File name is /storage/ofd_packets/00031652 [16:56:26]Write 420 bytes [16:56:26]NVStorageSaveData done [16:56:26]OFDSenderStorePacket done [16:56:26]KKMCreateOFDPacket done [16:56:26]NVStorageSaveData kkm_last_timestamp [16:56:26]File name is /storage/kkm_last_timestamp [16:56:26]Write 4 bytes [16:56:26]NVStorageSaveData done [16:56:26]ExternCall_PrintAddStr [16:56:26]wPrintStart [16:56:26]Write to MH i2c: 01 00 00 57 02 59 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: 01 [16:56:27]MH_I2C_Read... [16:56:27]OFD Sender: Processing packet 31652 [packets to send 6, broken 5] [16:56:27]ProducePacketName [16:56:27]name=ofd_packets/00031652 [16:56:27]OFD Sender: To server: pG, [16:56:27]CommunicateWithHost lk.salyk.kg:30040 [16:56:27]ConnectInit lk.salyk.kg [16:56:27]Read from MH i2c: 01 07 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [16:56:27]RasterBufferAndPrint [16:56:27]line Счет N : (3)214234 [16:56:27]line ИНН: 02508201610067 [16:56:27]line Контрольно-Кассовый Чек [16:56:27]line ПРОДАЖА [16:56:27]line Товар: 5449000014535 [16:56:27]line Напит Спрайт 0,33л [16:56:27]line 1.000 * 85.00 [16:56:27]line = 85.00 [16:56:27]line НДС 12% НСП 1% [16:56:27]line > о реализуемом товаре [16:56:27]line Товар: 4870002329487 [16:56:27]line Напиток Pepsi 1,5л [16:56:27]line 1.000 * 175.00 [16:56:27]line = 175.00 [16:56:27]line НДС 12% НСП 1% [16:56:27]line > о реализуемом товаре [16:56:27]line ИТОГО: 260.00 [16:56:27]line НСП 1% : 2.30 [16:56:27]line НДС 12% : 27.61 [16:56:27]line Наличными: 260.00 [16:56:27]line Безнал.: 0.00 [16:56:27]line Место: АЗС № 140 "Партнер Нефть" [16:56:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:56:27]line СНО: Общий режим [16:56:27]line Чек 93 15.07.2024 16:56 [16:56:27]line Смена: 370 ФФД: 1.0 [16:56:27]line ЗНМ: 0300000189 [16:56:27]line РНМ: 0000000000098025 [16:56:27]line Версия ККМ: 001 [16:56:27]line ФМ: 0000000000965389 [16:56:27]line ФД: 31652 [16:56:27]line ФПД: 91078715195801 [16:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165625&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31652&fm=91078715195801&tin=02508201610067®Number=0000000000098025&sum=26000 [16:56:27]line 0 [16:56:27]written 0, free lines is 4095 [16:56:27]Connected sock=10 [16:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 86 01 00 00 13 49 7E 01 0D 1B 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 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 5D 00 00 00 F4 03 04 00 B9 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A4 7B 00 00 35 04 06 00 52 D5 EA 77 41 99 D9 6B F1 2A 0F C7 CF 7F [16:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D6 E2 47 00 32 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A4 7B 00 00 F4 03 04 00 C9 00 95 66 B6 04 01 00 00 76 AA 32 38 B8 7A 46 53 [16:56:27]CommunicateWithHost err = 0 [16:56:27]CheckOFDResponse [16:56:27]1017 (14) - 77093643461234 [16:56:27]1041 (16) - 0000000000965389 [16:56:27]1040 (4) - 31652 [16:56:27]1012 (4) - 15.07.2024 10:58 [16:56:27]1206 (1) - 0 [16:56:27]OFD Sender: Remove packet 31652 [16:56:27]ProducePacketName [16:56:27]name=ofd_packets/00031652 [16:56:27]NVStorageDeleteData [16:56:27]Write to MH i2c: 01 00 00 85 02 87 [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 B6 0C 50 [16:56:27]RasterBufferAndPrint [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]written 0, free lines is 3259 [16:56:27]MH_Cut [16:56:27]Write to MH i2c: D1 01 00 8C 02 01 60 [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 01 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 01 00 8C 02 00 5F [16:56:27]Write to MH i2c: 01 00 00 8D 02 8F [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:28]OFD Sender: No OFD packet to send [16:56:28]*** Cut start [16:56:28]*** Partial cut [16:56:28]*** CUTSNS_PIN = 1 [16:56:28]*** CUTSNS_PIN = 0 [16:56:28]*** Brake cut motor [16:56:29]Read from MH i2c: 01 [16:56:29]MH_I2C_Read... [16:56:29]*** Stop cut motor [16:56:29]*** Cut end [16:56:29]Read from MH i2c: 01 07 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 FF 0F A4 [16:56:29]process_action close_receipt done [16:56:29]requested_data is exist [16:56:29]produce_requested_data [16:56:29]requested_item fm.sn is exist - process it [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 11 00 00 [16:56:29]Write to MH i2c: E2 08 00 8E 02 80 11 00 00 00 00 00 00 0A [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 17 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 17 00 8E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 65 [16:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:56:29]wFMCommunicate OK [16:56:29]requested_item fd.num is exist - process it [16:56:29]SAM_PROTO_GetFieldsCounters [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 13 00 00 [16:56:29]Write to MH i2c: E2 08 00 8F 02 80 13 00 00 00 00 00 00 0D [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 62 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 62 00 8F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A4 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A4 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_GetFieldsCounters done [16:56:29]requested_item shift.num is exist - process it [16:56:29]requested_item shift.opened is exist - process it [16:56:29]req_shift_opened [16:56:29]FM_GetShiftState [16:56:29]SAM_PROTO_GetShiftState [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 13 01 00 [16:56:29]Write to MH i2c: E2 08 00 90 02 80 13 01 00 00 00 00 00 0F [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 0E 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 0E 00 90 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 02 [16:56:29]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_GetShiftState done [16:56:29]FM_GetShiftState done [16:56:29]req_shift_opened done [16:56:29]requested_item shift.open_date is exist - process it [16:56:29]req_shift_open_date [16:56:29]req_shift_open_date done [16:56:29]produce_requested_data done [16:56:29]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31652,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:56:29]process_action_free close_receipt [16:56:29]json_value_free [16:56:29]json_value_free done [16:56:29]process_json_proto returns [16:56:29]Send response to host [16:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31652,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:56:29]free response buf [16:56:29]execute_script done [16:56:29]execute_script returns [16:56:29]free content buf [16:56:29]Sock 7.Close socket [16:56:29]Sock 7.Thread stoped [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:01]accept exits with 9 [16:57:01]New connection [16:57:01]New thread 3066965348 created [16:57:01]Thread 3066821988 joined [16:57:01]Waiting for new connection... [16:57:01] Sock 9.Parse request [16:57:01]Sock 9.Check first char [16:57:01]Sock 9.First char is OK [16:57:01]request: POST /json_proto HTTP/1.0 [16:57:01]Method: POST [16:57:01]URL: /json_proto [16:57:01]Method is POST - this is cgi request [16:57:01]url: /json_proto [16:57:01]query_string will be loaded in cgi processing [16:57:01]execute_cgi json_proto POST (null) [16:57:01]execute_cgi path=json_proto method=POST [16:57:01]POST find Content-Length [16:57:01]Host: 172.17.39.68:8080 [16:57:01]Content-Length: 803 [16:57:01]Content-Type: application/json [16:57:01] [16:57:01]POST finish read [16:57:01]Found Content-Length = 803 [16:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214235", "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 }]} ], "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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:01]execute_script... [16:57: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)214235", "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 }]} ], "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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:01]POST & json_proto [16:57:01]process_json_proto [16:57:01]json parsed OK: [16:57:01]protocol is kg_v1.0 [16:57:01]action value=close_receipt [16:57:01]process_action close_receipt [16:57:01]cmd_close_receipt [16:57:01]MH_GetDate [16:57:01]Write to MH i2c: F0 00 00 91 02 82 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 09 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 09 00 91 02 00 DE 54 95 66 D6 48 95 66 D1 [16:57:01]GetLastDocTimeStamp 1721062585 [16:57:01]current date 1721062622 [16:57:01]FM_GetShiftState [16:57:01]SAM_PROTO_GetShiftState [16:57:01]wFMCommunicate request_size=4 [16:57:01]MH_SAM_APDU [16:57:01]CAPDU: 80 13 01 00 [16:57:01]Write to MH i2c: E2 08 00 92 02 80 13 01 00 00 00 00 00 11 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 92 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 04 [16:57:02]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:57:02]wFMCommunicate OK [16:57:02]SAM_PROTO_GetShiftState done [16:57:02]FM_GetShiftState done [16:57:02]opened in 1721001862 [16:57:02]opened+sec_in_day 1721088262 [16:57:02]quantity*price = 56000 [16:57:02]sum+1 = 56001 [16:57:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 560.00 НСП 1% : 4.96 НДС 12% : 59.47 Наличными: 0.00 Безнал.: 560.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 94 15.07.2024 16:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31653 ФПД: 1690930624879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165702&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31653&fm=1690930624879&tin=02508201610067®Number=0000000000098025&sum=56000 0 [16:57:02]StoreToDocumentArchive [16:57:02]shift 370 fd 31653 [16:57:02]save to /storage/0370/doc_00031653 [16:57:02]save last doc name /storage/0370/doc_00031653 to /storage/kkm_last_doc_name [16:57:02]save OK [16:57:02]Clear old archive folders... [16:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:57:02]tlvbuf is 01474A60 [16:57:02]SAM_PROTO_ClearQueue [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 09 00 00 [16:57:02]Write to MH i2c: E2 08 00 9F 02 80 09 00 00 00 00 00 00 13 [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:02]Read from MH i2c: E2 03 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [16:57:02]RAPDU: 90 00 [16:57:02]wFMCommunicate OK [16:57:02]SAM_PROTO_ClearQueue done [16:57:02]KKMCreateOFDPacket [16:57:02]OFDProtocolAddRootSTLVToBuf [16:57:02]FM_MakeSignedData [16:57:02]FM_MakeSignedData [16:57:02]SAM_PROTO_SignData [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 0D 01 02 [16:57:02]Write to MH i2c: E2 08 00 A0 02 80 0D 01 02 00 00 00 00 1B [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 03 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [16:57:02]RAPDU: 90 00 [16:57:02]wFMCommunicate OK [16:57:02]wFMCommunicate request_size=255 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 0D 02 02 FA 03 00 1A 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 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 DE 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [16:57:02]Write to MH i2c: E2 02 01 A1 02 80 0D 02 02 FA 00 03 00 1A 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 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 DE 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 B1 [16:57:03]OFD Sender: No OFD packet to send [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 A1 02 00 90 00 17 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]wFMCommunicate request_size=41 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A5 7B 00 00 35 04 06 00 01 89 B3 51 B9 6F [16:57:03]Write to MH i2c: E2 2C 00 A2 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A5 7B 00 00 35 04 06 00 01 89 B3 51 B9 6F 00 00 CB [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 A2 02 00 90 00 18 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 03 02 [16:57:03]Write to MH i2c: E2 08 00 A3 02 80 0D 03 02 00 00 00 00 20 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 0B 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 0B 00 A3 02 00 ED 45 95 41 4E 23 87 6E 90 00 8F [16:57:03]RAPDU: ED 45 95 41 4E 23 87 6E 90 00 [16:57:03]wFMCommunicate OK [16:57:03]SAM_PROTO_SignData done [16:57:03]FM_MakeSignedData done [16:57:03]CreateOFDProtocolMessage [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 11 00 00 [16:57:03]Write to MH i2c: E2 08 00 A4 02 80 11 00 00 00 00 00 00 20 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 17 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 17 00 A4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7B [16:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:57:03]wFMCommunicate OK [16:57:03]CreateOFDProtocolMessage done [16:57:03]OFDSenderStorePacket 31653 [16:57:03]StoreOFDPacket docnum=31653 [16:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 F0 40 26 01 B6 30 5A 03 01 00 03 00 1A 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 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 DE 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A5 7B 00 00 35 04 06 00 01 89 B3 51 B9 6F ED 45 95 41 4E 23 87 6E [16:57:03]CheckFolder [16:57:03]dirname=/storage/ofd_packets [16:57:03]CheckFolder done [16:57:03]ProducePacketName [16:57:03]name=ofd_packets/00031653 [16:57:03]NVStorageSaveData ofd_packets/00031653 [16:57:03]File name is /storage/ofd_packets/00031653 [16:57:03]Write 332 bytes [16:57:03]NVStorageSaveData done [16:57:03]OFDSenderStorePacket done [16:57:03]KKMCreateOFDPacket done [16:57:03]NVStorageSaveData kkm_last_timestamp [16:57:03]File name is /storage/kkm_last_timestamp [16:57:03]Write 4 bytes [16:57:03]NVStorageSaveData done [16:57:03]ExternCall_PrintAddStr [16:57:03]wPrintStart [16:57:03]Write to MH i2c: 01 00 00 A5 02 A7 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 07 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [16:57:03]RasterBufferAndPrint [16:57:03]line Счет N : (3)214235 [16:57:03]line ИНН: 02508201610067 [16:57:03]line Контрольно-Кассовый Чек [16:57:03]line ПРОДАЖА [16:57:03]line Товар: 4700003150936 [16:57:03]line Новая Водка Organic 40% 0,48л [16:57:03]line 1.000 * 560.00 [16:57:03]line = 560.00 [16:57:03]line НДС 12% НСП 1% [16:57:03]line > о реализуемом товаре [16:57:03]line ИТОГО: 560.00 [16:57:03]line НСП 1% : 4.96 [16:57:03]line НДС 12% : 59.47 [16:57:03]line Наличными: 0.00 [16:57:03]line Безнал.: 560.00 [16:57:03]line Место: АЗС № 140 "Партнер Нефть" [16:57:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:57:03]line СНО: Общий режим [16:57:03]line Чек 94 15.07.2024 16:57 [16:57:03]line Смена: 370 ФФД: 1.0 [16:57:03]line ЗНМ: 0300000189 [16:57:03]line РНМ: 0000000000098025 [16:57:03]line Версия ККМ: 001 [16:57:03]line Платежная система: O! деньги [16:57:03]line ФМ: 0000000000965389 [16:57:03]line ФД: 31653 [16:57:03]line ФПД: 1690930624879 [16:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165702&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31653&fm=1690930624879&tin=02508201610067®Number=0000000000098025&sum=56000 [16:57:03]line 0 [16:57:03]written 0, free lines is 4095 [16:57:03]OFD Sender: Processing packet 31653 [packets to send 6, broken 5] [16:57:03]ProducePacketName [16:57:03]name=ofd_packets/00031653 [16:57:03]OFD Sender: To server: pG, [16:57:03]CommunicateWithHost lk.salyk.kg:30040 [16:57:03]ConnectInit lk.salyk.kg [16:57:03]Connected sock=10 [16:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 F0 40 26 01 B6 30 5A 03 01 00 03 00 1A 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 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 DE 54 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A5 7B 00 00 35 04 06 00 01 89 B3 51 B9 6F ED 45 95 41 4E 23 87 6E [16:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8A C0 47 00 AF 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 39 36 35 33 38 39 10 04 04 00 A5 7B 00 00 F4 03 04 00 ED 00 95 66 B6 04 01 00 00 95 3F FD 82 BE 3A AB 8D [16:57:04]CommunicateWithHost err = 0 [16:57:04]CheckOFDResponse [16:57:04]1017 (14) - 77093643461234 [16:57:04]1041 (16) - 0000000000965389 [16:57:04]1040 (4) - 31653 [16:57:04]1012 (4) - 15.07.2024 10:58 [16:57:04]1206 (1) - 0 [16:57:04]OFD Sender: Remove packet 31653 [16:57:04]ProducePacketName [16:57:04]name=ofd_packets/00031653 [16:57:04]NVStorageDeleteData [16:57:04]Write to MH i2c: 01 00 00 D0 02 D2 [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 CE 0C B3 [16:57:04]RasterBufferAndPrint [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]written 0, free lines is 3284 [16:57:04]MH_Cut [16:57:04]Write to MH i2c: D1 01 00 D7 02 01 AB [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 01 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 01 00 D7 02 00 AA [16:57:04]Write to MH i2c: 01 00 00 D8 02 DA [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]OFD Sender: No OFD packet to send [16:57:04]*** Cut start [16:57:04]*** Partial cut [16:57:04]*** CUTSNS_PIN = 1 [16:57:04]*** CUTSNS_PIN = 0 [16:57:05]*** Brake cut motor [16:57:05]Read from MH i2c: 01 [16:57:05]MH_I2C_Read... [16:57:05]*** Stop cut motor [16:57:05]*** Cut end [16:57:05]Read from MH i2c: 01 07 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [16:57:05]process_action close_receipt done [16:57:05]requested_data is exist [16:57:05]produce_requested_data [16:57:05]requested_item fm.sn is exist - process it [16:57:05]wFMCommunicate request_size=4 [16:57:05]MH_SAM_APDU [16:57:05]CAPDU: 80 11 00 00 [16:57:05]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:05]Read from MH i2c: E2 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 17 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B0 [16:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:57:05]wFMCommunicate OK [16:57:05]requested_item fd.num is exist - process it [16:57:05]SAM_PROTO_GetFieldsCounters [16:57:05]wFMCommunicate request_size=4 [16:57:05]MH_SAM_APDU [16:57:05]CAPDU: 80 13 00 00 [16:57:05]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:05]Read from MH i2c: E2 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 62 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 62 00 DA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A5 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [16:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A5 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:05]wFMCommunicate OK [16:57:05]SAM_PROTO_GetFieldsCounters done [16:57:05]requested_item shift.num is exist - process it [16:57:05]requested_item shift.opened is exist - process it [16:57:05]req_shift_opened [16:57:05]FM_GetShiftState [16:57:05]SAM_PROTO_GetShiftState [16:57:05]wFMCommunicate request_size=4 [16:57:05]MH_SAM_APDU [16:57:05]CAPDU: 80 13 01 00 [16:57:05]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:05]Read from MH i2c: E2 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 0E 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 4D [16:57:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [16:57:05]wFMCommunicate OK [16:57:05]SAM_PROTO_GetShiftState done [16:57:05]FM_GetShiftState done [16:57:05]req_shift_opened done [16:57:05]requested_item shift.open_date is exist - process it [16:57:05]req_shift_open_date [16:57:05]req_shift_open_date done [16:57:05]produce_requested_data done [16:57:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31653,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [16:57:05]process_action_free close_receipt [16:57:05]json_value_free [16:57:05]json_value_free done [16:57:05]process_json_proto returns [16:57:05]Send response to host [16:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31653,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [16:57:05]free response buf [16:57:05]execute_script done [16:57:05]execute_script returns [16:57:05]free content buf [16:57:05]Sock 9.Close socket [16:57:05]Sock 9.Thread stoped [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:04]accept exits with 7 [17:32:04]New connection [17:32:04]New thread 3066821988 created [17:32:04]Thread 3066965348 joined [17:32:04]Waiting for new connection... [17:32:04] Sock 7.Parse request [17:32:04]Sock 7.Check first char [17:32:04]Sock 7.First char is OK [17:32:04]request: POST /json_proto HTTP/1.0 [17:32:04]Method: POST [17:32:04]URL: /json_proto [17:32:04]Method is POST - this is cgi request [17:32:04]url: /json_proto [17:32:04]query_string will be loaded in cgi processing [17:32:04]execute_cgi json_proto POST (null) [17:32:04]execute_cgi path=json_proto method=POST [17:32:04]POST find Content-Length [17:32:04]Host: 172.17.39.68:8080 [17:32:04]Content-Length: 663 [17:32:04]Content-Type: application/json [17:32:04] [17:32:04]POST finish read [17:32:04]Found Content-Length = 663 [17:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214236", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:04]execute_script... [17:32: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)214236", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:04]POST & json_proto [17:32:04]process_json_proto [17:32:04]json parsed OK: [17:32:04]protocol is kg_v1.0 [17:32:04]action value=close_receipt [17:32:04]process_action close_receipt [17:32:04]cmd_close_receipt [17:32:04]MH_GetDate [17:32:04]Write to MH i2c: F0 00 00 DC 02 CD [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: F0 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: F0 09 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: F0 09 00 DC 02 00 15 5D 95 66 D6 48 95 66 5C [17:32:04]GetLastDocTimeStamp 1721062622 [17:32:04]current date 1721064725 [17:32:04]FM_GetShiftState [17:32:04]SAM_PROTO_GetShiftState [17:32:04]wFMCommunicate request_size=4 [17:32:04]MH_SAM_APDU [17:32:04]CAPDU: 80 13 01 00 [17:32:04]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:04]Read from MH i2c: E2 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 0E 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 86 67 94 66 00 00 00 00 90 00 4F [17:32:04]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [17:32:04]wFMCommunicate OK [17:32:04]SAM_PROTO_GetShiftState done [17:32:04]FM_GetShiftState done [17:32:04]opened in 1721001862 [17:32:04]opened+sec_in_day 1721088262 [17:32:04]quantity*price = 2500 [17:32:04]sum+1 = 2501 [17:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 95 15.07.2024 17:32 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31654 ФПД: 11326272899388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T173205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31654&fm=11326272899388&tin=02508201610067®Number=0000000000098025&sum=2500 0 [17:32:06]StoreToDocumentArchive [17:32:06]shift 370 fd 31654 [17:32:06]save to /storage/0370/doc_00031654 [17:32:06]save last doc name /storage/0370/doc_00031654 to /storage/kkm_last_doc_name [17:32:06]save OK [17:32:06]Clear old archive folders... [17:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=286 [17:32:06]tlvbuf is 01494A30 [17:32:06]SAM_PROTO_ClearQueue [17:32:06]wFMCommunicate request_size=4 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 09 00 00 [17:32:06]Write to MH i2c: E2 08 00 EA 02 80 09 00 00 00 00 00 00 5E [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [17:32:06]RAPDU: 90 00 [17:32:06]wFMCommunicate OK [17:32:06]SAM_PROTO_ClearQueue done [17:32:06]KKMCreateOFDPacket [17:32:06]OFDProtocolAddRootSTLVToBuf [17:32:06]FM_MakeSignedData [17:32:06]FM_MakeSignedData [17:32:06]SAM_PROTO_SignData [17:32:06]wFMCommunicate request_size=4 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 0D 01 02 [17:32:06]Write to MH i2c: E2 08 00 EB 02 80 0D 01 02 00 00 00 00 66 [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:06]OFD Sender: No OFD packet to send [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [17:32:06]RAPDU: 90 00 [17:32:06]wFMCommunicate OK [17:32:06]wFMCommunicate request_size=255 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 15 5D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 [17:32:06]Write to MH i2c: E2 02 01 EC 02 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 15 5D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 00 00 4A [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [17:32:06]RAPDU: 90 00 [17:32:06]wFMCommunicate OK [17:32:06]wFMCommunicate request_size=45 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 0D 02 02 28 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A6 7B 00 00 35 04 06 00 0A 4D 1A 79 09 3C [17:32:06]Write to MH i2c: E2 30 00 ED 02 80 0D 02 02 28 00 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A6 7B 00 00 35 04 06 00 0A 4D 1A 79 09 3C 00 00 14 [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [17:32:06]RAPDU: 90 00 [17:32:06]wFMCommunicate OK [17:32:06]wFMCommunicate request_size=4 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 0D 03 02 [17:32:06]Write to MH i2c: E2 08 00 EE 02 80 0D 03 02 00 00 00 00 6B [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 0B 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 0B 00 EE 02 00 84 18 2B AA 6E DF 13 B0 90 00 ED [17:32:06]RAPDU: 84 18 2B AA 6E DF 13 B0 90 00 [17:32:06]wFMCommunicate OK [17:32:06]SAM_PROTO_SignData done [17:32:06]FM_MakeSignedData done [17:32:06]CreateOFDProtocolMessage [17:32:06]wFMCommunicate request_size=4 [17:32:06]MH_SAM_APDU [17:32:06]CAPDU: 80 11 00 00 [17:32:06]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:06]Read from MH i2c: E2 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 17 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [17:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:32:06]wFMCommunicate OK [17:32:06]CreateOFDProtocolMessage done [17:32:06]OFDSenderStorePacket 31654 [17:32:06]StoreOFDPacket docnum=31654 [17:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 32 01 00 00 39 F6 2A 01 34 90 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 15 5D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A6 7B 00 00 35 04 06 00 0A 4D 1A 79 09 3C 84 18 2B AA 6E DF 13 B0 [17:32:06]CheckFolder [17:32:06]dirname=/storage/ofd_packets [17:32:06]CheckFolder done [17:32:06]ProducePacketName [17:32:06]name=ofd_packets/00031654 [17:32:06]NVStorageSaveData ofd_packets/00031654 [17:32:06]File name is /storage/ofd_packets/00031654 [17:32:06]Write 336 bytes [17:32:06]NVStorageSaveData done [17:32:06]OFDSenderStorePacket done [17:32:06]KKMCreateOFDPacket done [17:32:06]NVStorageSaveData kkm_last_timestamp [17:32:06]File name is /storage/kkm_last_timestamp [17:32:06]Write 4 bytes [17:32:06]NVStorageSaveData done [17:32:06]ExternCall_PrintAddStr [17:32:06]wPrintStart [17:32:06]Write to MH i2c: 01 00 00 F0 02 F2 [17:32:06]Write i2c OK [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: 01 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: 01 07 00 [17:32:06]MH_I2C_Read... [17:32:06]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [17:32:06]RasterBufferAndPrint [17:32:06]line Счет N : (3)214236 [17:32:06]line ИНН: 02508201610067 [17:32:06]line Контрольно-Кассовый Чек [17:32:06]line ПРОДАЖА [17:32:06]line Товар: 4607120854177 [17:32:06]line Снек Орехи BEERKa Арахис 30г [17:32:06]line 1.000 * 25.00 [17:32:06]line = 25.00 [17:32:06]line НДС 12% НСП 1% [17:32:06]line > о реализуемом товаре [17:32:06]line ИТОГО: 25.00 [17:32:06]line НСП 1% : 0.22 [17:32:06]line НДС 12% : 2.65 [17:32:06]line Наличными: 25.00 [17:32:06]line Безнал.: 0.00 [17:32:06]line Место: АЗС № 140 "Партнер Нефть" [17:32:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:32:06]line СНО: Общий режим [17:32:06]line Чек 95 15.07.2024 17:32 [17:32:06]line Смена: 370 ФФД: 1.0 [17:32:06]line ЗНМ: 0300000189 [17:32:06]line РНМ: 0000000000098025 [17:32:06]line Версия ККМ: 001 [17:32:06]line ФМ: 0000000000965389 [17:32:06]line ФД: 31654 [17:32:06]line ФПД: 11326272899388 [17:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T173205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31654&fm=11326272899388&tin=02508201610067®Number=0000000000098025&sum=2500 [17:32:07]OFD Sender: Processing packet 31654 [packets to send 6, broken 5] [17:32:07]ProducePacketName [17:32:07]name=ofd_packets/00031654 [17:32:07]OFD Sender: To server: pG, [17:32:07]CommunicateWithHost lk.salyk.kg:30040 [17:32:07]ConnectInit lk.salyk.kg [17:32:07]line 0 [17:32:07]written 0, free lines is 4095 [17:32:07]Connected sock=10 [17:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 32 01 00 00 39 F6 2A 01 34 90 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 15 5D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A6 7B 00 00 35 04 06 00 0A 4D 1A 79 09 3C 84 18 2B AA 6E DF 13 B0 [17:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8C 27 47 00 87 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A6 7B 00 00 F4 03 04 00 24 09 95 66 B6 04 01 00 00 9E 69 1E 1B 43 DC 5F A8 [17:32:07]CommunicateWithHost err = 0 [17:32:07]CheckOFDResponse [17:32:07]1017 (14) - 77093643461234 [17:32:07]1041 (16) - 0000000000965389 [17:32:07]1040 (4) - 31654 [17:32:07]1012 (4) - 15.07.2024 11:33 [17:32:07]1206 (1) - 0 [17:32:07]OFD Sender: Remove packet 31654 [17:32:07]ProducePacketName [17:32:07]name=ofd_packets/00031654 [17:32:07]NVStorageDeleteData [17:32:07]Write to MH i2c: 01 00 00 19 03 1C [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: 01 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: 01 07 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FD 0C 2C [17:32:07]RasterBufferAndPrint [17:32:07]line [17:32:07]line [17:32:07]line [17:32:07]line [17:32:07]line [17:32:07]written 0, free lines is 3332 [17:32:07]MH_Cut [17:32:07]Write to MH i2c: D1 01 00 20 03 01 F5 [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: D1 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: D1 01 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: D1 01 00 20 03 00 F4 [17:32:07]Write to MH i2c: 01 00 00 21 03 24 [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]OFD Sender: No OFD packet to send [17:32:08]*** Cut start [17:32:08]*** Partial cut [17:32:08]*** CUTSNS_PIN = 1 [17:32:08]*** CUTSNS_PIN = 0 [17:32:08]*** Brake cut motor [17:32:08]Read from MH i2c: 01 [17:32:08]MH_I2C_Read... [17:32:08]*** Stop cut motor [17:32:08]*** Cut end [17:32:08]Read from MH i2c: 01 07 00 [17:32:08]MH_I2C_Read... [17:32:08]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [17:32:08]process_action close_receipt done [17:32:08]requested_data is exist [17:32:08]produce_requested_data [17:32:08]requested_item fm.sn is exist - process it [17:32:08]wFMCommunicate request_size=4 [17:32:08]MH_SAM_APDU [17:32:08]CAPDU: 80 11 00 00 [17:32:08]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [17:32:08]Write i2c OK [17:32:08]MH_I2C_Read... [17:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:08]Read from MH i2c: E2 [17:32:08]MH_I2C_Read... [17:32:08]Read from MH i2c: E2 17 00 [17:32:08]MH_I2C_Read... [17:32:08]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FA [17:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:32:08]wFMCommunicate OK [17:32:08]requested_item fd.num is exist - process it [17:32:08]SAM_PROTO_GetFieldsCounters [17:32:08]wFMCommunicate request_size=4 [17:32:08]MH_SAM_APDU [17:32:08]CAPDU: 80 13 00 00 [17:32:08]Write to MH i2c: E2 08 00 23 03 80 13 00 00 00 00 00 00 A2 [17:32:08]Write i2c OK [17:32:08]MH_I2C_Read... [17:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:09]Read from MH i2c: E2 [17:32:09]MH_I2C_Read... [17:32:09]Read from MH i2c: E2 62 00 [17:32:09]MH_I2C_Read... [17:32:09]Read from MH i2c: E2 62 00 23 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A6 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [17:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A6 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:09]wFMCommunicate OK [17:32:09]SAM_PROTO_GetFieldsCounters done [17:32:09]requested_item shift.num is exist - process it [17:32:09]requested_item shift.opened is exist - process it [17:32:09]req_shift_opened [17:32:09]FM_GetShiftState [17:32:09]SAM_PROTO_GetShiftState [17:32:09]wFMCommunicate request_size=4 [17:32:09]MH_SAM_APDU [17:32:09]CAPDU: 80 13 01 00 [17:32:09]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [17:32:09]Write i2c OK [17:32:09]MH_I2C_Read... [17:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:09]Read from MH i2c: E2 [17:32:09]MH_I2C_Read... [17:32:09]Read from MH i2c: E2 0E 00 [17:32:09]MH_I2C_Read... [17:32:09]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 97 [17:32:09]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [17:32:09]wFMCommunicate OK [17:32:09]SAM_PROTO_GetShiftState done [17:32:09]FM_GetShiftState done [17:32:09]req_shift_opened done [17:32:09]requested_item shift.open_date is exist - process it [17:32:09]req_shift_open_date [17:32:09]req_shift_open_date done [17:32:09]produce_requested_data done [17:32:09]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31654,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [17:32:09]process_action_free close_receipt [17:32:09]json_value_free [17:32:09]json_value_free done [17:32:09]process_json_proto returns [17:32:09]Send response to host [17:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31654,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [17:32:09]free response buf [17:32:09]execute_script done [17:32:09]execute_script returns [17:32:09]free content buf [17:32:09]Sock 7.Close socket [17:32:09]Sock 7.Thread stoped [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:16]accept exits with 9 [17:45:16]New connection [17:45:16]New thread 3066965348 created [17:45:16]Thread 3066821988 joined [17:45:16]Waiting for new connection... [17:45:16] Sock 9.Parse request [17:45:16]Sock 9.Check first char [17:45:16]Sock 9.First char is OK [17:45:16]request: POST /json_proto HTTP/1.0 [17:45:16]Method: POST [17:45:16]URL: /json_proto [17:45:16]Method is POST - this is cgi request [17:45:16]url: /json_proto [17:45:16]query_string will be loaded in cgi processing [17:45:16]execute_cgi json_proto POST (null) [17:45:16]execute_cgi path=json_proto method=POST [17:45:16]POST find Content-Length [17:45:16]Host: 172.17.39.68:8080 [17:45:16]Content-Length: 681 [17:45:16]Content-Type: application/json [17:45:16] [17:45:16]POST finish read [17:45:16]Found Content-Length = 681 [17:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214237", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:16]execute_script... [17:45: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)214237", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:16]POST & json_proto [17:45:16]process_json_proto [17:45:16]json parsed OK: [17:45:16]protocol is kg_v1.0 [17:45:16]action value=close_receipt [17:45:16]process_action close_receipt [17:45:16]cmd_close_receipt [17:45:16]MH_GetDate [17:45:16]Write to MH i2c: F0 00 00 25 03 17 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: F0 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: F0 09 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: F0 09 00 25 03 00 2D 60 95 66 D6 48 95 66 C1 [17:45:16]GetLastDocTimeStamp 1721064725 [17:45:16]current date 1721065517 [17:45:16]FM_GetShiftState [17:45:16]SAM_PROTO_GetShiftState [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 13 01 00 [17:45:16]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 99 [17:45:17]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_GetShiftState done [17:45:17]FM_GetShiftState done [17:45:17]opened in 1721001862 [17:45:17]opened+sec_in_day 1721088262 [17:45:17]quantity*price = 8200 [17:45:17]sum+1 = 8201 [17:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 96 15.07.2024 17:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31655 ФПД: 135138680739005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174517&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31655&fm=135138680739005&tin=02508201610067®Number=0000000000098025&sum=8200 0 [17:45:18]StoreToDocumentArchive [17:45:18]shift 370 fd 31655 [17:45:18]save to /storage/0370/doc_00031655 [17:45:18]save last doc name /storage/0370/doc_00031655 to /storage/kkm_last_doc_name [17:45:18]save OK [17:45:18]Clear old archive folders... [17:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=296 [17:45:18]tlvbuf is 01483DD0 [17:45:18]SAM_PROTO_ClearQueue [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 09 00 00 [17:45:18]Write to MH i2c: E2 08 00 33 03 80 09 00 00 00 00 00 00 A8 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [17:45:18]RAPDU: 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_ClearQueue done [17:45:18]KKMCreateOFDPacket [17:45:18]OFDProtocolAddRootSTLVToBuf [17:45:18]FM_MakeSignedData [17:45:18]FM_MakeSignedData [17:45:18]SAM_PROTO_SignData [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 0D 01 02 [17:45:18]Write to MH i2c: E2 08 00 34 03 80 0D 01 02 00 00 00 00 B0 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [17:45:18]RAPDU: 90 00 [17:45:18]wFMCommunicate OK [17:45:18]wFMCommunicate request_size=255 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 60 00 00 00 F4 03 04 00 2D 60 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [17:45:18]Write to MH i2c: E2 02 01 35 03 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 60 00 00 00 F4 03 04 00 2D 60 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 4A [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]OFD Sender: No OFD packet to send [17:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [17:45:18]RAPDU: 90 00 [17:45:18]wFMCommunicate OK [17:45:18]wFMCommunicate request_size=55 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A7 7B 00 00 35 04 06 00 7A E8 6D 0F 94 BD [17:45:18]Write to MH i2c: E2 3A 00 36 03 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A7 7B 00 00 35 04 06 00 7A E8 6D 0F 94 BD 00 00 64 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [17:45:18]RAPDU: 90 00 [17:45:18]wFMCommunicate OK [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 0D 03 02 [17:45:18]Write to MH i2c: E2 08 00 37 03 80 0D 03 02 00 00 00 00 B5 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0B 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0B 00 37 03 00 DD AB F8 B4 6B 5F 61 D1 90 00 E6 [17:45:18]RAPDU: DD AB F8 B4 6B 5F 61 D1 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_SignData done [17:45:18]FM_MakeSignedData done [17:45:18]CreateOFDProtocolMessage [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 11 00 00 [17:45:18]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 10 [17:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:45:18]wFMCommunicate OK [17:45:18]CreateOFDProtocolMessage done [17:45:18]OFDSenderStorePacket 31655 [17:45:18]StoreOFDPacket docnum=31655 [17:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 D7 79 34 01 7C CC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 60 00 00 00 F4 03 04 00 2D 60 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A7 7B 00 00 35 04 06 00 7A E8 6D 0F 94 BD DD AB F8 B4 6B 5F 61 D1 [17:45:18]CheckFolder [17:45:18]dirname=/storage/ofd_packets [17:45:18]CheckFolder done [17:45:18]ProducePacketName [17:45:18]name=ofd_packets/00031655 [17:45:18]NVStorageSaveData ofd_packets/00031655 [17:45:18]File name is /storage/ofd_packets/00031655 [17:45:18]Write 346 bytes [17:45:18]NVStorageSaveData done [17:45:18]OFDSenderStorePacket done [17:45:18]KKMCreateOFDPacket done [17:45:18]NVStorageSaveData kkm_last_timestamp [17:45:18]File name is /storage/kkm_last_timestamp [17:45:18]Write 4 bytes [17:45:18]NVStorageSaveData done [17:45:18]ExternCall_PrintAddStr [17:45:18]wPrintStart [17:45:18]Write to MH i2c: 01 00 00 39 03 3C [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 07 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [17:45:18]RasterBufferAndPrint [17:45:18]line Счет N : (3)214237 [17:45:18]line ИНН: 02508201610067 [17:45:18]line Контрольно-Кассовый Чек [17:45:18]line ПРОДАЖА [17:45:18]line Товар: 4700000482733 [17:45:18]line Напиток Nitro Fr газ класс ж/б 0,45л [17:45:18]line 1.000 * 82.00 [17:45:18]line = 82.00 [17:45:18]line НДС 12% НСП 1% [17:45:18]line > о реализуемом товаре [17:45:18]line ИТОГО: 82.00 [17:45:18]line НСП 1% : 0.73 [17:45:18]line НДС 12% : 8.71 [17:45:18]line Наличными: 82.00 [17:45:18]line Безнал.: 0.00 [17:45:18]line Место: АЗС № 140 "Партнер Нефть" [17:45:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:45:18]line СНО: Общий режим [17:45:18]line Чек 96 15.07.2024 17:45 [17:45:18]line Смена: 370 ФФД: 1.0 [17:45:18]line ЗНМ: 0300000189 [17:45:18]line РНМ: 0000000000098025 [17:45:18]line Версия ККМ: 001 [17:45:18]line ФМ: 0000000000965389 [17:45:18]line ФД: 31655 [17:45:18]line ФПД: 135138680739005 [17:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174517&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31655&fm=135138680739005&tin=02508201610067®Number=0000000000098025&sum=8200 [17:45:19]line 0 [17:45:19]OFD Sender: Processing packet 31655 [packets to send 6, broken 5] [17:45:19]ProducePacketName [17:45:19]name=ofd_packets/00031655 [17:45:19]OFD Sender: To server: pG, [17:45:19]CommunicateWithHost lk.salyk.kg:30040 [17:45:19]ConnectInit lk.salyk.kg [17:45:19]written 0, free lines is 4095 [17:45:19]Connected sock=10 [17:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 D7 79 34 01 7C CC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 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 60 00 00 00 F4 03 04 00 2D 60 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A7 7B 00 00 35 04 06 00 7A E8 6D 0F 94 BD DD AB F8 B4 6B 5F 61 D1 [17:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5B E4 47 00 22 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A7 7B 00 00 F4 03 04 00 3C 0C 95 66 B6 04 01 00 00 8D 94 9F 1A 4F ED 29 0E [17:45:19]CommunicateWithHost err = 0 [17:45:19]CheckOFDResponse [17:45:19]1017 (14) - 77093643461234 [17:45:19]1041 (16) - 0000000000965389 [17:45:19]1040 (4) - 31655 [17:45:19]1012 (4) - 15.07.2024 11:47 [17:45:19]1206 (1) - 0 [17:45:19]OFD Sender: Remove packet 31655 [17:45:19]ProducePacketName [17:45:19]name=ofd_packets/00031655 [17:45:19]NVStorageDeleteData [17:45:19]Write to MH i2c: 01 00 00 62 03 65 [17:45:19]Write i2c OK [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: 01 [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: 01 07 00 [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 F6 0C 6E [17:45:19]RasterBufferAndPrint [17:45:19]line [17:45:19]line [17:45:19]line [17:45:19]line [17:45:19]line [17:45:19]written 0, free lines is 3327 [17:45:19]MH_Cut [17:45:19]Write to MH i2c: D1 01 00 69 03 01 3E [17:45:19]Write i2c OK [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: D1 [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: D1 01 00 [17:45:19]MH_I2C_Read... [17:45:19]Read from MH i2c: D1 01 00 69 03 00 3D [17:45:19]Write to MH i2c: 01 00 00 6A 03 6D [17:45:19]Write i2c OK [17:45:19]MH_I2C_Read... [17:45:19]OFD Sender: No OFD packet to send [17:45:20]*** Cut start [17:45:20]*** Partial cut [17:45:20]*** CUTSNS_PIN = 1 [17:45:20]*** CUTSNS_PIN = 0 [17:45:20]*** Brake cut motor [17:45:20]Read from MH i2c: 01 [17:45:20]MH_I2C_Read... [17:45:20]*** Stop cut motor [17:45:20]*** Cut end [17:45:20]Read from MH i2c: 01 07 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 FF 0F 82 [17:45:20]process_action close_receipt done [17:45:20]requested_data is exist [17:45:20]produce_requested_data [17:45:20]requested_item fm.sn is exist - process it [17:45:20]wFMCommunicate request_size=4 [17:45:20]MH_SAM_APDU [17:45:20]CAPDU: 80 11 00 00 [17:45:20]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:20]Read from MH i2c: E2 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 17 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 43 [17:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:45:20]wFMCommunicate OK [17:45:20]requested_item fd.num is exist - process it [17:45:20]SAM_PROTO_GetFieldsCounters [17:45:20]wFMCommunicate request_size=4 [17:45:20]MH_SAM_APDU [17:45:20]CAPDU: 80 13 00 00 [17:45:20]Write to MH i2c: E2 08 00 6C 03 80 13 00 00 00 00 00 00 EB [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:21]Read from MH i2c: E2 [17:45:21]MH_I2C_Read... [17:45:21]Read from MH i2c: E2 62 00 [17:45:21]MH_I2C_Read... [17:45:21]Read from MH i2c: E2 62 00 6C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A7 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A7 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:21]wFMCommunicate OK [17:45:21]SAM_PROTO_GetFieldsCounters done [17:45:21]requested_item shift.num is exist - process it [17:45:21]requested_item shift.opened is exist - process it [17:45:21]req_shift_opened [17:45:21]FM_GetShiftState [17:45:21]SAM_PROTO_GetShiftState [17:45:21]wFMCommunicate request_size=4 [17:45:21]MH_SAM_APDU [17:45:21]CAPDU: 80 13 01 00 [17:45:21]Write to MH i2c: E2 08 00 6D 03 80 13 01 00 00 00 00 00 ED [17:45:21]Write i2c OK [17:45:21]MH_I2C_Read... [17:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:21]Read from MH i2c: E2 [17:45:21]MH_I2C_Read... [17:45:21]Read from MH i2c: E2 0E 00 [17:45:21]MH_I2C_Read... [17:45:21]Read from MH i2c: E2 0E 00 6D 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E0 [17:45:21]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [17:45:21]wFMCommunicate OK [17:45:21]SAM_PROTO_GetShiftState done [17:45:21]FM_GetShiftState done [17:45:21]req_shift_opened done [17:45:21]requested_item shift.open_date is exist - process it [17:45:21]req_shift_open_date [17:45:21]req_shift_open_date done [17:45:21]produce_requested_data done [17:45:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31655,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [17:45:21]process_action_free close_receipt [17:45:21]json_value_free [17:45:21]json_value_free done [17:45:21]process_json_proto returns [17:45:21]Send response to host [17:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31655,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [17:45:21]free response buf [17:45:21]execute_script done [17:45:21]execute_script returns [17:45:21]free content buf [17:45:21]Sock 9.Close socket [17:45:21]Sock 9.Thread stoped [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]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:19]accept exits with 7 [18:01:19]New connection [18:01:19]New thread 3066821988 created [18:01:19]Thread 3066965348 joined [18:01:19]Waiting for new connection... [18:01:19] Sock 7.Parse request [18:01:19]Sock 7.Check first char [18:01:19]Sock 7.First char is OK [18:01:19]request: POST /json_proto HTTP/1.0 [18:01:19]Method: POST [18:01:19]URL: /json_proto [18:01:19]Method is POST - this is cgi request [18:01:19]url: /json_proto [18:01:19]query_string will be loaded in cgi processing [18:01:19]execute_cgi json_proto POST (null) [18:01:19]execute_cgi path=json_proto method=POST [18:01:19]POST find Content-Length [18:01:19]Host: 172.17.39.68:8080 [18:01:19]Content-Length: 621 [18:01:19]Content-Type: application/json [18:01:19] [18:01:19]POST finish read [18:01:19]Found Content-Length = 621 [18:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214238", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [18:01:19]execute_script... [18:01: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)214238", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [18:01:19]POST & json_proto [18:01:19]process_json_proto [18:01:19]json parsed OK: [18:01:19]protocol is kg_v1.0 [18:01:19]action value=close_receipt [18:01:19]process_action close_receipt [18:01:19]cmd_close_receipt [18:01:19]MH_GetDate [18:01:19]Write to MH i2c: F0 00 00 6E 03 60 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: F0 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: F0 09 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: F0 09 00 6E 03 00 F0 63 95 66 D6 48 95 66 D0 [18:01:19]GetLastDocTimeStamp 1721065517 [18:01:19]current date 1721066480 [18:01:19]FM_GetShiftState [18:01:19]SAM_PROTO_GetShiftState [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 13 01 00 [18:01:19]Write to MH i2c: E2 08 00 6F 03 80 13 01 00 00 00 00 00 EF [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 6F 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 E2 [18:01:19]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_GetShiftState done [18:01:19]FM_GetShiftState done [18:01:19]opened in 1721001862 [18:01:19]opened+sec_in_day 1721088262 [18:01:19]quantity*price = 14000 [18:01:19]sum+1 = 14001 [18:01:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 97 15.07.2024 18:01 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31656 ФПД: 39564249236230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180120&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31656&fm=39564249236230&tin=02508201610067®Number=0000000000098025&sum=14000 0 [18:01:21]StoreToDocumentArchive [18:01:21]shift 370 fd 31656 [18:01:21]save to /storage/0370/doc_00031656 [18:01:21]save last doc name /storage/0370/doc_00031656 to /storage/kkm_last_doc_name [18:01:21]save OK [18:01:21]Clear old archive folders... [18:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:01:21]tlvbuf is 014A1F60 [18:01:21]SAM_PROTO_ClearQueue [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 09 00 00 [18:01:21]Write to MH i2c: E2 08 00 7C 03 80 09 00 00 00 00 00 00 F1 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_ClearQueue done [18:01:21]KKMCreateOFDPacket [18:01:21]OFDProtocolAddRootSTLVToBuf [18:01:21]FM_MakeSignedData [18:01:21]FM_MakeSignedData [18:01:21]SAM_PROTO_SignData [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 0D 01 02 [18:01:21]Write to MH i2c: E2 08 00 7D 03 80 0D 01 02 00 00 00 00 F9 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]wFMCommunicate request_size=255 [18:01:21]MH_SAM_APDU [18:01: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 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 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 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 61 00 00 00 F4 03 04 00 F0 63 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [18:01:21]Write to MH i2c: E2 02 01 7E 03 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 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 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 61 00 00 00 F4 03 04 00 F0 63 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 0F [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]wFMCommunicate request_size=32 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 A8 7B 00 00 35 04 06 00 23 FB C5 05 83 06 [18:01:21]Write to MH i2c: E2 23 00 7F 03 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 A8 7B 00 00 35 04 06 00 23 FB C5 05 83 06 00 00 F5 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 0D 03 02 [18:01:21]Write to MH i2c: E2 08 00 80 03 80 0D 03 02 00 00 00 00 FE [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0B 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0B 00 80 03 00 A1 D3 39 A7 08 B5 27 8B 90 00 C2 [18:01:21]RAPDU: A1 D3 39 A7 08 B5 27 8B 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_SignData done [18:01:21]FM_MakeSignedData done [18:01:21]CreateOFDProtocolMessage [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 11 00 00 [18:01:21]Write to MH i2c: E2 08 00 81 03 80 11 00 00 00 00 00 00 FE [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 17 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 17 00 81 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 59 [18:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:01:21]wFMCommunicate OK [18:01:21]CreateOFDProtocolMessage done [18:01:21]OFDSenderStorePacket 31656 [18:01:21]StoreOFDPacket docnum=31656 [18:01:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 FE 61 1D 01 84 79 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 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 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 61 00 00 00 F4 03 04 00 F0 63 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A8 7B 00 00 35 04 06 00 23 FB C5 05 83 06 A1 D3 39 A7 08 B5 27 8B [18:01:21]CheckFolder [18:01:21]dirname=/storage/ofd_packets [18:01:21]CheckFolder done [18:01:21]ProducePacketName [18:01:21]name=ofd_packets/00031656 [18:01:21]NVStorageSaveData ofd_packets/00031656 [18:01:21]File name is /storage/ofd_packets/00031656 [18:01:21]Write 323 bytes [18:01:21]NVStorageSaveData done [18:01:21]OFDSenderStorePacket done [18:01:21]KKMCreateOFDPacket done [18:01:21]NVStorageSaveData kkm_last_timestamp [18:01:21]File name is /storage/kkm_last_timestamp [18:01:21]Write 4 bytes [18:01:21]NVStorageSaveData done [18:01:21]ExternCall_PrintAddStr [18:01:21]wPrintStart [18:01:21]Write to MH i2c: 01 00 00 82 03 85 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: 01 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: 01 07 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [18:01:21]RasterBufferAndPrint [18:01:21]line Счет N : (3)214238 [18:01:21]line ИНН: 02508201610067 [18:01:21]line Контрольно-Кассовый Чек [18:01:21]line ПРОДАЖА [18:01:21]line Товар: 48743570 [18:01:21]line Сигареты Winston XStyle Blue [18:01:21]line 1.000 * 140.00 [18:01:21]line = 140.00 [18:01:21]line НДС 12% НСП 1% [18:01:21]line > о реализуемом товаре [18:01:21]line ИТОГО: 140.00 [18:01:21]line НСП 1% : 1.24 [18:01:21]line НДС 12% : 14.87 [18:01:21]line Наличными: 140.00 [18:01:21]line Безнал.: 0.00 [18:01:21]line Место: АЗС № 140 "Партнер Нефть" [18:01:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:01:21]line СНО: Общий режим [18:01:21]line Чек 97 15.07.2024 18:01 [18:01:21]line Смена: 370 ФФД: 1.0 [18:01:21]line ЗНМ: 0300000189 [18:01:21]line РНМ: 0000000000098025 [18:01:21]line Версия ККМ: 001 [18:01:21]line ФМ: 0000000000965389 [18:01:21]line ФД: 31656 [18:01:21]line ФПД: 39564249236230 [18:01:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180120&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31656&fm=39564249236230&tin=02508201610067®Number=0000000000098025&sum=14000 [18:01:21]line 0 [18:01:21]OFD Sender: Processing packet 31656 [packets to send 6, broken 5] [18:01:21]ProducePacketName [18:01:21]name=ofd_packets/00031656 [18:01:21]OFD Sender: To server: pG, [18:01:21]CommunicateWithHost lk.salyk.kg:30040 [18:01:21]ConnectInit lk.salyk.kg [18:01:21]written 0, free lines is 4095 [18:01:22]Connected sock=10 [18:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 FE 61 1D 01 84 79 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 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 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 61 00 00 00 F4 03 04 00 F0 63 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A8 7B 00 00 35 04 06 00 23 FB C5 05 83 06 A1 D3 39 A7 08 B5 27 8B [18:01:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 72 0E 47 00 98 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A8 7B 00 00 F4 03 04 00 FF 0F 95 66 B6 04 01 00 00 E7 A3 3D 9B 4F 56 A6 99 [18:01:22]CommunicateWithHost err = 0 [18:01:22]CheckOFDResponse [18:01:22]1017 (14) - 77093643461234 [18:01:22]1041 (16) - 0000000000965389 [18:01:22]1040 (4) - 31656 [18:01:22]1012 (4) - 15.07.2024 12:03 [18:01:22]1206 (1) - 0 [18:01:22]OFD Sender: Remove packet 31656 [18:01:22]ProducePacketName [18:01:22]name=ofd_packets/00031656 [18:01:22]NVStorageDeleteData [18:01:22]Write to MH i2c: 01 00 00 AA 03 AD [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 07 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 FE 0C BE [18:01:22]RasterBufferAndPrint [18:01:22]line [18:01:22]line [18:01:22]line [18:01:22]line [18:01:22]line [18:01:22]written 0, free lines is 3332 [18:01:22]MH_Cut [18:01:22]Write to MH i2c: D1 01 00 B1 03 01 86 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: D1 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: D1 01 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: D1 01 00 B1 03 00 85 [18:01:22]Write to MH i2c: 01 00 00 B2 03 B5 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]OFD Sender: No OFD packet to send [18:01:23]*** Cut start [18:01:23]*** Partial cut [18:01:23]*** CUTSNS_PIN = 1 [18:01:23]*** CUTSNS_PIN = 0 [18:01:23]*** Brake cut motor [18:01:23]Read from MH i2c: 01 [18:01:23]MH_I2C_Read... [18:01:23]*** Stop cut motor [18:01:23]*** Cut end [18:01:23]Read from MH i2c: 01 07 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [18:01:23]process_action close_receipt done [18:01:23]requested_data is exist [18:01:23]produce_requested_data [18:01:23]requested_item fm.sn is exist - process it [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 11 00 00 [18:01:23]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 17 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [18:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:01:23]wFMCommunicate OK [18:01:23]requested_item fd.num is exist - process it [18:01:23]SAM_PROTO_GetFieldsCounters [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 13 00 00 [18:01:23]Write to MH i2c: E2 08 00 B4 03 80 13 00 00 00 00 00 00 33 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 62 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 62 00 B4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A8 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:01:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A8 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:23]wFMCommunicate OK [18:01:23]SAM_PROTO_GetFieldsCounters done [18:01:23]requested_item shift.num is exist - process it [18:01:23]requested_item shift.opened is exist - process it [18:01:23]req_shift_opened [18:01:23]FM_GetShiftState [18:01:23]SAM_PROTO_GetShiftState [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 13 01 00 [18:01:23]Write to MH i2c: E2 08 00 B5 03 80 13 01 00 00 00 00 00 35 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 B5 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 28 [18:01:24]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_GetShiftState done [18:01:24]FM_GetShiftState done [18:01:24]req_shift_opened done [18:01:24]requested_item shift.open_date is exist - process it [18:01:24]req_shift_open_date [18:01:24]req_shift_open_date done [18:01:24]produce_requested_data done [18:01:24]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31656,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [18:01:24]process_action_free close_receipt [18:01:24]json_value_free [18:01:24]json_value_free done [18:01:24]process_json_proto returns [18:01:24]Send response to host [18:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31656,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [18:01:24]free response buf [18:01:24]execute_script done [18:01:24]execute_script returns [18:01:24]free content buf [18:01:24]Sock 7.Close socket [18:01:24]Sock 7.Thread stoped [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [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:08]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:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [18:45:06]New connection [18:45:06]New thread 3066965348 created [18:45:06]Thread 3066821988 joined [18:45:06]Waiting for new connection... [18:45:06] Sock 9.Parse request [18:45:06]Sock 9.Check first char [18:45:06]Sock 9.First char is OK [18:45:06]request: POST /json_proto HTTP/1.0 [18:45:06]Method: POST [18:45:06]URL: /json_proto [18:45:06]Method is POST - this is cgi request [18:45:06]url: /json_proto [18:45:06]query_string will be loaded in cgi processing [18:45:06]execute_cgi json_proto POST (null) [18:45:06]execute_cgi path=json_proto method=POST [18:45:06]POST find Content-Length [18:45:06]Host: 172.17.39.68:8080 [18:45:06]Content-Length: 1278 [18:45:06]Content-Type: application/json [18:45:06] [18:45:06]POST finish read [18:45:06]Found Content-Length = 1278 [18:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214239", "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 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:06]execute_script... [18:45: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)214239", "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 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:06]POST & json_proto [18:45:06]process_json_proto [18:45:06]json parsed OK: [18:45:06]protocol is kg_v1.0 [18:45:06]action value=close_receipt [18:45:06]process_action close_receipt [18:45:06]cmd_close_receipt [18:45:06]MH_GetDate [18:45:06]Write to MH i2c: F0 00 00 B6 03 A8 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 09 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 09 00 B6 03 00 32 6E 95 66 D6 48 95 66 65 [18:45:06]GetLastDocTimeStamp 1721066480 [18:45:06]current date 1721069106 [18:45:06]FM_GetShiftState [18:45:06]SAM_PROTO_GetShiftState [18:45:06]wFMCommunicate request_size=4 [18:45:06]MH_SAM_APDU [18:45:06]CAPDU: 80 13 01 00 [18:45:06]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 86 67 94 66 00 00 00 00 90 00 2A [18:45:06]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:45:06]wFMCommunicate OK [18:45:06]SAM_PROTO_GetShiftState done [18:45:06]FM_GetShiftState done [18:45:06]opened in 1721001862 [18:45:06]opened+sec_in_day 1721088262 [18:45:06]quantity*price = 13000 [18:45:06]sum+1 = 13001 [18:45:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110073 Сэндвич с кетчупом Талас Даамы 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521230 Напиток MAXI чай 1,2 черн.лимон 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.50 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 98 15.07.2024 18:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31657 ФПД: 142412517919505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184507&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31657&fm=142412517919505&tin=02508201610067®Number=0000000000098025&sum=32500 0 [18:45:07]StoreToDocumentArchive [18:45:07]shift 370 fd 31657 [18:45:07]save to /storage/0370/doc_00031657 [18:45:07]save last doc name /storage/0370/doc_00031657 to /storage/kkm_last_doc_name [18:45:07]save OK [18:45:07]Clear old archive folders... [18:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=532 [18:45:07]tlvbuf is 01486090 [18:45:07]SAM_PROTO_ClearQueue [18:45:07]wFMCommunicate request_size=4 [18:45:07]MH_SAM_APDU [18:45:07]CAPDU: 80 09 00 00 [18:45:07]Write to MH i2c: E2 08 00 C4 03 80 09 00 00 00 00 00 00 39 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:07]Read from MH i2c: E2 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 03 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [18:45:07]RAPDU: 90 00 [18:45:07]wFMCommunicate OK [18:45:07]SAM_PROTO_ClearQueue done [18:45:07]KKMCreateOFDPacket [18:45:07]OFDProtocolAddRootSTLVToBuf [18:45:07]FM_MakeSignedData [18:45:07]FM_MakeSignedData [18:45:07]SAM_PROTO_SignData [18:45:07]wFMCommunicate request_size=4 [18:45:07]MH_SAM_APDU [18:45:07]CAPDU: 80 0D 01 02 [18:45:07]Write to MH i2c: E2 08 00 C5 03 80 0D 01 02 00 00 00 00 41 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:07]Read from MH i2c: E2 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 03 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [18:45:07]RAPDU: 90 00 [18:45:07]wFMCommunicate OK [18:45:07]wFMCommunicate request_size=255 [18:45:07]MH_SAM_APDU [18:45:07]CAPDU: 80 0D 02 02 FA 03 00 14 02 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 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 [18:45:07]Write to MH i2c: E2 02 01 C6 03 80 0D 02 02 FA 00 03 00 14 02 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 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 00 00 47 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=255 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 02 02 FA 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 33 6E 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [18:45:08]Write to MH i2c: E2 02 01 C7 03 80 0D 02 02 FA 00 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 33 6E 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 98 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=41 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A9 7B 00 00 35 04 06 00 81 85 FF 8A CB 11 [18:45:08]Write to MH i2c: E2 2C 00 C8 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A9 7B 00 00 35 04 06 00 81 85 FF 8A CB 11 00 00 AB [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 03 02 [18:45:08]Write to MH i2c: E2 08 00 C9 03 80 0D 03 02 00 00 00 00 47 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0B 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0B 00 C9 03 00 18 FD DB 26 E1 D2 27 C8 90 00 00 [18:45:08]RAPDU: 18 FD DB 26 E1 D2 27 C8 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_SignData done [18:45:08]FM_MakeSignedData done [18:45:08]CreateOFDProtocolMessage [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 11 00 00 [18:45:08]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 17 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A2 [18:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:45:08]wFMCommunicate OK [18:45:08]CreateOFDProtocolMessage done [18:45:08]OFDSenderStorePacket 31657 [18:45:08]StoreOFDPacket docnum=31657 [18:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 02 00 00 6F 83 20 02 A5 E9 5A 03 01 00 03 00 14 02 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 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 33 6E 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A9 7B 00 00 35 04 06 00 81 85 FF 8A CB 11 18 FD DB 26 E1 D2 27 C8 [18:45:08]CheckFolder [18:45:08]dirname=/storage/ofd_packets [18:45:08]CheckFolder done [18:45:08]ProducePacketName [18:45:08]name=ofd_packets/00031657 [18:45:08]NVStorageSaveData ofd_packets/00031657 [18:45:08]File name is /storage/ofd_packets/00031657 [18:45:08]Write 582 bytes [18:45:08]NVStorageSaveData done [18:45:08]OFDSenderStorePacket done [18:45:08]KKMCreateOFDPacket done [18:45:08]NVStorageSaveData kkm_last_timestamp [18:45:08]File name is /storage/kkm_last_timestamp [18:45:08]Write 4 bytes [18:45:08]NVStorageSaveData done [18:45:08]ExternCall_PrintAddStr [18:45:08]wPrintStart [18:45:08]Write to MH i2c: 01 00 00 CB 03 CE [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: 01 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: 01 07 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [18:45:08]RasterBufferAndPrint [18:45:08]line Счет N : (3)214239 [18:45:08]line ИНН: 02508201610067 [18:45:08]line Контрольно-Кассовый Чек [18:45:08]line ПРОДАЖА [18:45:08]line Товар: 2000036220012 [18:45:08]line Кофе Капучино XL(GABB TRADE) [18:45:08]line 1.000 * 130.00 [18:45:08]line = 130.00 [18:45:08]line НДС 12% НСП 1% [18:45:08]line > о реализуемом товаре [18:45:08]line Товар: 4700007110073 [18:45:08]line Сэндвич с кетчупом Талас Даамы [18:45:08]line 1.000 * 70.00 [18:45:08]line = 70.00 [18:45:08]line НДС 12% НСП 1% [18:45:08]line > о реализуемом товаре [18:45:08]line Товар: 4870202521230 [18:45:08]line Напиток MAXI чай 1,2 черн.лимон [18:45:08]line 1.000 * 125.00 [18:45:08]line = 125.00 [18:45:08]line НДС 12% НСП 1% [18:45:08]line > о реализуемом товаре [18:45:08]line ИТОГО: 325.00 [18:45:08]line НСП 1% : 2.88 [18:45:08]line НДС 12% : 34.50 [18:45:08]line Наличными: 325.00 [18:45:08]line Безнал.: 0.00 [18:45:08]line Место: АЗС № 140 "Партнер Нефть" [18:45:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:45:08]line СНО: Общий режим [18:45:08]line Чек 98 15.07.2024 18:45 [18:45:08]line Смена: 370 ФФД: 1.0 [18:45:08]line ЗНМ: 0300000189 [18:45:08]line РНМ: 0000000000098025 [18:45:08]line Версия ККМ: 001 [18:45:08]line ФМ: 0000000000965389 [18:45:08]line ФД: 31657 [18:45:08]line ФПД: 142412517919505 [18:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184507&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31657&fm=142412517919505&tin=02508201610067®Number=0000000000098025&sum=32500 [18:45:09]line 0 [18:45:09]OFD Sender: Processing packet 31657 [packets to send 6, broken 5] [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00031657 [18:45:09]OFD Sender: To server: pG, [18:45:09]CommunicateWithHost lk.salyk.kg:30040 [18:45:09]ConnectInit lk.salyk.kg [18:45:09]written 0, free lines is 4095 [18:45:09]Connected sock=10 [18:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 02 00 00 6F 83 20 02 A5 E9 5A 03 01 00 03 00 14 02 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 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 33 6E 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A9 7B 00 00 35 04 06 00 81 85 FF 8A CB 11 18 FD DB 26 E1 D2 27 C8 [18:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 CA BA 47 00 97 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 A9 7B 00 00 F4 03 04 00 43 1A 95 66 B6 04 01 00 00 9E 4C A8 75 81 EA EA E5 [18:45:09]CommunicateWithHost err = 0 [18:45:09]CheckOFDResponse [18:45:09]1017 (14) - 77093643461234 [18:45:09]1041 (16) - 0000000000965389 [18:45:09]1040 (4) - 31657 [18:45:09]1012 (4) - 15.07.2024 12:46 [18:45:09]1206 (1) - 0 [18:45:09]OFD Sender: Remove packet 31657 [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00031657 [18:45:09]NVStorageDeleteData [18:45:09]Write to MH i2c: 01 00 00 02 04 06 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 1C 0C 35 [18:45:09]RasterBufferAndPrint [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]written 0, free lines is 3108 [18:45:09]MH_Cut [18:45:09]Write to MH i2c: D1 01 00 09 04 01 DF [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 01 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: D1 01 00 09 04 00 DE [18:45:09]Write to MH i2c: 01 00 00 0A 04 0E [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]OFD Sender: No OFD packet to send [18:45:10]*** Cut start [18:45:10]*** Partial cut [18:45:10]*** CUTSNS_PIN = 1 [18:45:10]*** CUTSNS_PIN = 0 [18:45:10]*** Brake cut motor [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [18:45:11]*** Stop cut motor [18:45:11]*** Cut end [18:45:11]Read from MH i2c: 01 07 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [18:45:11]process_action close_receipt done [18:45:11]requested_data is exist [18:45:11]produce_requested_data [18:45:11]requested_item fm.sn is exist - process it [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 11 00 00 [18:45:11]Write to MH i2c: E2 08 00 0B 04 80 11 00 00 00 00 00 00 89 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 0B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E4 [18:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:45:11]wFMCommunicate OK [18:45:11]requested_item fd.num is exist - process it [18:45:11]SAM_PROTO_GetFieldsCounters [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 00 00 [18:45:11]Write to MH i2c: E2 08 00 0C 04 80 13 00 00 00 00 00 00 8C [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 0C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A9 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [18:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 A9 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetFieldsCounters done [18:45:11]requested_item shift.num is exist - process it [18:45:11]requested_item shift.opened is exist - process it [18:45:11]req_shift_opened [18:45:11]FM_GetShiftState [18:45:11]SAM_PROTO_GetShiftState [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 01 00 [18:45:11]Write to MH i2c: E2 08 00 0D 04 80 13 01 00 00 00 00 00 8E [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 0D 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 81 [18:45:11]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetShiftState done [18:45:11]FM_GetShiftState done [18:45:11]req_shift_opened done [18:45:11]requested_item shift.open_date is exist - process it [18:45:11]req_shift_open_date [18:45:11]req_shift_open_date done [18:45:11]produce_requested_data done [18:45:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31657,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [18:45:11]process_action_free close_receipt [18:45:11]json_value_free [18:45:11]json_value_free done [18:45:11]process_json_proto returns [18:45:11]Send response to host [18:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31657,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [18:45:11]free response buf [18:45:11]execute_script done [18:45:11]execute_script returns [18:45:11]free content buf [18:45:11]Sock 9.Close socket [18:45:11]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:16]accept exits with 7 [18:58:16]New connection [18:58:16]New thread 3066821988 created [18:58:16]Thread 3066965348 joined [18:58:16]Waiting for new connection... [18:58:16] Sock 7.Parse request [18:58:16]Sock 7.Check first char [18:58:16]Sock 7.First char is OK [18:58:16]request: POST /json_proto HTTP/1.0 [18:58:16]Method: POST [18:58:16]URL: /json_proto [18:58:16]Method is POST - this is cgi request [18:58:16]url: /json_proto [18:58:16]query_string will be loaded in cgi processing [18:58:16]execute_cgi json_proto POST (null) [18:58:16]execute_cgi path=json_proto method=POST [18:58:16]POST find Content-Length [18:58:16]Host: 172.17.39.68:8080 [18:58:16]Content-Length: 620 [18:58:16]Content-Type: application/json [18:58:16] [18:58:16]POST finish read [18:58:16]Found Content-Length = 620 [18:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214240", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:16]execute_script... [18:58:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214240", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:16]POST & json_proto [18:58:16]process_json_proto [18:58:16]json parsed OK: [18:58:16]protocol is kg_v1.0 [18:58:16]action value=close_receipt [18:58:16]process_action close_receipt [18:58:16]cmd_close_receipt [18:58:16]MH_GetDate [18:58:16]Write to MH i2c: F0 00 00 0E 04 01 [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: F0 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: F0 09 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: F0 09 00 0E 04 00 49 71 95 66 D6 48 95 66 D8 [18:58:16]GetLastDocTimeStamp 1721069107 [18:58:16]current date 1721069897 [18:58:16]FM_GetShiftState [18:58:16]SAM_PROTO_GetShiftState [18:58:16]wFMCommunicate request_size=4 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 13 01 00 [18:58:16]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:17]Read from MH i2c: E2 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 0E 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 83 [18:58:17]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:58:17]wFMCommunicate OK [18:58:17]SAM_PROTO_GetShiftState done [18:58:17]FM_GetShiftState done [18:58:17]opened in 1721001862 [18:58:17]opened+sec_in_day 1721088262 [18:58:17]quantity*price = 13500 [18:58:17]sum+1 = 13501 [18:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 99 15.07.2024 18:58 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31658 ФПД: 232131789459104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185817&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31658&fm=232131789459104&tin=02508201610067®Number=0000000000098025&sum=13500 0 [18:58:18]StoreToDocumentArchive [18:58:18]shift 370 fd 31658 [18:58:18]save to /storage/0370/doc_00031658 [18:58:18]save last doc name /storage/0370/doc_00031658 to /storage/kkm_last_doc_name [18:58:18]save OK [18:58:18]Clear old archive folders... [18:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:58:18]tlvbuf is 01495A90 [18:58:18]SAM_PROTO_ClearQueue [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 09 00 00 [18:58:18]Write to MH i2c: E2 08 00 1C 04 80 09 00 00 00 00 00 00 92 [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 1C 04 00 90 00 94 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]SAM_PROTO_ClearQueue done [18:58:18]KKMCreateOFDPacket [18:58:18]OFDProtocolAddRootSTLVToBuf [18:58:18]FM_MakeSignedData [18:58:18]FM_MakeSignedData [18:58:18]SAM_PROTO_SignData [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 01 02 [18:58:18]Write to MH i2c: E2 08 00 1D 04 80 0D 01 02 00 00 00 00 9A [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=255 [18:58:18]MH_SAM_APDU [18:58:18]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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 49 71 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [18:58:18]Write to MH i2c: E2 02 01 1E 04 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 49 71 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 DF [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=31 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 AA 7B 00 00 35 04 06 00 D3 1F 64 DA 0E A0 [18:58:18]Write to MH i2c: E2 22 00 1F 04 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 AA 7B 00 00 35 04 06 00 D3 1F 64 DA 0E A0 00 00 D3 [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 03 02 [18:58:18]Write to MH i2c: E2 08 00 20 04 80 0D 03 02 00 00 00 00 9F [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 0B 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 0B 00 20 04 00 41 F0 87 08 43 DA 98 9A 90 00 AF [18:58:18]RAPDU: 41 F0 87 08 43 DA 98 9A 90 00 [18:58:18]wFMCommunicate OK [18:58:18]SAM_PROTO_SignData done [18:58:18]FM_MakeSignedData done [18:58:18]CreateOFDProtocolMessage [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 11 00 00 [18:58:18]Write to MH i2c: E2 08 00 21 04 80 11 00 00 00 00 00 00 9F [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 17 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 17 00 21 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FA [18:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:58:18]wFMCommunicate OK [18:58:18]CreateOFDProtocolMessage done [18:58:18]OFDSenderStorePacket 31658 [18:58:18]StoreOFDPacket docnum=31658 [18:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 EF FF 1C 01 58 9B 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 49 71 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AA 7B 00 00 35 04 06 00 D3 1F 64 DA 0E A0 41 F0 87 08 43 DA 98 9A [18:58:18]CheckFolder [18:58:18]dirname=/storage/ofd_packets [18:58:18]CheckFolder done [18:58:18]ProducePacketName [18:58:18]name=ofd_packets/00031658 [18:58:18]NVStorageSaveData ofd_packets/00031658 [18:58:18]File name is /storage/ofd_packets/00031658 [18:58:18]Write 322 bytes [18:58:18]NVStorageSaveData done [18:58:18]OFDSenderStorePacket done [18:58:18]KKMCreateOFDPacket done [18:58:18]NVStorageSaveData kkm_last_timestamp [18:58:18]File name is /storage/kkm_last_timestamp [18:58:18]Write 4 bytes [18:58:18]NVStorageSaveData done [18:58:18]ExternCall_PrintAddStr [18:58:18]wPrintStart [18:58:18]Write to MH i2c: 01 00 00 22 04 26 [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: 01 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: 01 07 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [18:58:18]RasterBufferAndPrint [18:58:18]line Счет N : (3)214240 [18:58:18]line ИНН: 02508201610067 [18:58:18]line Контрольно-Кассовый Чек [18:58:18]line ПРОДАЖА [18:58:18]line Товар: 48745000 [18:58:18]line Сигареты Winston Purple Mix [18:58:18]line 1.000 * 135.00 [18:58:18]line = 135.00 [18:58:18]line НДС 12% НСП 1% [18:58:18]line > о реализуемом товаре [18:58:18]line ИТОГО: 135.00 [18:58:18]line НСП 1% : 1.19 [18:58:18]line НДС 12% : 14.34 [18:58:18]line Наличными: 135.00 [18:58:18]line Безнал.: 0.00 [18:58:18]line Место: АЗС № 140 "Партнер Нефть" [18:58:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:58:18]line СНО: Общий режим [18:58:18]line Чек 99 15.07.2024 18:58 [18:58:18]line Смена: 370 ФФД: 1.0 [18:58:18]line ЗНМ: 0300000189 [18:58:18]line РНМ: 0000000000098025 [18:58:18]line Версия ККМ: 001 [18:58:18]line ФМ: 0000000000965389 [18:58:18]line ФД: 31658 [18:58:18]line ФПД: 232131789459104 [18:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185817&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31658&fm=232131789459104&tin=02508201610067®Number=0000000000098025&sum=13500 [18:58:19]OFD Sender: Processing packet 31658 [packets to send 6, broken 5] [18:58:19]ProducePacketName [18:58:19]name=ofd_packets/00031658 [18:58:19]OFD Sender: To server: pG, [18:58:19]CommunicateWithHost lk.salyk.kg:30040 [18:58:19]ConnectInit lk.salyk.kg [18:58:19]line 0 [18:58:19]written 0, free lines is 4095 [18:58:19]Connected sock=10 [18:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 EF FF 1C 01 58 9B 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 49 71 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AA 7B 00 00 35 04 06 00 D3 1F 64 DA 0E A0 41 F0 87 08 43 DA 98 9A [18:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0E 1B 47 00 3D DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AA 7B 00 00 F4 03 04 00 59 1D 95 66 B6 04 01 00 00 17 E9 9B 37 95 CA 85 15 [18:58:19]CommunicateWithHost err = 0 [18:58:19]CheckOFDResponse [18:58:19]1017 (14) - 77093643461234 [18:58:19]1041 (16) - 0000000000965389 [18:58:19]1040 (4) - 31658 [18:58:19]1012 (4) - 15.07.2024 13:00 [18:58:19]1206 (1) - 0 [18:58:19]OFD Sender: Remove packet 31658 [18:58:19]ProducePacketName [18:58:19]name=ofd_packets/00031658 [18:58:19]NVStorageDeleteData [18:58:19]Write to MH i2c: 01 00 00 4A 04 4E [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 02 0D 64 [18:58:19]RasterBufferAndPrint [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]written 0, free lines is 3337 [18:58:19]MH_Cut [18:58:19]Write to MH i2c: D1 01 00 51 04 01 27 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 01 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 01 00 51 04 00 26 [18:58:19]Write to MH i2c: 01 00 00 52 04 56 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]OFD Sender: No OFD packet to send [18:58:20]*** Cut start [18:58:20]*** Partial cut [18:58:20]*** CUTSNS_PIN = 1 [18:58:20]*** CUTSNS_PIN = 0 [18:58:20]*** Brake cut motor [18:58:20]Read from MH i2c: 01 [18:58:20]MH_I2C_Read... [18:58:20]*** Stop cut motor [18:58:20]*** Cut end [18:58:20]Read from MH i2c: 01 07 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [18:58:20]process_action close_receipt done [18:58:20]requested_data is exist [18:58:20]produce_requested_data [18:58:20]requested_item fm.sn is exist - process it [18:58:20]wFMCommunicate request_size=4 [18:58:20]MH_SAM_APDU [18:58:20]CAPDU: 80 11 00 00 [18:58:20]Write to MH i2c: E2 08 00 53 04 80 11 00 00 00 00 00 00 D1 [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:20]Read from MH i2c: E2 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 17 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 17 00 53 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2C [18:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:58:20]wFMCommunicate OK [18:58:20]requested_item fd.num is exist - process it [18:58:20]SAM_PROTO_GetFieldsCounters [18:58:20]wFMCommunicate request_size=4 [18:58:20]MH_SAM_APDU [18:58:20]CAPDU: 80 13 00 00 [18:58:20]Write to MH i2c: E2 08 00 54 04 80 13 00 00 00 00 00 00 D4 [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 62 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 62 00 54 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AA 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [18:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AA 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_GetFieldsCounters done [18:58:21]requested_item shift.num is exist - process it [18:58:21]requested_item shift.opened is exist - process it [18:58:21]req_shift_opened [18:58:21]FM_GetShiftState [18:58:21]SAM_PROTO_GetShiftState [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 13 01 00 [18:58:21]Write to MH i2c: E2 08 00 55 04 80 13 01 00 00 00 00 00 D6 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 0E 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 0E 00 55 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 C9 [18:58:21]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_GetShiftState done [18:58:21]FM_GetShiftState done [18:58:21]req_shift_opened done [18:58:21]requested_item shift.open_date is exist - process it [18:58:21]req_shift_open_date [18:58:21]req_shift_open_date done [18:58:21]produce_requested_data done [18:58:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31658,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [18:58:21]process_action_free close_receipt [18:58:21]json_value_free [18:58:21]json_value_free done [18:58:21]process_json_proto returns [18:58:21]Send response to host [18:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31658,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [18:58:21]free response buf [18:58:21]execute_script done [18:58:21]execute_script returns [18:58:21]free content buf [18:58:21]Sock 7.Close socket [18:58:21]Sock 7.Thread stoped [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [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:39]accept exits with 9 [19:07:39]New connection [19:07:39]New thread 3066965348 created [19:07:39]Thread 3066821988 joined [19:07:39]Waiting for new connection... [19:07:39] Sock 9.Parse request [19:07:39]Sock 9.Check first char [19:07:39]Sock 9.First char is OK [19:07:39]request: POST /json_proto HTTP/1.0 [19:07:39]Method: POST [19:07:39]URL: /json_proto [19:07:39]Method is POST - this is cgi request [19:07:39]url: /json_proto [19:07:39]query_string will be loaded in cgi processing [19:07:39]execute_cgi json_proto POST (null) [19:07:39]execute_cgi path=json_proto method=POST [19:07:39]POST find Content-Length [19:07:39]Host: 172.17.39.68:8080 [19:07:39]Content-Length: 777 [19:07:39]Content-Type: application/json [19:07:39] [19:07:39]POST finish read [19:07:39]Found Content-Length = 777 [19:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214241", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:39]execute_script... [19:07: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)214241", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:39]POST & json_proto [19:07:39]process_json_proto [19:07:39]json parsed OK: [19:07:39]protocol is kg_v1.0 [19:07:39]action value=close_receipt [19:07:39]process_action close_receipt [19:07:39]cmd_close_receipt [19:07:39]MH_GetDate [19:07:39]Write to MH i2c: F0 00 00 56 04 49 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: F0 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: F0 09 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: F0 09 00 56 04 00 7C 73 95 66 D6 48 95 66 55 [19:07:39]GetLastDocTimeStamp 1721069897 [19:07:39]current date 1721070460 [19:07:39]FM_GetShiftState [19:07:39]SAM_PROTO_GetShiftState [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 13 01 00 [19:07:39]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0E 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CB [19:07:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:07:39]wFMCommunicate OK [19:07:39]SAM_PROTO_GetShiftState done [19:07:39]FM_GetShiftState done [19:07:39]opened in 1721001862 [19:07:39]opened+sec_in_day 1721088262 [19:07:39]quantity*price = 17500 [19:07:39]sum+1 = 17501 [19:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 100 15.07.2024 19:07 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31659 ФПД: 170105736137192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31659&fm=170105736137192&tin=02508201610067®Number=0000000000098025&sum=17500 0 [19:07:41]StoreToDocumentArchive [19:07:41]shift 370 fd 31659 [19:07:41]save to /storage/0370/doc_00031659 [19:07:41]save last doc name /storage/0370/doc_00031659 to /storage/kkm_last_doc_name [19:07:41]save OK [19:07:41]Clear old archive folders... [19:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=268 [19:07:41]tlvbuf is 01476050 [19:07:41]SAM_PROTO_ClearQueue [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 09 00 00 [19:07:41]Write to MH i2c: E2 08 00 64 04 80 09 00 00 00 00 00 00 DA [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [19:07:41]RAPDU: 90 00 [19:07:41]wFMCommunicate OK [19:07:41]SAM_PROTO_ClearQueue done [19:07:41]KKMCreateOFDPacket [19:07:41]OFDProtocolAddRootSTLVToBuf [19:07:41]FM_MakeSignedData [19:07:41]FM_MakeSignedData [19:07:41]SAM_PROTO_SignData [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 0D 01 02 [19:07:41]Write to MH i2c: E2 08 00 65 04 80 0D 01 02 00 00 00 00 E2 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [19:07:41]RAPDU: 90 00 [19:07:41]wFMCommunicate OK [19:07:41]wFMCommunicate request_size=255 [19:07:41]MH_SAM_APDU [19:07:41]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 64 00 00 00 F4 03 04 00 7C 73 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [19:07:41]Write to MH i2c: E2 02 01 66 04 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 64 00 00 00 F4 03 04 00 7C 73 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 0C [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [19:07:41]RAPDU: 90 00 [19:07:41]wFMCommunicate OK [19:07:41]wFMCommunicate request_size=27 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 0D 02 02 16 35 33 38 39 10 04 04 00 AB 7B 00 00 35 04 06 00 9A B5 D3 FA 09 E8 [19:07:41]Write to MH i2c: E2 1E 00 67 04 80 0D 02 02 16 00 35 33 38 39 10 04 04 00 AB 7B 00 00 35 04 06 00 9A B5 D3 FA 09 E8 00 00 74 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [19:07:41]RAPDU: 90 00 [19:07:41]wFMCommunicate OK [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 0D 03 02 [19:07:41]Write to MH i2c: E2 08 00 68 04 80 0D 03 02 00 00 00 00 E7 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 0B 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 0B 00 68 04 00 29 10 6A 1A 45 28 E2 2C 90 00 20 [19:07:41]RAPDU: 29 10 6A 1A 45 28 E2 2C 90 00 [19:07:41]wFMCommunicate OK [19:07:41]SAM_PROTO_SignData done [19:07:41]FM_MakeSignedData done [19:07:41]CreateOFDProtocolMessage [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 11 00 00 [19:07:41]Write to MH i2c: E2 08 00 69 04 80 11 00 00 00 00 00 00 E7 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 69 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 42 [19:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:07:41]wFMCommunicate OK [19:07:41]CreateOFDProtocolMessage done [19:07:41]OFDSenderStorePacket 31659 [19:07:41]StoreOFDPacket docnum=31659 [19:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 35 C9 18 01 1A 03 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 64 00 00 00 F4 03 04 00 7C 73 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AB 7B 00 00 35 04 06 00 9A B5 D3 FA 09 E8 29 10 6A 1A 45 28 E2 2C [19:07:41]CheckFolder [19:07:41]dirname=/storage/ofd_packets [19:07:41]CheckFolder done [19:07:41]ProducePacketName [19:07:41]name=ofd_packets/00031659 [19:07:41]NVStorageSaveData ofd_packets/00031659 [19:07:41]File name is /storage/ofd_packets/00031659 [19:07:41]Write 318 bytes [19:07:41]NVStorageSaveData done [19:07:41]OFDSenderStorePacket done [19:07:41]KKMCreateOFDPacket done [19:07:41]NVStorageSaveData kkm_last_timestamp [19:07:41]File name is /storage/kkm_last_timestamp [19:07:41]Write 4 bytes [19:07:41]NVStorageSaveData done [19:07:41]ExternCall_PrintAddStr [19:07:41]wPrintStart [19:07:41]Write to MH i2c: 01 00 00 6A 04 6E [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: 01 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: 01 07 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [19:07:41]RasterBufferAndPrint [19:07:41]line Счет N : (3)214241 [19:07:41]line ИНН: 02508201610067 [19:07:41]line Контрольно-Кассовый Чек [19:07:41]line ПРОДАЖА [19:07:41]line Товар: 4870002329487 [19:07:41]line Напиток Pepsi 1,5л [19:07:41]line 1.000 * 175.00 [19:07:41]line = 175.00 [19:07:41]line НДС 12% НСП 1% [19:07:41]line > о реализуемом товаре [19:07:41]line ИТОГО: 175.00 [19:07:41]line НСП 1% : 1.55 [19:07:41]line НДС 12% : 18.58 [19:07:41]line Наличными: 0.00 [19:07:41]line Безнал.: 175.00 [19:07:41]line Место: АЗС № 140 "Партнер Нефть" [19:07:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:07:41]line СНО: Общий режим [19:07:41]line Чек 100 15.07.2024 19:07 [19:07:41]line Смена: 370 ФФД: 1.0 [19:07:41]line ЗНМ: 0300000189 [19:07:41]line РНМ: 0000000000098025 [19:07:41]line Версия ККМ: 001 [19:07:41]line Платежная система: O! деньги [19:07:41]line ФМ: 0000000000965389 [19:07:41]line ФД: 31659 [19:07:41]line ФПД: 170105736137192 [19:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31659&fm=170105736137192&tin=02508201610067®Number=0000000000098025&sum=17500 [19:07:41]line 0 [19:07:41]OFD Sender: Processing packet 31659 [packets to send 6, broken 5] [19:07:41]ProducePacketName [19:07:41]name=ofd_packets/00031659 [19:07:41]OFD Sender: To server: pG, [19:07:41]CommunicateWithHost lk.salyk.kg:30040 [19:07:41]ConnectInit lk.salyk.kg [19:07:41]written 0, free lines is 4095 [19:07:42]Connected sock=10 [19:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 35 C9 18 01 1A 03 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 64 00 00 00 F4 03 04 00 7C 73 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AB 7B 00 00 35 04 06 00 9A B5 D3 FA 09 E8 29 10 6A 1A 45 28 E2 2C [19:07:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8A 09 47 00 7D 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 39 36 35 33 38 39 10 04 04 00 AB 7B 00 00 F4 03 04 00 8C 1F 95 66 B6 04 01 00 00 F0 14 AE 33 C1 77 0C 75 [19:07:42]CommunicateWithHost err = 0 [19:07:42]CheckOFDResponse [19:07:42]1017 (14) - 77093643461234 [19:07:42]1041 (16) - 0000000000965389 [19:07:42]1040 (4) - 31659 [19:07:42]1012 (4) - 15.07.2024 13:09 [19:07:42]1206 (1) - 0 [19:07:42]OFD Sender: Remove packet 31659 [19:07:42]ProducePacketName [19:07:42]name=ofd_packets/00031659 [19:07:42]NVStorageDeleteData [19:07:42]Write to MH i2c: 01 00 00 94 04 98 [19:07:42]Write i2c OK [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: 01 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: 01 07 00 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 F4 0C 9F [19:07:42]RasterBufferAndPrint [19:07:42]line [19:07:42]line [19:07:42]line [19:07:42]line [19:07:42]line [19:07:42]written 0, free lines is 3324 [19:07:42]MH_Cut [19:07:42]Write to MH i2c: D1 01 00 9B 04 01 71 [19:07:42]Write i2c OK [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: D1 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: D1 01 00 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: D1 01 00 9B 04 00 70 [19:07:42]Write to MH i2c: 01 00 00 9C 04 A0 [19:07:42]Write i2c OK [19:07:42]MH_I2C_Read... [19:07:42]OFD Sender: No OFD packet to send [19:07:43]*** Cut start [19:07:43]*** Partial cut [19:07:43]*** CUTSNS_PIN = 1 [19:07:43]*** CUTSNS_PIN = 0 [19:07:43]*** Brake cut motor [19:07:43]Read from MH i2c: 01 [19:07:43]MH_I2C_Read... [19:07:43]*** Stop cut motor [19:07:43]*** Cut end [19:07:43]Read from MH i2c: 01 07 00 [19:07:43]MH_I2C_Read... [19:07:43]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 FF 0F B5 [19:07:43]process_action close_receipt done [19:07:43]requested_data is exist [19:07:43]produce_requested_data [19:07:43]requested_item fm.sn is exist - process it [19:07:43]wFMCommunicate request_size=4 [19:07:43]MH_SAM_APDU [19:07:43]CAPDU: 80 11 00 00 [19:07:43]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [19:07:43]Write i2c OK [19:07:43]MH_I2C_Read... [19:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:43]Read from MH i2c: E2 [19:07:43]MH_I2C_Read... [19:07:43]Read from MH i2c: E2 17 00 [19:07:43]MH_I2C_Read... [19:07:43]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [19:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:07:43]wFMCommunicate OK [19:07:43]requested_item fd.num is exist - process it [19:07:43]SAM_PROTO_GetFieldsCounters [19:07:43]wFMCommunicate request_size=4 [19:07:43]MH_SAM_APDU [19:07:43]CAPDU: 80 13 00 00 [19:07:43]Write to MH i2c: E2 08 00 9E 04 80 13 00 00 00 00 00 00 1E [19:07:43]Write i2c OK [19:07:43]MH_I2C_Read... [19:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:44]Read from MH i2c: E2 [19:07:44]MH_I2C_Read... [19:07:44]Read from MH i2c: E2 62 00 [19:07:44]MH_I2C_Read... [19:07:44]Read from MH i2c: E2 62 00 9E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AB 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [19:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AB 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:44]wFMCommunicate OK [19:07:44]SAM_PROTO_GetFieldsCounters done [19:07:44]requested_item shift.num is exist - process it [19:07:44]requested_item shift.opened is exist - process it [19:07:44]req_shift_opened [19:07:44]FM_GetShiftState [19:07:44]SAM_PROTO_GetShiftState [19:07:44]wFMCommunicate request_size=4 [19:07:44]MH_SAM_APDU [19:07:44]CAPDU: 80 13 01 00 [19:07:44]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [19:07:44]Write i2c OK [19:07:44]MH_I2C_Read... [19:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:44]Read from MH i2c: E2 [19:07:44]MH_I2C_Read... [19:07:44]Read from MH i2c: E2 0E 00 [19:07:44]MH_I2C_Read... [19:07:44]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 13 [19:07:44]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:07:44]wFMCommunicate OK [19:07:44]SAM_PROTO_GetShiftState done [19:07:44]FM_GetShiftState done [19:07:44]req_shift_opened done [19:07:44]requested_item shift.open_date is exist - process it [19:07:44]req_shift_open_date [19:07:44]req_shift_open_date done [19:07:44]produce_requested_data done [19:07:44]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31659,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [19:07:44]process_action_free close_receipt [19:07:44]json_value_free [19:07:44]json_value_free done [19:07:44]process_json_proto returns [19:07:44]Send response to host [19:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31659,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [19:07:44]free response buf [19:07:44]execute_script done [19:07:44]execute_script returns [19:07:44]free content buf [19:07:44]Sock 9.Close socket [19:07:44]Sock 9.Thread stoped [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:39]accept exits with 7 [19:18:39]New connection [19:18:39]New thread 3066821988 created [19:18:39]Thread 3066965348 joined [19:18:39]Waiting for new connection... [19:18:39] Sock 7.Parse request [19:18:39]Sock 7.Check first char [19:18:39]Sock 7.First char is OK [19:18:39]request: POST /json_proto HTTP/1.0 [19:18:39]Method: POST [19:18:39]URL: /json_proto [19:18:39]Method is POST - this is cgi request [19:18:39]url: /json_proto [19:18:39]query_string will be loaded in cgi processing [19:18:39]execute_cgi json_proto POST (null) [19:18:39]execute_cgi path=json_proto method=POST [19:18:39]POST find Content-Length [19:18:39]Host: 172.17.39.68:8080 [19:18:39]Content-Length: 927 [19:18:39]Content-Type: application/json [19:18:39] [19:18:39]POST finish read [19:18:39]Found Content-Length = 927 [19:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214242", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:39]execute_script... [19:18: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)214242", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:39]POST & json_proto [19:18:39]process_json_proto [19:18:39]json parsed OK: [19:18:39]protocol is kg_v1.0 [19:18:39]action value=close_receipt [19:18:39]process_action close_receipt [19:18:39]cmd_close_receipt [19:18:39]MH_GetDate [19:18:39]Write to MH i2c: F0 00 00 A0 04 93 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: F0 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: F0 09 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: F0 09 00 A0 04 00 0F 76 95 66 D6 48 95 66 35 [19:18:39]GetLastDocTimeStamp 1721070460 [19:18:39]current date 1721071119 [19:18:39]FM_GetShiftState [19:18:39]SAM_PROTO_GetShiftState [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 13 01 00 [19:18:39]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 0E 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 15 [19:18:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:18:39]wFMCommunicate OK [19:18:39]SAM_PROTO_GetShiftState done [19:18:39]FM_GetShiftState done [19:18:39]opened in 1721001862 [19:18:39]opened+sec_in_day 1721088262 [19:18:39]quantity*price = 9500 [19:18:39]sum+1 = 9501 [19:18:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 101 15.07.2024 19:18 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31660 ФПД: 266490293039503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191839&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31660&fm=266490293039503&tin=02508201610067®Number=0000000000098025&sum=18000 0 [19:18:40]StoreToDocumentArchive [19:18:40]shift 370 fd 31660 [19:18:40]save to /storage/0370/doc_00031660 [19:18:40]save last doc name /storage/0370/doc_00031660 to /storage/kkm_last_doc_name [19:18:40]save OK [19:18:40]Clear old archive folders... [19:18:40]ProcessDocumentItem done err = 0, tmpTLVsize=417 [19:18:40]tlvbuf is 01477360 [19:18:40]SAM_PROTO_ClearQueue [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 09 00 00 [19:18:40]Write to MH i2c: E2 08 00 AE 04 80 09 00 00 00 00 00 00 24 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:40]Read from MH i2c: E2 03 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [19:18:40]RAPDU: 90 00 [19:18:40]wFMCommunicate OK [19:18:40]SAM_PROTO_ClearQueue done [19:18:40]KKMCreateOFDPacket [19:18:40]OFDProtocolAddRootSTLVToBuf [19:18:40]FM_MakeSignedData [19:18:40]FM_MakeSignedData [19:18:40]SAM_PROTO_SignData [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 0D 01 02 [19:18:40]Write to MH i2c: E2 08 00 AF 04 80 0D 01 02 00 00 00 00 2C [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [19:18:40]RAPDU: 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=255 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 [19:18:40]Write to MH i2c: E2 02 01 B0 04 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 00 00 51 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [19:18:40]RAPDU: 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=176 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 0D 02 02 AB 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 78 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 65 00 00 00 F4 03 04 00 0F 76 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AC 7B 00 00 35 04 06 00 F2 5F 1B 40 B1 8F [19:18:40]Write to MH i2c: E2 B3 00 B1 04 80 0D 02 02 AB 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 78 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 65 00 00 00 F4 03 04 00 0F 76 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AC 7B 00 00 35 04 06 00 F2 5F 1B 40 B1 8F 00 00 46 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [19:18:40]RAPDU: 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 0D 03 02 [19:18:40]Write to MH i2c: E2 08 00 B2 04 80 0D 03 02 00 00 00 00 31 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0B 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0B 00 B2 04 00 E2 2D 78 63 C8 F4 6D CD 90 00 12 [19:18:40]RAPDU: E2 2D 78 63 C8 F4 6D CD 90 00 [19:18:40]wFMCommunicate OK [19:18:40]SAM_PROTO_SignData done [19:18:40]FM_MakeSignedData done [19:18:40]CreateOFDProtocolMessage [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 11 00 00 [19:18:40]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8C [19:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:18:40]wFMCommunicate OK [19:18:40]CreateOFDProtocolMessage done [19:18:40]OFDSenderStorePacket 31660 [19:18:40]StoreOFDPacket docnum=31660 [19:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 B5 01 00 00 40 B0 AD 01 20 EF 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 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 78 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 65 00 00 00 F4 03 04 00 0F 76 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AC 7B 00 00 35 04 06 00 F2 5F 1B 40 B1 8F E2 2D 78 63 C8 F4 6D CD [19:18:40]CheckFolder [19:18:40]dirname=/storage/ofd_packets [19:18:40]CheckFolder done [19:18:40]ProducePacketName [19:18:40]name=ofd_packets/00031660 [19:18:40]NVStorageSaveData ofd_packets/00031660 [19:18:40]File name is /storage/ofd_packets/00031660 [19:18:40]Write 467 bytes [19:18:40]NVStorageSaveData done [19:18:40]OFDSenderStorePacket done [19:18:40]KKMCreateOFDPacket done [19:18:40]NVStorageSaveData kkm_last_timestamp [19:18:40]File name is /storage/kkm_last_timestamp [19:18:40]Write 4 bytes [19:18:40]NVStorageSaveData done [19:18:40]ExternCall_PrintAddStr [19:18:40]wPrintStart [19:18:40]Write to MH i2c: 01 00 00 B4 04 B8 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [19:18:41]RasterBufferAndPrint [19:18:41]line Счет N : (3)214242 [19:18:41]line ИНН: 02508201610067 [19:18:41]line Контрольно-Кассовый Чек [19:18:41]line ПРОДАЖА [19:18:41]line Товар: 4700000480050 [19:18:41]line Напиток Nitro Energy эн green ж/б 0,45л [19:18:41]line 1.000 * 95.00 [19:18:41]line = 95.00 [19:18:41]line НДС 12% НСП 1% [19:18:41]line > о реализуемом товаре [19:18:41]line Товар: 4600682557456 [19:18:41]line Напиток FLash up energy эн ж/б 0,5/0,45л [19:18:41]line 1.000 * 85.00 [19:18:41]line = 85.00 [19:18:41]line НДС 12% НСП 1% [19:18:41]line > о реализуемом товаре [19:18:41]line ИТОГО: 180.00 [19:18:41]line НСП 1% : 1.59 [19:18:41]line НДС 12% : 19.12 [19:18:41]line Наличными: 180.00 [19:18:41]line Безнал.: 0.00 [19:18:41]line Место: АЗС № 140 "Партнер Нефть" [19:18:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:18:41]line СНО: Общий режим [19:18:41]line Чек 101 15.07.2024 19:18 [19:18:41]line Смена: 370 ФФД: 1.0 [19:18:41]line ЗНМ: 0300000189 [19:18:41]line РНМ: 0000000000098025 [19:18:41]line Версия ККМ: 001 [19:18:41]line ФМ: 0000000000965389 [19:18:41]line ФД: 31660 [19:18:41]line ФПД: 266490293039503 [19:18:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191839&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31660&fm=266490293039503&tin=02508201610067®Number=0000000000098025&sum=18000 [19:18:41]line 0 [19:18:41]OFD Sender: Processing packet 31660 [packets to send 6, broken 5] [19:18:41]ProducePacketName [19:18:41]name=ofd_packets/00031660 [19:18:41]OFD Sender: To server: pG, [19:18:41]CommunicateWithHost lk.salyk.kg:30040 [19:18:41]ConnectInit lk.salyk.kg [19:18:41]written 0, free lines is 4095 [19:18:41]Connected sock=10 [19:18:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 B5 01 00 00 40 B0 AD 01 20 EF 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 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 78 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 65 00 00 00 F4 03 04 00 0F 76 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AC 7B 00 00 35 04 06 00 F2 5F 1B 40 B1 8F E2 2D 78 63 C8 F4 6D CD [19:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6E 12 47 00 87 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AC 7B 00 00 F4 03 04 00 1F 22 95 66 B6 04 01 00 00 19 58 85 00 2E A2 E0 18 [19:18:41]CommunicateWithHost err = 0 [19:18:41]CheckOFDResponse [19:18:41]1017 (14) - 77093643461234 [19:18:41]1041 (16) - 0000000000965389 [19:18:41]1040 (4) - 31660 [19:18:41]1012 (4) - 15.07.2024 13:20 [19:18:41]1206 (1) - 0 [19:18:41]OFD Sender: Remove packet 31660 [19:18:41]ProducePacketName [19:18:41]name=ofd_packets/00031660 [19:18:41]NVStorageDeleteData [19:18:41]Write to MH i2c: 01 00 00 E4 04 E8 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 07 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 90 0C 8B [19:18:41]RasterBufferAndPrint [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]written 0, free lines is 3221 [19:18:41]MH_Cut [19:18:41]Write to MH i2c: D1 01 00 EB 04 01 C1 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 01 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 01 00 EB 04 00 C0 [19:18:41]Write to MH i2c: 01 00 00 EC 04 F0 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:42]OFD Sender: No OFD packet to send [19:18:42]*** Cut start [19:18:42]*** Partial cut [19:18:42]*** CUTSNS_PIN = 1 [19:18:42]*** CUTSNS_PIN = 0 [19:18:42]*** Brake cut motor [19:18:43]Read from MH i2c: 01 [19:18:43]MH_I2C_Read... [19:18:43]*** Stop cut motor [19:18:43]*** Cut end [19:18:43]Read from MH i2c: 01 07 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [19:18:43]process_action close_receipt done [19:18:43]requested_data is exist [19:18:43]produce_requested_data [19:18:43]requested_item fm.sn is exist - process it [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 11 00 00 [19:18:43]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [19:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:18:43]wFMCommunicate OK [19:18:43]requested_item fd.num is exist - process it [19:18:43]SAM_PROTO_GetFieldsCounters [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 13 00 00 [19:18:43]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 62 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 62 00 EE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AC 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:18:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AC 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_GetFieldsCounters done [19:18:43]requested_item shift.num is exist - process it [19:18:43]requested_item shift.opened is exist - process it [19:18:43]req_shift_opened [19:18:43]FM_GetShiftState [19:18:43]SAM_PROTO_GetShiftState [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 13 01 00 [19:18:43]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 63 [19:18:43]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_GetShiftState done [19:18:43]FM_GetShiftState done [19:18:43]req_shift_opened done [19:18:43]requested_item shift.open_date is exist - process it [19:18:43]req_shift_open_date [19:18:43]req_shift_open_date done [19:18:43]produce_requested_data done [19:18:43]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31660,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [19:18:43]process_action_free close_receipt [19:18:43]json_value_free [19:18:43]json_value_free done [19:18:43]process_json_proto returns [19:18:43]Send response to host [19:18:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31660,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [19:18:43]free response buf [19:18:43]execute_script done [19:18:43]execute_script returns [19:18:43]free content buf [19:18:43]Sock 7.Close socket [19:18:43]Sock 7.Thread stoped [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:29]accept exits with 9 [19:36:29]New connection [19:36:29]New thread 3066965348 created [19:36:29]Thread 3066821988 joined [19:36:29]Waiting for new connection... [19:36:29] Sock 9.Parse request [19:36:29]Sock 9.Check first char [19:36:29]Sock 9.First char is OK [19:36:29]request: POST /json_proto HTTP/1.0 [19:36:29]Method: POST [19:36:29]URL: /json_proto [19:36:29]Method is POST - this is cgi request [19:36:29]url: /json_proto [19:36:29]query_string will be loaded in cgi processing [19:36:29]execute_cgi json_proto POST (null) [19:36:29]execute_cgi path=json_proto method=POST [19:36:29]POST find Content-Length [19:36:29]Host: 172.17.39.68:8080 [19:36:29]Content-Length: 782 [19:36:29]Content-Type: application/json [19:36:29] [19:36:29]POST finish read [19:36:29]Found Content-Length = 782 [19:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214243", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:29]execute_script... [19:36: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)214243", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:29]POST & json_proto [19:36:29]process_json_proto [19:36:29]json parsed OK: [19:36:29]protocol is kg_v1.0 [19:36:29]action value=close_receipt [19:36:29]process_action close_receipt [19:36:29]cmd_close_receipt [19:36:29]MH_GetDate [19:36:29]Write to MH i2c: F0 00 00 F0 04 E3 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 09 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 09 00 F0 04 00 3E 7A 95 66 D6 48 95 66 B8 [19:36:29]GetLastDocTimeStamp 1721071119 [19:36:29]current date 1721072190 [19:36:29]FM_GetShiftState [19:36:29]SAM_PROTO_GetShiftState [19:36:29]wFMCommunicate request_size=4 [19:36:29]MH_SAM_APDU [19:36:29]CAPDU: 80 13 01 00 [19:36:29]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:29]Read from MH i2c: E2 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 0E 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 86 67 94 66 00 00 00 00 90 00 65 [19:36:29]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:36:29]wFMCommunicate OK [19:36:29]SAM_PROTO_GetShiftState done [19:36:29]FM_GetShiftState done [19:36:29]opened in 1721001862 [19:36:29]opened+sec_in_day 1721088262 [19:36:29]quantity*price = 14000 [19:36:29]sum+1 = 14001 [19:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 102 15.07.2024 19:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31661 ФПД: 264071515296490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193630&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31661&fm=264071515296490&tin=02508201610067®Number=0000000000098025&sum=14000 0 [19:36:30]StoreToDocumentArchive [19:36:30]shift 370 fd 31661 [19:36:30]save to /storage/0370/doc_00031661 [19:36:30]save last doc name /storage/0370/doc_00031661 to /storage/kkm_last_doc_name [19:36:30]save OK [19:36:30]Clear old archive folders... [19:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:36:30]tlvbuf is 01476550 [19:36:30]SAM_PROTO_ClearQueue [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 09 00 00 [19:36:30]Write to MH i2c: E2 08 00 FE 04 80 09 00 00 00 00 00 00 74 [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:30]Read from MH i2c: E2 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 03 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [19:36:30]RAPDU: 90 00 [19:36:30]wFMCommunicate OK [19:36:30]SAM_PROTO_ClearQueue done [19:36:30]KKMCreateOFDPacket [19:36:30]OFDProtocolAddRootSTLVToBuf [19:36:30]FM_MakeSignedData [19:36:30]FM_MakeSignedData [19:36:30]SAM_PROTO_SignData [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 0D 01 02 [19:36:30]Write to MH i2c: E2 08 00 FF 04 80 0D 01 02 00 00 00 00 7C [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=255 [19:36:31]MH_SAM_APDU [19:36:31]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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3E 7A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [19:36:31]Write to MH i2c: E2 02 01 00 05 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3E 7A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 FD [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=32 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 AD 7B 00 00 35 04 06 00 F0 2B F0 DD 52 EA [19:36:31]Write to MH i2c: E2 23 00 01 05 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 AD 7B 00 00 35 04 06 00 F0 2B F0 DD 52 EA 00 00 31 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 03 02 [19:36:31]Write to MH i2c: E2 08 00 02 05 80 0D 03 02 00 00 00 00 82 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 0B 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 0B 00 02 05 00 C5 A2 72 CE BB 9D 24 AB 90 00 51 [19:36:31]RAPDU: C5 A2 72 CE BB 9D 24 AB 90 00 [19:36:31]wFMCommunicate OK [19:36:31]SAM_PROTO_SignData done [19:36:31]FM_MakeSignedData done [19:36:31]CreateOFDProtocolMessage [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 11 00 00 [19:36:31]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 17 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DD [19:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:36:31]wFMCommunicate OK [19:36:31]CreateOFDProtocolMessage done [19:36:31]OFDSenderStorePacket 31661 [19:36:31]StoreOFDPacket docnum=31661 [19:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 0A F9 1D 01 FC 8D 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3E 7A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AD 7B 00 00 35 04 06 00 F0 2B F0 DD 52 EA C5 A2 72 CE BB 9D 24 AB [19:36:31]CheckFolder [19:36:31]dirname=/storage/ofd_packets [19:36:31]CheckFolder done [19:36:31]ProducePacketName [19:36:31]name=ofd_packets/00031661 [19:36:31]NVStorageSaveData ofd_packets/00031661 [19:36:31]File name is /storage/ofd_packets/00031661 [19:36:31]Write 323 bytes [19:36:31]NVStorageSaveData done [19:36:31]OFDSenderStorePacket done [19:36:31]KKMCreateOFDPacket done [19:36:31]NVStorageSaveData kkm_last_timestamp [19:36:31]File name is /storage/kkm_last_timestamp [19:36:31]Write 4 bytes [19:36:31]OFD Sender: Processing packet 31661 [packets to send 6, broken 5] [19:36:31]ProducePacketName [19:36:31]name=ofd_packets/00031661 [19:36:31]OFD Sender: To server: pG, [19:36:31]CommunicateWithHost lk.salyk.kg:30040 [19:36:31]ConnectInit lk.salyk.kg [19:36:31]NVStorageSaveData done [19:36:31]ExternCall_PrintAddStr [19:36:31]wPrintStart [19:36:31]Write to MH i2c: 01 00 00 04 05 09 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 07 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FF 0F 1E [19:36:31]RasterBufferAndPrint [19:36:31]line Счет N : (3)214243 [19:36:31]line ИНН: 02508201610067 [19:36:31]line Контрольно-Кассовый Чек [19:36:31]line ПРОДАЖА [19:36:31]line Товар: 48743570 [19:36:31]line Сигареты Winston XStyle Blue [19:36:31]line 1.000 * 140.00 [19:36:31]line = 140.00 [19:36:31]line НДС 12% НСП 1% [19:36:31]line > о реализуемом товаре [19:36:31]line ИТОГО: 140.00 [19:36:31]line НСП 1% : 1.24 [19:36:31]line НДС 12% : 14.87 [19:36:31]line Наличными: 0.00 [19:36:31]line Безнал.: 140.00 [19:36:31]line Место: АЗС № 140 "Партнер Нефть" [19:36:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:36:31]line СНО: Общий режим [19:36:31]line Чек 102 15.07.2024 19:36 [19:36:31]line Смена: 370 ФФД: 1.0 [19:36:31]line ЗНМ: 0300000189 [19:36:31]line РНМ: 0000000000098025 [19:36:31]line Версия ККМ: 001 [19:36:31]line Платежная система: O! деньги [19:36:31]line ФМ: 0000000000965389 [19:36:31]line ФД: 31661 [19:36:31]line ФПД: 264071515296490 [19:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193630&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31661&fm=264071515296490&tin=02508201610067®Number=0000000000098025&sum=14000 [19:36:31]line 0 [19:36:31]Connected sock=10 [19:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 0A F9 1D 01 FC 8D 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3E 7A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AD 7B 00 00 35 04 06 00 F0 2B F0 DD 52 EA C5 A2 72 CE BB 9D 24 AB [19:36:31]written 0, free lines is 4095 [19:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 9D DE 47 00 C8 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AD 7B 00 00 F4 03 04 00 4D 26 95 66 B6 04 01 00 00 CB 83 24 EF CC 1B 1C 2C [19:36:31]CommunicateWithHost err = 0 [19:36:31]CheckOFDResponse [19:36:31]1017 (14) - 77093643461234 [19:36:31]1041 (16) - 0000000000965389 [19:36:31]1040 (4) - 31661 [19:36:31]1012 (4) - 15.07.2024 13:38 [19:36:31]1206 (1) - 0 [19:36:31]OFD Sender: Remove packet 31661 [19:36:31]ProducePacketName [19:36:32]name=ofd_packets/00031661 [19:36:32]NVStorageDeleteData [19:36:32]Write to MH i2c: 01 00 00 2E 05 33 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 E0 0C 26 [19:36:32]RasterBufferAndPrint [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]written 0, free lines is 3301 [19:36:32]MH_Cut [19:36:32]Write to MH i2c: D1 01 00 35 05 01 0C [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 35 05 00 0B [19:36:32]Write to MH i2c: 01 00 00 36 05 3B [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]OFD Sender: No OFD packet to send [19:36:33]*** Cut start [19:36:33]*** Partial cut [19:36:33]*** CUTSNS_PIN = 1 [19:36:33]*** CUTSNS_PIN = 0 [19:36:33]*** Brake cut motor [19:36:33]Read from MH i2c: 01 [19:36:33]MH_I2C_Read... [19:36:33]*** Stop cut motor [19:36:33]*** Cut end [19:36:33]Read from MH i2c: 01 07 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [19:36:33]process_action close_receipt done [19:36:33]requested_data is exist [19:36:33]produce_requested_data [19:36:33]requested_item fm.sn is exist - process it [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 11 00 00 [19:36:33]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 17 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 11 [19:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:36:33]wFMCommunicate OK [19:36:33]requested_item fd.num is exist - process it [19:36:33]SAM_PROTO_GetFieldsCounters [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 13 00 00 [19:36:33]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 62 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AD 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AD 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:33]wFMCommunicate OK [19:36:33]SAM_PROTO_GetFieldsCounters done [19:36:33]requested_item shift.num is exist - process it [19:36:33]requested_item shift.opened is exist - process it [19:36:33]req_shift_opened [19:36:33]FM_GetShiftState [19:36:33]SAM_PROTO_GetShiftState [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 13 01 00 [19:36:33]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 0E 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 AE [19:36:33]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:36:33]wFMCommunicate OK [19:36:33]SAM_PROTO_GetShiftState done [19:36:33]FM_GetShiftState done [19:36:33]req_shift_opened done [19:36:33]requested_item shift.open_date is exist - process it [19:36:33]req_shift_open_date [19:36:33]req_shift_open_date done [19:36:33]produce_requested_data done [19:36:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31661,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [19:36:33]process_action_free close_receipt [19:36:33]json_value_free [19:36:33]json_value_free done [19:36:33]process_json_proto returns [19:36:33]Send response to host [19:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31661,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [19:36:33]free response buf [19:36:33]execute_script done [19:36:33]execute_script returns [19:36:33]free content buf [19:36:33]Sock 9.Close socket [19:36:33]Sock 9.Thread stoped [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:30]accept exits with 7 [19:43:30]New connection [19:43:30]New thread 3066821988 created [19:43:30]Thread 3066965348 joined [19:43:30]Waiting for new connection... [19:43:30] Sock 7.Parse request [19:43:30]Sock 7.Check first char [19:43:30]Sock 7.First char is OK [19:43:30]request: POST /json_proto HTTP/1.0 [19:43:30]Method: POST [19:43:30]URL: /json_proto [19:43:30]Method is POST - this is cgi request [19:43:30]url: /json_proto [19:43:30]query_string will be loaded in cgi processing [19:43:30]execute_cgi json_proto POST (null) [19:43:30]execute_cgi path=json_proto method=POST [19:43:30]POST find Content-Length [19:43:30]Host: 172.17.39.68:8080 [19:43:30]Content-Length: 1035 [19:43:30]Content-Type: application/json [19:43:30] [19:43:30]POST finish read [19:43:30]Found Content-Length = 1035 [19:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214244", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.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" ] } } [19:43:30]execute_script... [19:43: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)214244", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.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" ] } } [19:43:30]POST & json_proto [19:43:30]process_json_proto [19:43:30]json parsed OK: [19:43:30]protocol is kg_v1.0 [19:43:30]action value=close_receipt [19:43:30]process_action close_receipt [19:43:30]cmd_close_receipt [19:43:30]MH_GetDate [19:43:30]Write to MH i2c: F0 00 00 3A 05 2E [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: F0 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: F0 09 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: F0 09 00 3A 05 00 E2 7B 95 66 D6 48 95 66 A8 [19:43:30]GetLastDocTimeStamp 1721072190 [19:43:30]current date 1721072610 [19:43:30]FM_GetShiftState [19:43:30]SAM_PROTO_GetShiftState [19:43:30]wFMCommunicate request_size=4 [19:43:30]MH_SAM_APDU [19:43:30]CAPDU: 80 13 01 00 [19:43:30]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:30]Read from MH i2c: E2 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 0E 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B0 [19:43:30]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:43:30]wFMCommunicate OK [19:43:30]SAM_PROTO_GetShiftState done [19:43:30]FM_GetShiftState done [19:43:30]opened in 1721001862 [19:43:30]opened+sec_in_day 1721088262 [19:43:30]quantity*price = 11000 [19:43:30]sum+1 = 11001 [19:43:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110066 Сэндвич с майонезом Талас Даамы 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 103 15.07.2024 19:43 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31662 ФПД: 112653461021092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T194330&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31662&fm=112653461021092&tin=02508201610067®Number=0000000000098025&sum=25000 0 [19:43:31]StoreToDocumentArchive [19:43:31]shift 370 fd 31662 [19:43:31]save to /storage/0370/doc_00031662 [19:43:31]save last doc name /storage/0370/doc_00031662 to /storage/kkm_last_doc_name [19:43:31]save OK [19:43:31]Clear old archive folders... [19:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=426 [19:43:31]tlvbuf is 01475E30 [19:43:31]SAM_PROTO_ClearQueue [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 09 00 00 [19:43:31]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_ClearQueue done [19:43:31]KKMCreateOFDPacket [19:43:31]OFDProtocolAddRootSTLVToBuf [19:43:31]FM_MakeSignedData [19:43:31]FM_MakeSignedData [19:43:31]SAM_PROTO_SignData [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 0D 01 02 [19:43:31]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]wFMCommunicate request_size=255 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 [19:43:31]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 00 00 75 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]wFMCommunicate request_size=185 [19:43:31]MH_SAM_APDU [19:43:31]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 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 67 00 00 00 F4 03 04 00 E2 7B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AE 7B 00 00 35 04 06 00 66 75 2D 86 E1 A4 [19:43:31]Write to MH i2c: E2 BC 00 4B 05 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 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 67 00 00 00 F4 03 04 00 E2 7B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AE 7B 00 00 35 04 06 00 66 75 2D 86 E1 A4 00 00 F5 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 0D 03 02 [19:43:31]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0B 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0B 00 4C 05 00 E9 B1 62 38 4D 03 F6 2F 90 00 76 [19:43:31]RAPDU: E9 B1 62 38 4D 03 F6 2F 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_SignData done [19:43:31]FM_MakeSignedData done [19:43:31]CreateOFDProtocolMessage [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 11 00 00 [19:43:31]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 27 [19:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:43:31]wFMCommunicate OK [19:43:31]CreateOFDProtocolMessage done [19:43:31]OFDSenderStorePacket 31662 [19:43:31]StoreOFDPacket docnum=31662 [19:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BE 01 00 00 6D C0 B6 01 26 7C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 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 67 00 00 00 F4 03 04 00 E2 7B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AE 7B 00 00 35 04 06 00 66 75 2D 86 E1 A4 E9 B1 62 38 4D 03 F6 2F [19:43:31]CheckFolder [19:43:31]dirname=/storage/ofd_packets [19:43:31]CheckFolder done [19:43:31]ProducePacketName [19:43:31]name=ofd_packets/00031662 [19:43:31]NVStorageSaveData ofd_packets/00031662 [19:43:31]File name is /storage/ofd_packets/00031662 [19:43:31]Write 476 bytes [19:43:31]NVStorageSaveData done [19:43:31]OFDSenderStorePacket done [19:43:31]KKMCreateOFDPacket done [19:43:31]NVStorageSaveData kkm_last_timestamp [19:43:31]File name is /storage/kkm_last_timestamp [19:43:31]Write 4 bytes [19:43:31]NVStorageSaveData done [19:43:31]ExternCall_PrintAddStr [19:43:32]wPrintStart [19:43:32]Write to MH i2c: 01 00 00 4E 05 53 [19:43:32]OFD Sender: Processing packet 31662 [packets to send 6, broken 5] [19:43:32]ProducePacketName [19:43:32]name=ofd_packets/00031662 [19:43:32]Write i2c OK [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: 01 [19:43:32]MH_I2C_Read... [19:43:32]OFD Sender: To server: pG, [19:43:32]CommunicateWithHost lk.salyk.kg:30040 [19:43:32]ConnectInit lk.salyk.kg [19:43:32]Read from MH i2c: 01 07 00 [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [19:43:32]RasterBufferAndPrint [19:43:32]line Счет N : (3)214244 [19:43:32]line ИНН: 02508201610067 [19:43:32]line Контрольно-Кассовый Чек [19:43:32]line ПРОДАЖА [19:43:32]line Товар: 4870202521261 [19:43:32]line Напиток MAXI чай 1,2 лесные ягоды [19:43:32]line 1.000 * 110.00 [19:43:32]line = 110.00 [19:43:32]line НДС 12% НСП 1% [19:43:32]line > о реализуемом товаре [19:43:32]line Товар: 4700007110066 [19:43:32]line Сэндвич с майонезом Талас Даамы [19:43:32]line 2.000 * 70.00 [19:43:32]line = 140.00 [19:43:32]line НДС 12% НСП 1% [19:43:32]line > о реализуемом товаре [19:43:32]line ИТОГО: 250.00 [19:43:32]line НСП 1% : 2.21 [19:43:32]line НДС 12% : 26.55 [19:43:32]line Наличными: 250.00 [19:43:32]line Безнал.: 0.00 [19:43:32]line Место: АЗС № 140 "Партнер Нефть" [19:43:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:43:32]line СНО: Общий режим [19:43:32]line Чек 103 15.07.2024 19:43 [19:43:32]line Смена: 370 ФФД: 1.0 [19:43:32]line ЗНМ: 0300000189 [19:43:32]line РНМ: 0000000000098025 [19:43:32]line Версия ККМ: 001 [19:43:32]line ФМ: 0000000000965389 [19:43:32]line ФД: 31662 [19:43:32]line ФПД: 112653461021092 [19:43:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T194330&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31662&fm=112653461021092&tin=02508201610067®Number=0000000000098025&sum=25000 [19:43:32]line 0 [19:43:32]written 0, free lines is 4095 [19:43:32]Connected sock=10 [19:43:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BE 01 00 00 6D C0 B6 01 26 7C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B 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 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 67 00 00 00 F4 03 04 00 E2 7B 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AE 7B 00 00 35 04 06 00 66 75 2D 86 E1 A4 E9 B1 62 38 4D 03 F6 2F [19:43:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 72 8F 47 00 AD EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AE 7B 00 00 F4 03 04 00 F2 27 95 66 B6 04 01 00 00 E7 E3 B1 86 C8 55 AF AF [19:43:32]CommunicateWithHost err = 0 [19:43:32]CheckOFDResponse [19:43:32]1017 (14) - 77093643461234 [19:43:32]1041 (16) - 0000000000965389 [19:43:32]1040 (4) - 31662 [19:43:32]1012 (4) - 15.07.2024 13:45 [19:43:32]1206 (1) - 0 [19:43:32]OFD Sender: Remove packet 31662 [19:43:32]ProducePacketName [19:43:32]name=ofd_packets/00031662 [19:43:32]NVStorageDeleteData [19:43:32]Write to MH i2c: 01 00 00 7E 05 83 [19:43:32]Write i2c OK [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: 01 [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: 01 07 00 [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 98 0C 2E [19:43:32]RasterBufferAndPrint [19:43:32]line [19:43:32]line [19:43:32]line [19:43:32]line [19:43:32]line [19:43:32]written 0, free lines is 3232 [19:43:32]MH_Cut [19:43:32]Write to MH i2c: D1 01 00 85 05 01 5C [19:43:32]Write i2c OK [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: D1 [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: D1 01 00 [19:43:32]MH_I2C_Read... [19:43:32]Read from MH i2c: D1 01 00 85 05 00 5B [19:43:32]Write to MH i2c: 01 00 00 86 05 8B [19:43:32]Write i2c OK [19:43:32]MH_I2C_Read... [19:43:33]OFD Sender: No OFD packet to send [19:43:33]*** Cut start [19:43:33]*** Partial cut [19:43:33]*** CUTSNS_PIN = 1 [19:43:33]*** CUTSNS_PIN = 0 [19:43:33]*** Brake cut motor [19:43:34]Read from MH i2c: 01 [19:43:34]MH_I2C_Read... [19:43:34]*** Stop cut motor [19:43:34]*** Cut end [19:43:34]Read from MH i2c: 01 07 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [19:43:34]process_action close_receipt done [19:43:34]requested_data is exist [19:43:34]produce_requested_data [19:43:34]requested_item fm.sn is exist - process it [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 11 00 00 [19:43:34]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 17 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 61 [19:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:43:34]wFMCommunicate OK [19:43:34]requested_item fd.num is exist - process it [19:43:34]SAM_PROTO_GetFieldsCounters [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 13 00 00 [19:43:34]Write to MH i2c: E2 08 00 88 05 80 13 00 00 00 00 00 00 09 [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 62 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 62 00 88 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AE 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [19:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AE 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:34]wFMCommunicate OK [19:43:34]SAM_PROTO_GetFieldsCounters done [19:43:34]requested_item shift.num is exist - process it [19:43:34]requested_item shift.opened is exist - process it [19:43:34]req_shift_opened [19:43:34]FM_GetShiftState [19:43:34]SAM_PROTO_GetShiftState [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 13 01 00 [19:43:34]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 0E 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 FE [19:43:34]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [19:43:34]wFMCommunicate OK [19:43:34]SAM_PROTO_GetShiftState done [19:43:34]FM_GetShiftState done [19:43:34]req_shift_opened done [19:43:34]requested_item shift.open_date is exist - process it [19:43:34]req_shift_open_date [19:43:34]req_shift_open_date done [19:43:34]produce_requested_data done [19:43:34]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31662,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [19:43:34]process_action_free close_receipt [19:43:34]json_value_free [19:43:34]json_value_free done [19:43:34]process_json_proto returns [19:43:34]Send response to host [19:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31662,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [19:43:34]free response buf [19:43:34]execute_script done [19:43:34]execute_script returns [19:43:34]free content buf [19:43:34]Sock 7.Close socket [19:43:34]Sock 7.Thread stoped [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]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:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:10]accept exits with 9 [20:24:10]New connection [20:24:10]New thread 3066965348 created [20:24:10]Thread 3066821988 joined [20:24:10]Waiting for new connection... [20:24:10] Sock 9.Parse request [20:24:10]Sock 9.Check first char [20:24:10]Sock 9.First char is OK [20:24:10]request: POST /json_proto HTTP/1.0 [20:24:10]Method: POST [20:24:10]URL: /json_proto [20:24:10]Method is POST - this is cgi request [20:24:10]url: /json_proto [20:24:10]query_string will be loaded in cgi processing [20:24:10]execute_cgi json_proto POST (null) [20:24:10]execute_cgi path=json_proto method=POST [20:24:10]POST find Content-Length [20:24:10]Host: 172.17.39.68:8080 [20:24:10]Content-Length: 1503 [20:24:10]Content-Type: application/json [20:24:10] [20:24:10]POST finish read [20:24:10]Found Content-Length = 1503 [20:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214245", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.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 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:10]execute_script... [20:24: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)214245", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.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 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:10]POST & json_proto [20:24:10]process_json_proto [20:24:10]json parsed OK: [20:24:10]protocol is kg_v1.0 [20:24:10]action value=close_receipt [20:24:10]process_action close_receipt [20:24:10]cmd_close_receipt [20:24:10]MH_GetDate [20:24:10]Write to MH i2c: F0 00 00 8A 05 7E [20:24:10]Write i2c OK [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: F0 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: F0 09 00 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: F0 09 00 8A 05 00 6B 85 95 66 D6 48 95 66 8B [20:24:10]GetLastDocTimeStamp 1721072610 [20:24:10]current date 1721075051 [20:24:10]FM_GetShiftState [20:24:10]SAM_PROTO_GetShiftState [20:24:10]wFMCommunicate request_size=4 [20:24:10]MH_SAM_APDU [20:24:10]CAPDU: 80 13 01 00 [20:24:10]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [20:24:10]Write i2c OK [20:24:10]MH_I2C_Read... [20:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:10]Read from MH i2c: E2 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: E2 0E 00 [20:24:10]MH_I2C_Read... [20:24:10]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 00 [20:24:10]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:24:10]wFMCommunicate OK [20:24:10]SAM_PROTO_GetShiftState done [20:24:10]FM_GetShiftState done [20:24:10]opened in 1721001862 [20:24:10]opened+sec_in_day 1721088262 [20:24:10]quantity*price = 26000 [20:24:10]sum+1 = 26001 [20:24:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 530.00 НСП 1% : 4.69 НДС 12% : 56.27 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 104 15.07.2024 20:24 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31663 ФПД: 184383193050262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T202411&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31663&fm=184383193050262&tin=02508201610067®Number=0000000000098025&sum=53000 0 [20:24:11]StoreToDocumentArchive [20:24:11]shift 370 fd 31663 [20:24:11]save to /storage/0370/doc_00031663 [20:24:11]save last doc name /storage/0370/doc_00031663 to /storage/kkm_last_doc_name [20:24:11]save OK [20:24:11]Clear old archive folders... [20:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=612 [20:24:11]tlvbuf is 01477FC0 [20:24:11]SAM_PROTO_ClearQueue [20:24:11]wFMCommunicate request_size=4 [20:24:11]MH_SAM_APDU [20:24:11]CAPDU: 80 09 00 00 [20:24:11]Write to MH i2c: E2 08 00 98 05 80 09 00 00 00 00 00 00 0F [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:11]Read from MH i2c: E2 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 03 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [20:24:11]RAPDU: 90 00 [20:24:11]wFMCommunicate OK [20:24:11]SAM_PROTO_ClearQueue done [20:24:11]KKMCreateOFDPacket [20:24:11]OFDProtocolAddRootSTLVToBuf [20:24:11]FM_MakeSignedData [20:24:11]FM_MakeSignedData [20:24:11]SAM_PROTO_SignData [20:24:11]wFMCommunicate request_size=4 [20:24:11]MH_SAM_APDU [20:24:11]CAPDU: 80 0D 01 02 [20:24:11]Write to MH i2c: E2 08 00 99 05 80 0D 01 02 00 00 00 00 17 [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:11]Read from MH i2c: E2 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 03 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [20:24:11]RAPDU: 90 00 [20:24:11]wFMCommunicate OK [20:24:11]wFMCommunicate request_size=255 [20:24:11]MH_SAM_APDU [20:24:11]CAPDU: 80 0D 02 02 FA 03 00 64 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA [20:24:11]Write to MH i2c: E2 02 01 9A 05 80 0D 02 02 FA 00 03 00 64 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 00 00 FE [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=255 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 02 02 FA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 15 00 [20:24:12]Write to MH i2c: E2 02 01 9B 05 80 0D 02 02 FA 00 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 15 00 00 00 25 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=121 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 02 02 74 00 00 00 07 04 06 00 08 CF 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 6B 85 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AF 7B 00 00 35 04 06 00 A7 B2 0E B9 6C 96 [20:24:12]Write to MH i2c: E2 7C 00 9C 05 80 0D 02 02 74 00 00 00 00 07 04 06 00 08 CF 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 6B 85 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AF 7B 00 00 35 04 06 00 A7 B2 0E B9 6C 96 00 00 2D [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 03 02 [20:24:12]Write to MH i2c: E2 08 00 9D 05 80 0D 03 02 00 00 00 00 1D [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 0B 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 0B 00 9D 05 00 69 6F 2D 56 01 98 FD CB 90 00 DA [20:24:12]RAPDU: 69 6F 2D 56 01 98 FD CB 90 00 [20:24:12]wFMCommunicate OK [20:24:12]SAM_PROTO_SignData done [20:24:12]FM_MakeSignedData done [20:24:12]CreateOFDProtocolMessage [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 11 00 00 [20:24:12]Write to MH i2c: E2 08 00 9E 05 80 11 00 00 00 00 00 00 1D [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 17 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 17 00 9E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 78 [20:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:24:12]wFMCommunicate OK [20:24:12]CreateOFDProtocolMessage done [20:24:12]OFDSenderStorePacket 31663 [20:24:12]StoreOFDPacket docnum=31663 [20:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 78 02 00 00 47 C2 70 02 3A 33 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 15 00 00 00 00 07 04 06 00 08 CF 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 6B 85 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AF 7B 00 00 35 04 06 00 A7 B2 0E B9 6C 96 69 6F 2D 56 01 98 FD CB [20:24:12]CheckFolder [20:24:12]dirname=/storage/ofd_packets [20:24:12]CheckFolder done [20:24:12]ProducePacketName [20:24:12]name=ofd_packets/00031663 [20:24:12]NVStorageSaveData ofd_packets/00031663 [20:24:12]File name is /storage/ofd_packets/00031663 [20:24:12]Write 662 bytes [20:24:12]NVStorageSaveData done [20:24:12]OFDSenderStorePacket done [20:24:12]KKMCreateOFDPacket done [20:24:12]NVStorageSaveData kkm_last_timestamp [20:24:12]File name is /storage/kkm_last_timestamp [20:24:12]Write 4 bytes [20:24:12]NVStorageSaveData done [20:24:12]ExternCall_PrintAddStr [20:24:12]wPrintStart [20:24:12]Write to MH i2c: 01 00 00 9F 05 A4 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: 01 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: 01 07 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 FF 0F B9 [20:24:12]RasterBufferAndPrint [20:24:12]line Счет N : (3)214245 [20:24:12]line ИНН: 02508201610067 [20:24:12]line Контрольно-Кассовый Чек [20:24:12]line ПРОДАЖА [20:24:12]line Товар: 4700002083914 [20:24:12]line Водка Сары челек 0,35л [20:24:12]line 1.000 * 260.00 [20:24:12]line = 260.00 [20:24:12]line НДС 12% НСП 1% [20:24:12]line > о реализуемом товаре [20:24:12]line Товар: 5449000006271 [20:24:12]line Напиток Фанта 1л [20:24:12]line 1.000 * 125.00 [20:24:12]line = 125.00 [20:24:12]line НДС 12% НСП 1% [20:24:13]line > о реализуемом товаре [20:24:13]line Товар: 4011100977952 [20:24:13]line Шок Батончик Твикс 55г [20:24:13]line 2.000 * 60.00 [20:24:13]line = 120.00 [20:24:13]line НДС 12% НСП 1% [20:24:13]line > о реализуемом товаре [20:24:13]line Товар: 2000027340020 [20:24:13]line Пакет бумажный витая ручка [20:24:13]line 1.000 * 25.00 [20:24:13]line = 25.00 [20:24:13]line НДС 12% НСП 1% [20:24:13]line > о реализуемом товаре [20:24:13]line ИТОГО: 530.00 [20:24:13]line НСП 1% : 4.69 [20:24:13]line НДС 12% : 56.27 [20:24:13]line Наличными: 530.00 [20:24:13]line Безнал.: 0.00 [20:24:13]line Место: АЗС № 140 "Партнер Нефть" [20:24:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:24:13]line СНО: Общий режим [20:24:13]line Чек 104 15.07.2024 20:24 [20:24:13]line Смена: 370 ФФД: 1.0 [20:24:13]line ЗНМ: 0300000189 [20:24:13]line РНМ: 0000000000098025 [20:24:13]line Версия ККМ: 001 [20:24:13]line ФМ: 0000000000965389 [20:24:13]line ФД: 31663 [20:24:13]line ФПД: 184383193050262 [20:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T202411&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31663&fm=184383193050262&tin=02508201610067®Number=0000000000098025&sum=53000 [20:24:13]OFD Sender: Processing packet 31663 [packets to send 6, broken 5] [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00031663 [20:24:13]OFD Sender: To server: pG, [20:24:13]CommunicateWithHost lk.salyk.kg:30040 [20:24:13]ConnectInit lk.salyk.kg [20:24:13]line 0 [20:24:13]written 0, free lines is 4095 [20:24:13]Connected sock=10 [20:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 78 02 00 00 47 C2 70 02 3A 33 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 15 00 00 00 00 07 04 06 00 08 CF 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 6B 85 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 AF 7B 00 00 35 04 06 00 A7 B2 0E B9 6C 96 69 6F 2D 56 01 98 FD CB [20:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 94 CA 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 39 36 35 33 38 39 10 04 04 00 AF 7B 00 00 F4 03 04 00 7B 31 95 66 B6 04 01 00 00 27 64 C8 4A BD 9F 02 E7 [20:24:13]CommunicateWithHost err = 0 [20:24:13]CheckOFDResponse [20:24:13]1017 (14) - 77093643461234 [20:24:13]1041 (16) - 0000000000965389 [20:24:13]1040 (4) - 31663 [20:24:13]1012 (4) - 15.07.2024 14:26 [20:24:13]1206 (1) - 0 [20:24:13]OFD Sender: Remove packet 31663 [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00031663 [20:24:13]NVStorageDeleteData [20:24:13]Write to MH i2c: 01 00 00 D9 05 DE [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 1E 0C 0F [20:24:13]RasterBufferAndPrint [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]written 0, free lines is 3109 [20:24:13]MH_Cut [20:24:13]Write to MH i2c: D1 01 00 E0 05 01 B7 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: D1 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: D1 01 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: D1 01 00 E0 05 00 B6 [20:24:13]Write to MH i2c: 01 00 00 E1 05 E6 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]OFD Sender: No OFD packet to send [20:24:14]*** Cut start [20:24:14]*** Partial cut [20:24:14]*** CUTSNS_PIN = 1 [20:24:14]*** CUTSNS_PIN = 0 [20:24:14]*** Brake cut motor [20:24:15]Read from MH i2c: 01 [20:24:15]MH_I2C_Read... [20:24:15]*** Stop cut motor [20:24:15]*** Cut end [20:24:15]Read from MH i2c: 01 07 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 FF 0F FB [20:24:15]process_action close_receipt done [20:24:15]requested_data is exist [20:24:15]produce_requested_data [20:24:15]requested_item fm.sn is exist - process it [20:24:15]wFMCommunicate request_size=4 [20:24:15]MH_SAM_APDU [20:24:15]CAPDU: 80 11 00 00 [20:24:15]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:15]Read from MH i2c: E2 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 17 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BC [20:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:24:15]wFMCommunicate OK [20:24:15]requested_item fd.num is exist - process it [20:24:15]SAM_PROTO_GetFieldsCounters [20:24:15]wFMCommunicate request_size=4 [20:24:15]MH_SAM_APDU [20:24:15]CAPDU: 80 13 00 00 [20:24:15]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:15]Read from MH i2c: E2 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 62 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 62 00 E3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [20:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 AF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:15]wFMCommunicate OK [20:24:15]SAM_PROTO_GetFieldsCounters done [20:24:15]requested_item shift.num is exist - process it [20:24:15]requested_item shift.opened is exist - process it [20:24:15]req_shift_opened [20:24:15]FM_GetShiftState [20:24:15]SAM_PROTO_GetShiftState [20:24:15]wFMCommunicate request_size=4 [20:24:15]MH_SAM_APDU [20:24:15]CAPDU: 80 13 01 00 [20:24:15]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:15]Read from MH i2c: E2 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 0E 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 59 [20:24:15]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:24:15]wFMCommunicate OK [20:24:15]SAM_PROTO_GetShiftState done [20:24:15]FM_GetShiftState done [20:24:15]req_shift_opened done [20:24:15]requested_item shift.open_date is exist - process it [20:24:15]req_shift_open_date [20:24:15]req_shift_open_date done [20:24:15]produce_requested_data done [20:24:15]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31663,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [20:24:15]process_action_free close_receipt [20:24:15]json_value_free [20:24:15]json_value_free done [20:24:15]process_json_proto returns [20:24:15]Send response to host [20:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31663,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [20:24:15]free response buf [20:24:15]execute_script done [20:24:15]execute_script returns [20:24:15]free content buf [20:24:15]Sock 9.Close socket [20:24:15]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]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:41]accept exits with 7 [20:33:41]New connection [20:33:41]New thread 3066821988 created [20:33:41]Thread 3066965348 joined [20:33:41]Waiting for new connection... [20:33:41] Sock 7.Parse request [20:33:41]Sock 7.Check first char [20:33:41]Sock 7.First char is OK [20:33:41]request: POST /json_proto HTTP/1.0 [20:33:41]Method: POST [20:33:41]URL: /json_proto [20:33:41]Method is POST - this is cgi request [20:33:41]url: /json_proto [20:33:41]query_string will be loaded in cgi processing [20:33:41]execute_cgi json_proto POST (null) [20:33:41]execute_cgi path=json_proto method=POST [20:33:41]POST find Content-Length [20:33:41]Host: 172.17.39.68:8080 [20:33:41]Content-Length: 624 [20:33:41]Content-Type: application/json [20:33:41] [20:33:41]POST finish read [20:33:41]Found Content-Length = 624 [20:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214246", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:41]execute_script... [20:33:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214246", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:41]POST & json_proto [20:33:41]process_json_proto [20:33:41]json parsed OK: [20:33:41]protocol is kg_v1.0 [20:33:41]action value=close_receipt [20:33:41]process_action close_receipt [20:33:41]cmd_close_receipt [20:33:41]MH_GetDate [20:33:41]Write to MH i2c: F0 00 00 E5 05 D9 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: F0 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: F0 09 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: F0 09 00 E5 05 00 A6 87 95 66 D6 48 95 66 23 [20:33:41]GetLastDocTimeStamp 1721075051 [20:33:41]current date 1721075622 [20:33:41]FM_GetShiftState [20:33:41]SAM_PROTO_GetShiftState [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 13 01 00 [20:33:41]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 0E 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5B [20:33:41]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:33:41]wFMCommunicate OK [20:33:41]SAM_PROTO_GetShiftState done [20:33:41]FM_GetShiftState done [20:33:41]opened in 1721001862 [20:33:41]opened+sec_in_day 1721088262 [20:33:41]quantity*price = 27600 [20:33:41]sum+1 = 27601 [20:33:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 105 15.07.2024 20:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31664 ФПД: 226347896080331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203342&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31664&fm=226347896080331&tin=02508201610067®Number=0000000000098025&sum=27600 0 [20:33:42]StoreToDocumentArchive [20:33:42]shift 370 fd 31664 [20:33:42]save to /storage/0370/doc_00031664 [20:33:42]save last doc name /storage/0370/doc_00031664 to /storage/kkm_last_doc_name [20:33:42]save OK [20:33:42]Clear old archive folders... [20:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:33:42]tlvbuf is 0147E7B0 [20:33:42]SAM_PROTO_ClearQueue [20:33:42]wFMCommunicate request_size=4 [20:33:42]MH_SAM_APDU [20:33:42]CAPDU: 80 09 00 00 [20:33:42]Write to MH i2c: E2 08 00 F3 05 80 09 00 00 00 00 00 00 6A [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 [20:33:42]MH_I2C_Read... [20:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:42]Read from MH i2c: E2 03 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [20:33:42]RAPDU: 90 00 [20:33:42]wFMCommunicate OK [20:33:42]SAM_PROTO_ClearQueue done [20:33:42]KKMCreateOFDPacket [20:33:42]OFDProtocolAddRootSTLVToBuf [20:33:42]FM_MakeSignedData [20:33:42]FM_MakeSignedData [20:33:42]SAM_PROTO_SignData [20:33:42]wFMCommunicate request_size=4 [20:33:42]MH_SAM_APDU [20:33:42]CAPDU: 80 0D 01 02 [20:33:42]Write to MH i2c: E2 08 00 F4 05 80 0D 01 02 00 00 00 00 72 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:42]Read from MH i2c: E2 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 03 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [20:33:42]RAPDU: 90 00 [20:33:42]wFMCommunicate OK [20:33:42]wFMCommunicate request_size=255 [20:33:42]MH_SAM_APDU [20:33:42]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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 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 A6 87 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [20:33:42]Write to MH i2c: E2 02 01 F5 05 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 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 A6 87 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 70 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 03 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [20:33:43]RAPDU: 90 00 [20:33:43]wFMCommunicate OK [20:33:43]wFMCommunicate request_size=35 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B0 7B 00 00 35 04 06 00 CD DC B9 F1 07 CB [20:33:43]Write to MH i2c: E2 26 00 F6 05 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B0 7B 00 00 35 04 06 00 CD DC B9 F1 07 CB 00 00 C0 [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 03 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [20:33:43]RAPDU: 90 00 [20:33:43]wFMCommunicate OK [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 0D 03 02 [20:33:43]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 0B 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 0B 00 F7 05 00 E2 78 D1 84 3E 94 EF C1 90 00 A9 [20:33:43]RAPDU: E2 78 D1 84 3E 94 EF C1 90 00 [20:33:43]wFMCommunicate OK [20:33:43]SAM_PROTO_SignData done [20:33:43]FM_MakeSignedData done [20:33:43]CreateOFDProtocolMessage [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 11 00 00 [20:33:43]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 17 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [20:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:33:43]wFMCommunicate OK [20:33:43]CreateOFDProtocolMessage done [20:33:43]OFDSenderStorePacket 31664 [20:33:43]StoreOFDPacket docnum=31664 [20:33:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 A0 40 20 01 88 EC 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 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 A6 87 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B0 7B 00 00 35 04 06 00 CD DC B9 F1 07 CB E2 78 D1 84 3E 94 EF C1 [20:33:43]CheckFolder [20:33:43]dirname=/storage/ofd_packets [20:33:43]CheckFolder done [20:33:43]ProducePacketName [20:33:43]name=ofd_packets/00031664 [20:33:43]NVStorageSaveData ofd_packets/00031664 [20:33:43]File name is /storage/ofd_packets/00031664 [20:33:43]Write 326 bytes [20:33:43]NVStorageSaveData done [20:33:43]OFDSenderStorePacket done [20:33:43]KKMCreateOFDPacket done [20:33:43]NVStorageSaveData kkm_last_timestamp [20:33:43]File name is /storage/kkm_last_timestamp [20:33:43]Write 4 bytes [20:33:43]NVStorageSaveData done [20:33:43]ExternCall_PrintAddStr [20:33:43]wPrintStart [20:33:43]Write to MH i2c: 01 00 00 F9 05 FE [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: 01 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: 01 07 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [20:33:43]RasterBufferAndPrint [20:33:43]line Счет N : (3)214246 [20:33:43]line ИНН: 02508201610067 [20:33:43]line Контрольно-Кассовый Чек [20:33:43]line ПРОДАЖА [20:33:43]line Товар: 48746656 [20:33:43]line Сигареты Parliament Super Slims [20:33:43]line 2.000 * 138.00 [20:33:43]line = 276.00 [20:33:43]line НДС 12% НСП 1% [20:33:43]line > о реализуемом товаре [20:33:43]line ИТОГО: 276.00 [20:33:43]line НСП 1% : 2.44 [20:33:43]line НДС 12% : 29.31 [20:33:43]line Наличными: 276.00 [20:33:43]line Безнал.: 0.00 [20:33:43]line Место: АЗС № 140 "Партнер Нефть" [20:33:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:33:43]line СНО: Общий режим [20:33:43]line Чек 105 15.07.2024 20:33 [20:33:43]line Смена: 370 ФФД: 1.0 [20:33:43]line ЗНМ: 0300000189 [20:33:43]line РНМ: 0000000000098025 [20:33:43]line Версия ККМ: 001 [20:33:43]line ФМ: 0000000000965389 [20:33:43]line ФД: 31664 [20:33:43]line ФПД: 226347896080331 [20:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203342&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31664&fm=226347896080331&tin=02508201610067®Number=0000000000098025&sum=27600 [20:33:43]line 0 [20:33:43]OFD Sender: Processing packet 31664 [packets to send 6, broken 5] [20:33:43]ProducePacketName [20:33:43]name=ofd_packets/00031664 [20:33:43]OFD Sender: To server: pG, [20:33:43]CommunicateWithHost lk.salyk.kg:30040 [20:33:43]ConnectInit lk.salyk.kg [20:33:43]written 0, free lines is 4095 [20:33:43]Connected sock=10 [20:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 A0 40 20 01 88 EC 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 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 A6 87 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B0 7B 00 00 35 04 06 00 CD DC B9 F1 07 CB E2 78 D1 84 3E 94 EF C1 [20:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5A A1 47 00 8B DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B0 7B 00 00 F4 03 04 00 B5 33 95 66 B6 04 01 00 00 96 76 31 EA CE DE 73 D6 [20:33:44]CommunicateWithHost err = 0 [20:33:44]CheckOFDResponse [20:33:44]1017 (14) - 77093643461234 [20:33:44]1041 (16) - 0000000000965389 [20:33:44]1040 (4) - 31664 [20:33:44]1012 (4) - 15.07.2024 14:35 [20:33:44]1206 (1) - 0 [20:33:44]OFD Sender: Remove packet 31664 [20:33:44]ProducePacketName [20:33:44]name=ofd_packets/00031664 [20:33:44]NVStorageDeleteData [20:33:44]Write to MH i2c: 01 00 00 22 06 28 [20:33:44]Write i2c OK [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: 01 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: 01 07 00 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 E8 0C 23 [20:33:44]RasterBufferAndPrint [20:33:44]line [20:33:44]line [20:33:44]line [20:33:44]line [20:33:44]line [20:33:44]written 0, free lines is 3310 [20:33:44]MH_Cut [20:33:44]Write to MH i2c: D1 01 00 29 06 01 01 [20:33:44]Write i2c OK [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: D1 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: D1 01 00 [20:33:44]MH_I2C_Read... [20:33:44]Read from MH i2c: D1 01 00 29 06 00 00 [20:33:44]Write to MH i2c: 01 00 00 2A 06 30 [20:33:44]Write i2c OK [20:33:44]MH_I2C_Read... [20:33:44]OFD Sender: No OFD packet to send [20:33:44]*** Cut start [20:33:44]*** Partial cut [20:33:44]*** CUTSNS_PIN = 1 [20:33:44]*** CUTSNS_PIN = 0 [20:33:45]*** Brake cut motor [20:33:45]Read from MH i2c: 01 [20:33:45]MH_I2C_Read... [20:33:45]*** Stop cut motor [20:33:45]*** Cut end [20:33:45]Read from MH i2c: 01 07 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [20:33:45]process_action close_receipt done [20:33:45]requested_data is exist [20:33:45]produce_requested_data [20:33:45]requested_item fm.sn is exist - process it [20:33:45]wFMCommunicate request_size=4 [20:33:45]MH_SAM_APDU [20:33:45]CAPDU: 80 11 00 00 [20:33:45]Write to MH i2c: E2 08 00 2B 06 80 11 00 00 00 00 00 00 AB [20:33:45]Write i2c OK [20:33:45]MH_I2C_Read... [20:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:45]Read from MH i2c: E2 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 17 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 17 00 2B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 06 [20:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:33:45]wFMCommunicate OK [20:33:45]requested_item fd.num is exist - process it [20:33:45]SAM_PROTO_GetFieldsCounters [20:33:45]wFMCommunicate request_size=4 [20:33:45]MH_SAM_APDU [20:33:45]CAPDU: 80 13 00 00 [20:33:45]Write to MH i2c: E2 08 00 2C 06 80 13 00 00 00 00 00 00 AE [20:33:45]Write i2c OK [20:33:45]MH_I2C_Read... [20:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:45]Read from MH i2c: E2 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 62 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 62 00 2C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [20:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:45]wFMCommunicate OK [20:33:45]SAM_PROTO_GetFieldsCounters done [20:33:45]requested_item shift.num is exist - process it [20:33:45]requested_item shift.opened is exist - process it [20:33:45]req_shift_opened [20:33:45]FM_GetShiftState [20:33:45]SAM_PROTO_GetShiftState [20:33:45]wFMCommunicate request_size=4 [20:33:45]MH_SAM_APDU [20:33:45]CAPDU: 80 13 01 00 [20:33:45]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [20:33:45]Write i2c OK [20:33:45]MH_I2C_Read... [20:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:45]Read from MH i2c: E2 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 0E 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A3 [20:33:45]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:33:45]wFMCommunicate OK [20:33:45]SAM_PROTO_GetShiftState done [20:33:45]FM_GetShiftState done [20:33:45]req_shift_opened done [20:33:45]requested_item shift.open_date is exist - process it [20:33:45]req_shift_open_date [20:33:45]req_shift_open_date done [20:33:45]produce_requested_data done [20:33:45]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31664,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [20:33:45]process_action_free close_receipt [20:33:45]json_value_free [20:33:45]json_value_free done [20:33:45]process_json_proto returns [20:33:45]Send response to host [20:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31664,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [20:33:45]free response buf [20:33:45]execute_script done [20:33:45]execute_script returns [20:33:45]free content buf [20:33:45]Sock 7.Close socket [20:33:45]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]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:37]accept exits with 9 [20:44:37]New connection [20:44:37]New thread 3066965348 created [20:44:37]Thread 3066821988 joined [20:44:37]Waiting for new connection... [20:44:37] Sock 9.Parse request [20:44:37]Sock 9.Check first char [20:44:37]Sock 9.First char is OK [20:44:37]request: POST /json_proto HTTP/1.0 [20:44:37]Method: POST [20:44:37]URL: /json_proto [20:44:37]Method is POST - this is cgi request [20:44:37]url: /json_proto [20:44:37]query_string will be loaded in cgi processing [20:44:37]execute_cgi json_proto POST (null) [20:44:37]execute_cgi path=json_proto method=POST [20:44:37]POST find Content-Length [20:44:37]Host: 172.17.39.68:8080 [20:44:37]Content-Length: 834 [20:44:37]Content-Type: application/json [20:44:37] [20:44:37]POST finish read [20:44:37]Found Content-Length = 834 [20:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214247", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 645.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:37]execute_script... [20:44: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)214247", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 645.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:37]POST & json_proto [20:44:37]process_json_proto [20:44:37]json parsed OK: [20:44:37]protocol is kg_v1.0 [20:44:37]action value=close_receipt [20:44:37]process_action close_receipt [20:44:37]cmd_close_receipt [20:44:37]MH_GetDate [20:44:37]Write to MH i2c: F0 00 00 2E 06 23 [20:44:37]Write i2c OK [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 09 00 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 09 00 2E 06 00 36 8A 95 66 D6 48 95 66 00 [20:44:37]GetLastDocTimeStamp 1721075622 [20:44:37]current date 1721076278 [20:44:37]FM_GetShiftState [20:44:37]SAM_PROTO_GetShiftState [20:44:37]wFMCommunicate request_size=4 [20:44:37]MH_SAM_APDU [20:44:37]CAPDU: 80 13 01 00 [20:44:37]Write to MH i2c: E2 08 00 2F 06 80 13 01 00 00 00 00 00 B2 [20:44:37]Write i2c OK [20:44:37]MH_I2C_Read... [20:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:37]Read from MH i2c: E2 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: E2 0E 00 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: E2 0E 00 2F 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A5 [20:44:37]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:44:37]wFMCommunicate OK [20:44:37]SAM_PROTO_GetShiftState done [20:44:37]FM_GetShiftState done [20:44:37]opened in 1721001862 [20:44:37]opened+sec_in_day 1721088262 [20:44:37]quantity*price = 51000 [20:44:37]sum+1 = 51001 [20:44:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 645.00 НСП 1% : 5.70 НДС 12% : 68.50 Наличными: 645.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 106 15.07.2024 20:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31665 ФПД: 240157478473056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204438&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31665&fm=240157478473056&tin=02508201610067®Number=0000000000098025&sum=64500 0 [20:44:38]StoreToDocumentArchive [20:44:38]shift 370 fd 31665 [20:44:38]save to /storage/0370/doc_00031665 [20:44:38]save last doc name /storage/0370/doc_00031665 to /storage/kkm_last_doc_name [20:44:38]save OK [20:44:38]Clear old archive folders... [20:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=364 [20:44:38]tlvbuf is 0148A380 [20:44:38]SAM_PROTO_ClearQueue [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 09 00 00 [20:44:38]Write to MH i2c: E2 08 00 3C 06 80 09 00 00 00 00 00 00 B4 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]SAM_PROTO_ClearQueue done [20:44:38]KKMCreateOFDPacket [20:44:38]OFDProtocolAddRootSTLVToBuf [20:44:38]FM_MakeSignedData [20:44:38]FM_MakeSignedData [20:44:38]SAM_PROTO_SignData [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 0D 01 02 [20:44:38]Write to MH i2c: E2 08 00 3D 06 80 0D 01 02 00 00 00 00 BC [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]wFMCommunicate request_size=255 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 0D 02 02 FA 03 00 6C 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 [20:44:38]Write to MH i2c: E2 02 01 3E 06 80 0D 02 02 FA 00 03 00 6C 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 00 00 A2 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]wFMCommunicate request_size=123 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 0D 02 02 76 1A 00 00 00 00 07 04 06 00 F4 FB 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 36 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B1 7B 00 00 35 04 06 00 DA 6C 05 31 CD 60 [20:44:38]Write to MH i2c: E2 7E 00 3F 06 80 0D 02 02 76 00 1A 00 00 00 00 07 04 06 00 F4 FB 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 36 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B1 7B 00 00 35 04 06 00 DA 6C 05 31 CD 60 00 00 62 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 0D 03 02 [20:44:38]Write to MH i2c: E2 08 00 40 06 80 0D 03 02 00 00 00 00 C1 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 0B 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 0B 00 40 06 00 8D D1 B3 9E 87 34 E2 94 90 00 A2 [20:44:38]RAPDU: 8D D1 B3 9E 87 34 E2 94 90 00 [20:44:38]wFMCommunicate OK [20:44:38]SAM_PROTO_SignData done [20:44:38]FM_MakeSignedData done [20:44:38]CreateOFDProtocolMessage [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 11 00 00 [20:44:38]Write to MH i2c: E2 08 00 41 06 80 11 00 00 00 00 00 00 C1 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 17 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 17 00 41 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1C [20:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:44:38]wFMCommunicate OK [20:44:38]CreateOFDProtocolMessage done [20:44:38]OFDSenderStorePacket 31665 [20:44:38]StoreOFDPacket docnum=31665 [20:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 80 01 00 00 F5 66 78 01 AA C4 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 F4 FB 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 36 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B1 7B 00 00 35 04 06 00 DA 6C 05 31 CD 60 8D D1 B3 9E 87 34 E2 94 [20:44:38]CheckFolder [20:44:38]dirname=/storage/ofd_packets [20:44:38]CheckFolder done [20:44:38]ProducePacketName [20:44:38]name=ofd_packets/00031665 [20:44:38]NVStorageSaveData ofd_packets/00031665 [20:44:38]File name is /storage/ofd_packets/00031665 [20:44:38]Write 414 bytes [20:44:38]NVStorageSaveData done [20:44:38]OFDSenderStorePacket done [20:44:38]KKMCreateOFDPacket done [20:44:38]NVStorageSaveData kkm_last_timestamp [20:44:38]File name is /storage/kkm_last_timestamp [20:44:38]Write 4 bytes [20:44:38]NVStorageSaveData done [20:44:38]ExternCall_PrintAddStr [20:44:38]wPrintStart [20:44:38]Write to MH i2c: 01 00 00 42 06 48 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: 01 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: 01 07 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [20:44:38]RasterBufferAndPrint [20:44:38]line Счет N : (3)214247 [20:44:38]line ИНН: 02508201610067 [20:44:38]line Контрольно-Кассовый Чек [20:44:38]line ПРОДАЖА [20:44:38]line Товар: 4700002083327 [20:44:38]line Водка Level 0,5 [20:44:38]line 1.000 * 510.00 [20:44:38]line = 510.00 [20:44:38]line НДС 12% НСП 1% [20:44:38]line > о реализуемом товаре [20:44:38]line Товар: 48745000 [20:44:38]line Сигареты Winston Purple Mix [20:44:38]line 1.000 * 135.00 [20:44:38]line = 135.00 [20:44:38]line НДС 12% НСП 1% [20:44:38]line > о реализуемом товаре [20:44:38]line ИТОГО: 645.00 [20:44:38]line НСП 1% : 5.70 [20:44:38]line НДС 12% : 68.50 [20:44:39]line Наличными: 645.00 [20:44:39]line Безнал.: 0.00 [20:44:39]line Место: АЗС № 140 "Партнер Нефть" [20:44:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:44:39]line СНО: Общий режим [20:44:39]line Чек 106 15.07.2024 20:44 [20:44:39]line Смена: 370 ФФД: 1.0 [20:44:39]line ЗНМ: 0300000189 [20:44:39]line РНМ: 0000000000098025 [20:44:39]line Версия ККМ: 001 [20:44:39]line ФМ: 0000000000965389 [20:44:39]line ФД: 31665 [20:44:39]line ФПД: 240157478473056 [20:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204438&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31665&fm=240157478473056&tin=02508201610067®Number=0000000000098025&sum=64500 [20:44:39]line 0 [20:44:39]OFD Sender: Processing packet 31665 [packets to send 6, broken 5] [20:44:39]ProducePacketName [20:44:39]name=ofd_packets/00031665 [20:44:39]OFD Sender: To server: pG, [20:44:39]CommunicateWithHost lk.salyk.kg:30040 [20:44:39]ConnectInit lk.salyk.kg [20:44:39]written 0, free lines is 4095 [20:44:39]Connected sock=10 [20:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 80 01 00 00 F5 66 78 01 AA C4 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 F4 FB 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 36 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B1 7B 00 00 35 04 06 00 DA 6C 05 31 CD 60 8D D1 B3 9E 87 34 E2 94 [20:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F0 51 47 00 6B 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B1 7B 00 00 F4 03 04 00 45 36 95 66 B6 04 01 00 00 5D E9 B7 C9 E8 B7 01 75 [20:44:39]CommunicateWithHost err = 0 [20:44:39]CheckOFDResponse [20:44:39]1017 (14) - 77093643461234 [20:44:39]1041 (16) - 0000000000965389 [20:44:39]1040 (4) - 31665 [20:44:39]1012 (4) - 15.07.2024 14:46 [20:44:39]1206 (1) - 0 [20:44:39]OFD Sender: Remove packet 31665 [20:44:39]ProducePacketName [20:44:39]name=ofd_packets/00031665 [20:44:39]NVStorageDeleteData [20:44:39]Write to MH i2c: 01 00 00 70 06 76 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 07 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 C1 0C 4A [20:44:39]RasterBufferAndPrint [20:44:39]line [20:44:39]line [20:44:39]line [20:44:39]line [20:44:39]line [20:44:39]written 0, free lines is 3272 [20:44:39]MH_Cut [20:44:39]Write to MH i2c: D1 01 00 77 06 01 4F [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: D1 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: D1 01 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: D1 01 00 77 06 00 4E [20:44:39]Write to MH i2c: 01 00 00 78 06 7E [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]OFD Sender: No OFD packet to send [20:44:40]*** Cut start [20:44:40]*** Partial cut [20:44:40]*** CUTSNS_PIN = 1 [20:44:40]*** CUTSNS_PIN = 0 [20:44:40]*** Brake cut motor [20:44:41]Read from MH i2c: 01 [20:44:41]MH_I2C_Read... [20:44:41]*** Stop cut motor [20:44:41]*** Cut end [20:44:41]Read from MH i2c: 01 07 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [20:44:41]process_action close_receipt done [20:44:41]requested_data is exist [20:44:41]produce_requested_data [20:44:41]requested_item fm.sn is exist - process it [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 11 00 00 [20:44:41]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 17 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 54 [20:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:44:41]wFMCommunicate OK [20:44:41]requested_item fd.num is exist - process it [20:44:41]SAM_PROTO_GetFieldsCounters [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 00 00 [20:44:41]Write to MH i2c: E2 08 00 7A 06 80 13 00 00 00 00 00 00 FC [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 62 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 62 00 7A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B1 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B1 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetFieldsCounters done [20:44:41]requested_item shift.num is exist - process it [20:44:41]requested_item shift.opened is exist - process it [20:44:41]req_shift_opened [20:44:41]FM_GetShiftState [20:44:41]SAM_PROTO_GetShiftState [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 01 00 [20:44:41]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F1 [20:44:41]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetShiftState done [20:44:41]FM_GetShiftState done [20:44:41]req_shift_opened done [20:44:41]requested_item shift.open_date is exist - process it [20:44:41]req_shift_open_date [20:44:41]req_shift_open_date done [20:44:41]produce_requested_data done [20:44:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31665,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [20:44:41]process_action_free close_receipt [20:44:41]json_value_free [20:44:41]json_value_free done [20:44:41]process_json_proto returns [20:44:41]Send response to host [20:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31665,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [20:44:41]free response buf [20:44:41]execute_script done [20:44:41]execute_script returns [20:44:41]free content buf [20:44:41]Sock 9.Close socket [20:44:41]Sock 9.Thread stoped [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:07]accept exits with 7 [20:45:07]New connection [20:45:07]New thread 3066821988 created [20:45:07]Thread 3066965348 joined [20:45:07]Waiting for new connection... [20:45:07] Sock 7.Parse request [20:45:07]Sock 7.Check first char [20:45:07]Sock 7.First char is OK [20:45:07]request: POST /json_proto HTTP/1.0 [20:45:07]Method: POST [20:45:07]URL: /json_proto [20:45:07]Method is POST - this is cgi request [20:45:07]url: /json_proto [20:45:07]query_string will be loaded in cgi processing [20:45:07]execute_cgi json_proto POST (null) [20:45:07]execute_cgi path=json_proto method=POST [20:45:07]POST find Content-Length [20:45:07]Host: 172.17.39.68:8080 [20:45:07]Content-Length: 669 [20:45:07]Content-Type: application/json [20:45:07] [20:45:07]POST finish read [20:45:07]Found Content-Length = 669 [20:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214248", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:07]execute_script... [20:45: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)214248", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:07]POST & json_proto [20:45:07]process_json_proto [20:45:07]json parsed OK: [20:45:07]protocol is kg_v1.0 [20:45:07]action value=close_receipt [20:45:07]process_action close_receipt [20:45:07]cmd_close_receipt [20:45:07]MH_GetDate [20:45:07]Write to MH i2c: F0 00 00 7C 06 71 [20:45:07]Write i2c OK [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: F0 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: F0 09 00 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: F0 09 00 7C 06 00 54 8A 95 66 D6 48 95 66 6C [20:45:07]GetLastDocTimeStamp 1721076278 [20:45:07]current date 1721076308 [20:45:07]FM_GetShiftState [20:45:07]SAM_PROTO_GetShiftState [20:45:07]wFMCommunicate request_size=4 [20:45:07]MH_SAM_APDU [20:45:07]CAPDU: 80 13 01 00 [20:45:07]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [20:45:07]Write i2c OK [20:45:07]MH_I2C_Read... [20:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:07]Read from MH i2c: E2 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: E2 0E 00 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 F3 [20:45:07]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:45:07]wFMCommunicate OK [20:45:07]SAM_PROTO_GetShiftState done [20:45:07]FM_GetShiftState done [20:45:07]opened in 1721001862 [20:45:07]opened+sec_in_day 1721088262 [20:45:07]quantity*price = 11000 [20:45:07]sum+1 = 11001 [20:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 107 15.07.2024 20:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31666 ФПД: 113675387949213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204508&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31666&fm=113675387949213&tin=02508201610067®Number=0000000000098025&sum=11000 0 [20:45:08]StoreToDocumentArchive [20:45:08]shift 370 fd 31666 [20:45:08]save to /storage/0370/doc_00031666 [20:45:08]save last doc name /storage/0370/doc_00031666 to /storage/kkm_last_doc_name [20:45:08]save OK [20:45:08]Clear old archive folders... [20:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:45:08]tlvbuf is 01489600 [20:45:08]SAM_PROTO_ClearQueue [20:45:08]wFMCommunicate request_size=4 [20:45:08]MH_SAM_APDU [20:45:08]CAPDU: 80 09 00 00 [20:45:08]Write to MH i2c: E2 08 00 8A 06 80 09 00 00 00 00 00 00 02 [20:45:08]Write i2c OK [20:45:08]MH_I2C_Read... [20:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:08]Read from MH i2c: E2 [20:45:08]MH_I2C_Read... [20:45:08]Read from MH i2c: E2 03 00 [20:45:08]MH_I2C_Read... [20:45:08]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [20:45:08]RAPDU: 90 00 [20:45:08]wFMCommunicate OK [20:45:08]SAM_PROTO_ClearQueue done [20:45:08]KKMCreateOFDPacket [20:45:08]OFDProtocolAddRootSTLVToBuf [20:45:08]FM_MakeSignedData [20:45:08]FM_MakeSignedData [20:45:08]SAM_PROTO_SignData [20:45:08]wFMCommunicate request_size=4 [20:45:08]MH_SAM_APDU [20:45:08]CAPDU: 80 0D 01 02 [20:45:08]Write to MH i2c: E2 08 00 8B 06 80 0D 01 02 00 00 00 00 0A [20:45:08]Write i2c OK [20:45:08]MH_I2C_Read... [20:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:08]Read from MH i2c: E2 [20:45:08]MH_I2C_Read... [20:45:08]Read from MH i2c: E2 03 00 [20:45:08]MH_I2C_Read... [20:45:08]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [20:45:08]RAPDU: 90 00 [20:45:08]wFMCommunicate OK [20:45:08]wFMCommunicate request_size=255 [20:45:08]MH_SAM_APDU [20:45:08]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 54 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:45:08]Write to MH i2c: E2 02 01 8C 06 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 54 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 DB [20:45:08]Write i2c OK [20:45:08]MH_I2C_Read... [20:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:09]Read from MH i2c: E2 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 03 00 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [20:45:09]RAPDU: 90 00 [20:45:09]wFMCommunicate OK [20:45:09]wFMCommunicate request_size=52 [20:45:09]MH_SAM_APDU [20:45:09]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B2 7B 00 00 35 04 06 00 67 63 1D 1E 50 9D [20:45:09]Write to MH i2c: E2 37 00 8D 06 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B2 7B 00 00 35 04 06 00 67 63 1D 1E 50 9D 00 00 F6 [20:45:09]Write i2c OK [20:45:09]MH_I2C_Read... [20:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:09]Read from MH i2c: E2 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 03 00 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [20:45:09]RAPDU: 90 00 [20:45:09]wFMCommunicate OK [20:45:09]wFMCommunicate request_size=4 [20:45:09]MH_SAM_APDU [20:45:09]CAPDU: 80 0D 03 02 [20:45:09]Write to MH i2c: E2 08 00 8E 06 80 0D 03 02 00 00 00 00 0F [20:45:09]Write i2c OK [20:45:09]MH_I2C_Read... [20:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:09]Read from MH i2c: E2 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 0B 00 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 0B 00 8E 06 00 97 C6 F2 08 82 53 9E 21 90 00 FB [20:45:09]RAPDU: 97 C6 F2 08 82 53 9E 21 90 00 [20:45:09]wFMCommunicate OK [20:45:09]SAM_PROTO_SignData done [20:45:09]FM_MakeSignedData done [20:45:09]CreateOFDProtocolMessage [20:45:09]wFMCommunicate request_size=4 [20:45:09]MH_SAM_APDU [20:45:09]CAPDU: 80 11 00 00 [20:45:09]Write to MH i2c: E2 08 00 8F 06 80 11 00 00 00 00 00 00 0F [20:45:09]Write i2c OK [20:45:09]MH_I2C_Read... [20:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:09]Read from MH i2c: E2 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 17 00 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: E2 17 00 8F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6A [20:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:45:09]wFMCommunicate OK [20:45:09]CreateOFDProtocolMessage done [20:45:09]OFDSenderStorePacket 31666 [20:45:09]StoreOFDPacket docnum=31666 [20:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 11 45 31 01 8E FC 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 54 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B2 7B 00 00 35 04 06 00 67 63 1D 1E 50 9D 97 C6 F2 08 82 53 9E 21 [20:45:09]CheckFolder [20:45:09]dirname=/storage/ofd_packets [20:45:09]CheckFolder done [20:45:09]ProducePacketName [20:45:09]name=ofd_packets/00031666 [20:45:09]NVStorageSaveData ofd_packets/00031666 [20:45:09]File name is /storage/ofd_packets/00031666 [20:45:09]Write 343 bytes [20:45:09]NVStorageSaveData done [20:45:09]OFDSenderStorePacket done [20:45:09]KKMCreateOFDPacket done [20:45:09]NVStorageSaveData kkm_last_timestamp [20:45:09]File name is /storage/kkm_last_timestamp [20:45:09]Write 4 bytes [20:45:09]NVStorageSaveData done [20:45:09]ExternCall_PrintAddStr [20:45:09]wPrintStart [20:45:09]Write to MH i2c: 01 00 00 90 06 96 [20:45:09]Write i2c OK [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: 01 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: 01 07 00 [20:45:09]MH_I2C_Read... [20:45:09]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [20:45:09]RasterBufferAndPrint [20:45:09]line Счет N : (3)214248 [20:45:09]line ИНН: 02508201610067 [20:45:09]line Контрольно-Кассовый Чек [20:45:09]line ПРОДАЖА [20:45:09]line Товар: 4870022003305 [20:45:09]line Напиток Gorilla эн нат ж/б 0,5/0,45л [20:45:09]line 1.000 * 110.00 [20:45:09]line = 110.00 [20:45:09]line НДС 12% НСП 1% [20:45:09]line > о реализуемом товаре [20:45:09]line ИТОГО: 110.00 [20:45:09]line НСП 1% : 0.97 [20:45:09]line НДС 12% : 11.68 [20:45:09]line Наличными: 110.00 [20:45:09]line Безнал.: 0.00 [20:45:09]line Место: АЗС № 140 "Партнер Нефть" [20:45:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:45:09]line СНО: Общий режим [20:45:09]line Чек 107 15.07.2024 20:45 [20:45:09]line Смена: 370 ФФД: 1.0 [20:45:09]line ЗНМ: 0300000189 [20:45:09]line РНМ: 0000000000098025 [20:45:09]line Версия ККМ: 001 [20:45:09]line ФМ: 0000000000965389 [20:45:09]line ФД: 31666 [20:45:09]line ФПД: 113675387949213 [20:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204508&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31666&fm=113675387949213&tin=02508201610067®Number=0000000000098025&sum=11000 [20:45:09]line 0 [20:45:09]written 0, free lines is 4095 [20:45:09]OFD Sender: Processing packet 31666 [packets to send 6, broken 5] [20:45:09]ProducePacketName [20:45:09]name=ofd_packets/00031666 [20:45:09]OFD Sender: To server: pG, [20:45:09]CommunicateWithHost lk.salyk.kg:30040 [20:45:09]ConnectInit lk.salyk.kg [20:45:09]Connected sock=10 [20:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 11 45 31 01 8E FC 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 54 8A 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B2 7B 00 00 35 04 06 00 67 63 1D 1E 50 9D 97 C6 F2 08 82 53 9E 21 [20:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 55 F4 47 00 50 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B2 7B 00 00 F4 03 04 00 63 36 95 66 B6 04 01 00 00 DF AA F4 3C CD 82 66 CC [20:45:10]CommunicateWithHost err = 0 [20:45:10]CheckOFDResponse [20:45:10]1017 (14) - 77093643461234 [20:45:10]1041 (16) - 0000000000965389 [20:45:10]1040 (4) - 31666 [20:45:10]1012 (4) - 15.07.2024 14:46 [20:45:10]1206 (1) - 0 [20:45:10]OFD Sender: Remove packet 31666 [20:45:10]ProducePacketName [20:45:10]name=ofd_packets/00031666 [20:45:10]NVStorageDeleteData [20:45:10]Write to MH i2c: 01 00 00 B9 06 BF [20:45:10]Write i2c OK [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: 01 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: 01 07 00 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 F6 0C C8 [20:45:10]RasterBufferAndPrint [20:45:10]line [20:45:10]line [20:45:10]line [20:45:10]line [20:45:10]line [20:45:10]written 0, free lines is 3327 [20:45:10]MH_Cut [20:45:10]Write to MH i2c: D1 01 00 C0 06 01 98 [20:45:10]Write i2c OK [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: D1 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: D1 01 00 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: D1 01 00 C0 06 00 97 [20:45:10]Write to MH i2c: 01 00 00 C1 06 C7 [20:45:10]Write i2c OK [20:45:10]MH_I2C_Read... [20:45:10]OFD Sender: No OFD packet to send [20:45:10]*** Cut start [20:45:10]*** Partial cut [20:45:10]*** CUTSNS_PIN = 1 [20:45:10]*** CUTSNS_PIN = 0 [20:45:11]*** Brake cut motor [20:45:11]Read from MH i2c: 01 [20:45:11]MH_I2C_Read... [20:45:11]*** Stop cut motor [20:45:11]*** Cut end [20:45:11]Read from MH i2c: 01 07 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [20:45:11]process_action close_receipt done [20:45:11]requested_data is exist [20:45:11]produce_requested_data [20:45:11]requested_item fm.sn is exist - process it [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 11 00 00 [20:45:11]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 17 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9D [20:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:45:11]wFMCommunicate OK [20:45:11]requested_item fd.num is exist - process it [20:45:11]SAM_PROTO_GetFieldsCounters [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 13 00 00 [20:45:11]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 62 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 62 00 C3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B2 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [20:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B2 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:11]wFMCommunicate OK [20:45:11]SAM_PROTO_GetFieldsCounters done [20:45:11]requested_item shift.num is exist - process it [20:45:11]requested_item shift.opened is exist - process it [20:45:11]req_shift_opened [20:45:11]FM_GetShiftState [20:45:11]SAM_PROTO_GetShiftState [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 13 01 00 [20:45:11]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0E 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 3A [20:45:11]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [20:45:11]wFMCommunicate OK [20:45:11]SAM_PROTO_GetShiftState done [20:45:11]FM_GetShiftState done [20:45:11]req_shift_opened done [20:45:11]requested_item shift.open_date is exist - process it [20:45:11]req_shift_open_date [20:45:11]req_shift_open_date done [20:45:11]produce_requested_data done [20:45:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31666,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [20:45:11]process_action_free close_receipt [20:45:11]json_value_free [20:45:11]json_value_free done [20:45:11]process_json_proto returns [20:45:11]Send response to host [20:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31666,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [20:45:11]free response buf [20:45:11]execute_script done [20:45:11]execute_script returns [20:45:11]free content buf [20:45:11]Sock 7.Close socket [20:45:11]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]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:51]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:09]accept exits with 9 [21:05:09]New connection [21:05:09]New thread 3066965348 created [21:05:09]Thread 3066821988 joined [21:05:09]Waiting for new connection... [21:05:09] Sock 9.Parse request [21:05:09]Sock 9.Check first char [21:05:09]Sock 9.First char is OK [21:05:09]request: POST /json_proto HTTP/1.0 [21:05:09]Method: POST [21:05:09]URL: /json_proto [21:05:09]Method is POST - this is cgi request [21:05:09]url: /json_proto [21:05:09]query_string will be loaded in cgi processing [21:05:09]execute_cgi json_proto POST (null) [21:05:09]execute_cgi path=json_proto method=POST [21:05:09]POST find Content-Length [21:05:09]Host: 172.17.39.68:8080 [21:05:09]Content-Length: 815 [21:05:09]Content-Type: application/json [21:05:09] [21:05:09]POST finish read [21:05:09]Found Content-Length = 815 [21:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214249", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:09]execute_script... [21:05: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)214249", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:09]POST & json_proto [21:05:09]process_json_proto [21:05:09]json parsed OK: [21:05:09]protocol is kg_v1.0 [21:05:09]action value=close_receipt [21:05:09]process_action close_receipt [21:05:09]cmd_close_receipt [21:05:09]MH_GetDate [21:05:09]Write to MH i2c: F0 00 00 C5 06 BA [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 09 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 09 00 C5 06 00 06 8F 95 66 D6 48 95 66 6C [21:05:09]GetLastDocTimeStamp 1721076308 [21:05:09]current date 1721077510 [21:05:09]FM_GetShiftState [21:05:09]SAM_PROTO_GetShiftState [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 13 01 00 [21:05:09]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0E 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 86 67 94 66 00 00 00 00 90 00 3C [21:05:09]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:05:09]wFMCommunicate OK [21:05:09]SAM_PROTO_GetShiftState done [21:05:09]FM_GetShiftState done [21:05:09]opened in 1721001862 [21:05:09]opened+sec_in_day 1721088262 [21:05:09]quantity*price = 11100 [21:05:09]sum+1 = 11101 [21:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 108 15.07.2024 21:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31667 ФПД: 125750642989347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210510&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31667&fm=125750642989347&tin=02508201610067®Number=0000000000098025&sum=11100 0 [21:05:10]StoreToDocumentArchive [21:05:10]shift 370 fd 31667 [21:05:10]save to /storage/0370/doc_00031667 [21:05:10]save last doc name /storage/0370/doc_00031667 to /storage/kkm_last_doc_name [21:05:10]save OK [21:05:10]Clear old archive folders... [21:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:05:10]tlvbuf is 01488F00 [21:05:10]SAM_PROTO_ClearQueue [21:05:10]wFMCommunicate request_size=4 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 09 00 00 [21:05:10]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:10]Read from MH i2c: E2 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [21:05:10]RAPDU: 90 00 [21:05:10]wFMCommunicate OK [21:05:10]SAM_PROTO_ClearQueue done [21:05:10]KKMCreateOFDPacket [21:05:10]OFDProtocolAddRootSTLVToBuf [21:05:10]FM_MakeSignedData [21:05:10]FM_MakeSignedData [21:05:10]SAM_PROTO_SignData [21:05:10]wFMCommunicate request_size=4 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 0D 01 02 [21:05:10]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:10]Read from MH i2c: E2 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [21:05:10]RAPDU: 90 00 [21:05:10]wFMCommunicate OK [21:05:10]wFMCommunicate request_size=255 [21:05:10]MH_SAM_APDU [21:05:10]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 06 8F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [21:05:10]Write to MH i2c: E2 02 01 D5 06 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 06 8F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 D7 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]wFMCommunicate request_size=25 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 02 02 14 38 39 10 04 04 00 B3 7B 00 00 35 04 06 00 72 5E 9A 67 D9 23 [21:05:11]Write to MH i2c: E2 1C 00 D6 06 80 0D 02 02 14 00 38 39 10 04 04 00 B3 7B 00 00 35 04 06 00 72 5E 9A 67 D9 23 00 00 41 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 03 02 [21:05:11]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 0B 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 0B 00 D7 06 00 B2 E1 D4 9F AE 7E A5 EB 90 00 1B [21:05:11]RAPDU: B2 E1 D4 9F AE 7E A5 EB 90 00 [21:05:11]wFMCommunicate OK [21:05:11]SAM_PROTO_SignData done [21:05:11]FM_MakeSignedData done [21:05:11]CreateOFDProtocolMessage [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 11 00 00 [21:05:11]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B3 [21:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:05:11]wFMCommunicate OK [21:05:11]CreateOFDProtocolMessage done [21:05:11]OFDSenderStorePacket 31667 [21:05:11]StoreOFDPacket docnum=31667 [21:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 8A 4D 16 01 BA 18 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 06 8F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B3 7B 00 00 35 04 06 00 72 5E 9A 67 D9 23 B2 E1 D4 9F AE 7E A5 EB [21:05:11]CheckFolder [21:05:11]dirname=/storage/ofd_packets [21:05:11]CheckFolder done [21:05:11]ProducePacketName [21:05:11]name=ofd_packets/00031667 [21:05:11]NVStorageSaveData ofd_packets/00031667 [21:05:11]File name is /storage/ofd_packets/00031667 [21:05:11]Write 316 bytes [21:05:11]NVStorageSaveData done [21:05:11]OFDSenderStorePacket done [21:05:11]KKMCreateOFDPacket done [21:05:11]NVStorageSaveData kkm_last_timestamp [21:05:11]File name is /storage/kkm_last_timestamp [21:05:11]Write 4 bytes [21:05:11]NVStorageSaveData done [21:05:11]ExternCall_PrintAddStr [21:05:11]wPrintStart [21:05:11]Write to MH i2c: 01 00 00 D9 06 DF [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 07 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [21:05:11]RasterBufferAndPrint [21:05:11]line Счет N : (3)214249 [21:05:11]line ИНН: 02508201610067 [21:05:11]line Контрольно-Кассовый Чек [21:05:11]line ПРОДАЖА [21:05:11]line Товар: 4870001570071 [21:05:11]line Напиток Pepsi 1л [21:05:11]line 1.000 * 111.00 [21:05:11]line = 111.00 [21:05:11]line НДС 12% НСП 1% [21:05:11]line > о реализуемом товаре [21:05:11]line ИТОГО: 111.00 [21:05:11]line НСП 1% : 0.98 [21:05:11]line НДС 12% : 11.79 [21:05:11]line Наличными: 0.00 [21:05:11]line Безнал.: 111.00 [21:05:11]line Место: АЗС № 140 "Партнер Нефть" [21:05:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:05:11]line СНО: Общий режим [21:05:11]line Чек 108 15.07.2024 21:05 [21:05:11]line Смена: 370 ФФД: 1.0 [21:05:11]line ЗНМ: 0300000189 [21:05:11]line РНМ: 0000000000098025 [21:05:11]line Версия ККМ: 001 [21:05:11]line Платежная система: АКБ Кыргызстан [21:05:11]line ФМ: 0000000000965389 [21:05:11]line ФД: 31667 [21:05:11]line ФПД: 125750642989347 [21:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210510&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31667&fm=125750642989347&tin=02508201610067®Number=0000000000098025&sum=11100 [21:05:11]line 0 [21:05:11]OFD Sender: Processing packet 31667 [packets to send 6, broken 5] [21:05:11]ProducePacketName [21:05:11]name=ofd_packets/00031667 [21:05:11]OFD Sender: To server: pG, [21:05:11]CommunicateWithHost lk.salyk.kg:30040 [21:05:11]ConnectInit lk.salyk.kg [21:05:11]written 0, free lines is 4095 [21:05:11]Connected sock=7 [21:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 8A 4D 16 01 BA 18 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 06 8F 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B3 7B 00 00 35 04 06 00 72 5E 9A 67 D9 23 B2 E1 D4 9F AE 7E A5 EB [21:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D8 8A 47 00 AE 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 39 36 35 33 38 39 10 04 04 00 B3 7B 00 00 F4 03 04 00 15 3B 95 66 B6 04 01 00 00 99 2F B6 8C DC 6D 90 49 [21:05:12]CommunicateWithHost err = 0 [21:05:12]CheckOFDResponse [21:05:12]1017 (14) - 77093643461234 [21:05:12]1041 (16) - 0000000000965389 [21:05:12]1040 (4) - 31667 [21:05:12]1012 (4) - 15.07.2024 15:07 [21:05:12]1206 (1) - 0 [21:05:12]OFD Sender: Remove packet 31667 [21:05:12]ProducePacketName [21:05:12]name=ofd_packets/00031667 [21:05:12]NVStorageDeleteData [21:05:12]Write to MH i2c: 01 00 00 03 07 0A [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 F6 0C 13 [21:05:12]RasterBufferAndPrint [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]written 0, free lines is 3325 [21:05:12]MH_Cut [21:05:12]Write to MH i2c: D1 01 00 0A 07 01 E3 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 01 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 01 00 0A 07 00 E2 [21:05:12]Write to MH i2c: 01 00 00 0B 07 12 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]OFD Sender: No OFD packet to send [21:05:12]*** Cut start [21:05:12]*** Partial cut [21:05:12]*** CUTSNS_PIN = 1 [21:05:12]*** CUTSNS_PIN = 0 [21:05:13]*** Brake cut motor [21:05:13]Read from MH i2c: 01 [21:05:13]MH_I2C_Read... [21:05:13]*** Stop cut motor [21:05:13]*** Cut end [21:05:13]Read from MH i2c: 01 07 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [21:05:13]process_action close_receipt done [21:05:13]requested_data is exist [21:05:13]produce_requested_data [21:05:13]requested_item fm.sn is exist - process it [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 11 00 00 [21:05:13]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E8 [21:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:05:13]wFMCommunicate OK [21:05:13]requested_item fd.num is exist - process it [21:05:13]SAM_PROTO_GetFieldsCounters [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 00 00 [21:05:13]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 0D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B3 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B3 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetFieldsCounters done [21:05:13]requested_item shift.num is exist - process it [21:05:13]requested_item shift.opened is exist - process it [21:05:13]req_shift_opened [21:05:13]FM_GetShiftState [21:05:13]SAM_PROTO_GetShiftState [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 01 00 [21:05:13]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 85 [21:05:13]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetShiftState done [21:05:13]FM_GetShiftState done [21:05:13]req_shift_opened done [21:05:13]requested_item shift.open_date is exist - process it [21:05:13]req_shift_open_date [21:05:13]req_shift_open_date done [21:05:13]produce_requested_data done [21:05:13]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31667,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [21:05:13]process_action_free close_receipt [21:05:13]json_value_free [21:05:13]json_value_free done [21:05:13]process_json_proto returns [21:05:13]Send response to host [21:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31667,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [21:05:13]free response buf [21:05:13]execute_script done [21:05:13]execute_script returns [21:05:13]free content buf [21:05:13]Sock 9.Close socket [21:05:13]Sock 9.Thread stoped [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:12]accept exits with 10 [21:32:12]New connection [21:32:12]New thread 3066821988 created [21:32:12]Thread 3066965348 joined [21:32:12]Waiting for new connection... [21:32:12] Sock 10.Parse request [21:32:12]Sock 10.Check first char [21:32:12]Sock 10.First char is OK [21:32:12]request: POST /json_proto HTTP/1.0 [21:32:12]Method: POST [21:32:12]URL: /json_proto [21:32:12]Method is POST - this is cgi request [21:32:12]url: /json_proto [21:32:12]query_string will be loaded in cgi processing [21:32:12]execute_cgi json_proto POST (null) [21:32:12]execute_cgi path=json_proto method=POST [21:32:12]POST find Content-Length [21:32:12]Host: 172.17.39.68:8080 [21:32:12]Content-Length: 655 [21:32:12]Content-Type: application/json [21:32:12] [21:32:12]POST finish read [21:32:12]Found Content-Length = 655 [21:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214250", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:12]execute_script... [21:32:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214250", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:12]POST & json_proto [21:32:12]process_json_proto [21:32:12]json parsed OK: [21:32:12]protocol is kg_v1.0 [21:32:12]action value=close_receipt [21:32:12]process_action close_receipt [21:32:12]cmd_close_receipt [21:32:12]MH_GetDate [21:32:12]Write to MH i2c: F0 00 00 0F 07 05 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: F0 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: F0 09 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: F0 09 00 0F 07 00 5D 95 95 66 D6 48 95 66 14 [21:32:12]GetLastDocTimeStamp 1721077510 [21:32:12]current date 1721079133 [21:32:12]FM_GetShiftState [21:32:12]SAM_PROTO_GetShiftState [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 13 01 00 [21:32:12]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0E 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 87 [21:32:12]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_GetShiftState done [21:32:12]FM_GetShiftState done [21:32:12]opened in 1721001862 [21:32:12]opened+sec_in_day 1721088262 [21:32:12]quantity*price = 12700 [21:32:12]sum+1 = 12701 [21:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 127.00 НСП 1% : 1.12 НДС 12% : 13.49 Наличными: 127.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 109 15.07.2024 21:32 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31668 ФПД: 252631967097169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T213213&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31668&fm=252631967097169&tin=02508201610067®Number=0000000000098025&sum=12700 0 [21:32:13]StoreToDocumentArchive [21:32:13]shift 370 fd 31668 [21:32:13]save to /storage/0370/doc_00031668 [21:32:13]save last doc name /storage/0370/doc_00031668 to /storage/kkm_last_doc_name [21:32:13]save OK [21:32:13]Clear old archive folders... [21:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=279 [21:32:13]tlvbuf is 01492BE0 [21:32:13]SAM_PROTO_ClearQueue [21:32:13]wFMCommunicate request_size=4 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 09 00 00 [21:32:13]Write to MH i2c: E2 08 00 1D 07 80 09 00 00 00 00 00 00 96 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:13]Read from MH i2c: E2 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 03 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [21:32:13]RAPDU: 90 00 [21:32:13]wFMCommunicate OK [21:32:13]SAM_PROTO_ClearQueue done [21:32:13]KKMCreateOFDPacket [21:32:13]OFDProtocolAddRootSTLVToBuf [21:32:13]FM_MakeSignedData [21:32:13]FM_MakeSignedData [21:32:13]SAM_PROTO_SignData [21:32:13]wFMCommunicate request_size=4 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 0D 01 02 [21:32:13]Write to MH i2c: E2 08 00 1E 07 80 0D 01 02 00 00 00 00 9E [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:13]OFD Sender: No OFD packet to send [21:32:13]Read from MH i2c: E2 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 03 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [21:32:13]RAPDU: 90 00 [21:32:13]wFMCommunicate OK [21:32:13]wFMCommunicate request_size=255 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 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 5D 95 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 [21:32:13]Write to MH i2c: E2 02 01 1F 07 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 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 5D 95 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 00 00 F0 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:14]Read from MH i2c: E2 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 03 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [21:32:14]RAPDU: 90 00 [21:32:14]wFMCommunicate OK [21:32:14]wFMCommunicate request_size=38 [21:32:14]MH_SAM_APDU [21:32:14]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B4 7B 00 00 35 04 06 00 E5 C4 76 A8 61 51 [21:32:14]Write to MH i2c: E2 29 00 20 07 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B4 7B 00 00 35 04 06 00 E5 C4 76 A8 61 51 00 00 DA [21:32:14]Write i2c OK [21:32:14]MH_I2C_Read... [21:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:14]Read from MH i2c: E2 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 03 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [21:32:14]RAPDU: 90 00 [21:32:14]wFMCommunicate OK [21:32:14]wFMCommunicate request_size=4 [21:32:14]MH_SAM_APDU [21:32:14]CAPDU: 80 0D 03 02 [21:32:14]Write to MH i2c: E2 08 00 21 07 80 0D 03 02 00 00 00 00 A3 [21:32:14]Write i2c OK [21:32:14]MH_I2C_Read... [21:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:14]Read from MH i2c: E2 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 0B 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 0B 00 21 07 00 DE F7 71 AE FE 19 D3 3F 90 00 C1 [21:32:14]RAPDU: DE F7 71 AE FE 19 D3 3F 90 00 [21:32:14]wFMCommunicate OK [21:32:14]SAM_PROTO_SignData done [21:32:14]FM_MakeSignedData done [21:32:14]CreateOFDProtocolMessage [21:32:14]wFMCommunicate request_size=4 [21:32:14]MH_SAM_APDU [21:32:14]CAPDU: 80 11 00 00 [21:32:14]Write to MH i2c: E2 08 00 22 07 80 11 00 00 00 00 00 00 A3 [21:32:14]Write i2c OK [21:32:14]MH_I2C_Read... [21:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:14]Read from MH i2c: E2 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 17 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: E2 17 00 22 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FE [21:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:32:14]wFMCommunicate OK [21:32:14]CreateOFDProtocolMessage done [21:32:14]OFDSenderStorePacket 31668 [21:32:14]StoreOFDPacket docnum=31668 [21:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2B 01 00 00 F5 23 23 01 57 38 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 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 5D 95 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B4 7B 00 00 35 04 06 00 E5 C4 76 A8 61 51 DE F7 71 AE FE 19 D3 3F [21:32:14]CheckFolder [21:32:14]dirname=/storage/ofd_packets [21:32:14]CheckFolder done [21:32:14]ProducePacketName [21:32:14]name=ofd_packets/00031668 [21:32:14]NVStorageSaveData ofd_packets/00031668 [21:32:14]File name is /storage/ofd_packets/00031668 [21:32:14]Write 329 bytes [21:32:14]NVStorageSaveData done [21:32:14]OFDSenderStorePacket done [21:32:14]KKMCreateOFDPacket done [21:32:14]NVStorageSaveData kkm_last_timestamp [21:32:14]File name is /storage/kkm_last_timestamp [21:32:14]Write 4 bytes [21:32:14]NVStorageSaveData done [21:32:14]ExternCall_PrintAddStr [21:32:14]wPrintStart [21:32:14]Write to MH i2c: 01 00 00 23 07 2A [21:32:14]Write i2c OK [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: 01 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: 01 07 00 [21:32:14]MH_I2C_Read... [21:32:14]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [21:32:14]RasterBufferAndPrint [21:32:14]line Счет N : (3)214250 [21:32:14]line ИНН: 02508201610067 [21:32:14]line Контрольно-Кассовый Чек [21:32:14]line ПРОДАЖА [21:32:14]line Товар: 4860019001414 [21:32:14]line Вода Боржоми 0,75л ПЭТ [21:32:14]line 1.000 * 127.00 [21:32:14]line = 127.00 [21:32:14]line НДС 12% НСП 1% [21:32:14]line > о реализуемом товаре [21:32:14]line ИТОГО: 127.00 [21:32:14]line НСП 1% : 1.12 [21:32:14]line НДС 12% : 13.49 [21:32:14]line Наличными: 127.00 [21:32:14]line Безнал.: 0.00 [21:32:14]line Место: АЗС № 140 "Партнер Нефть" [21:32:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:32:14]line СНО: Общий режим [21:32:14]line Чек 109 15.07.2024 21:32 [21:32:14]line Смена: 370 ФФД: 1.0 [21:32:14]line ЗНМ: 0300000189 [21:32:14]line РНМ: 0000000000098025 [21:32:14]line Версия ККМ: 001 [21:32:14]line ФМ: 0000000000965389 [21:32:14]line ФД: 31668 [21:32:14]line ФПД: 252631967097169 [21:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T213213&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31668&fm=252631967097169&tin=02508201610067®Number=0000000000098025&sum=12700 [21:32:14]line 0 [21:32:14]OFD Sender: Processing packet 31668 [packets to send 6, broken 5] [21:32:14]ProducePacketName [21:32:14]name=ofd_packets/00031668 [21:32:14]OFD Sender: To server: pG, [21:32:14]CommunicateWithHost lk.salyk.kg:30040 [21:32:14]ConnectInit lk.salyk.kg [21:32:14]written 0, free lines is 4095 [21:32:14]Connected sock=11 [21:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2B 01 00 00 F5 23 23 01 57 38 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 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 5D 95 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B4 7B 00 00 35 04 06 00 E5 C4 76 A8 61 51 DE F7 71 AE FE 19 D3 3F [21:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A3 EC 47 00 28 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B4 7B 00 00 F4 03 04 00 6C 41 95 66 B6 04 01 00 00 CB FB C9 3D BF 30 37 E5 [21:32:14]CommunicateWithHost err = 0 [21:32:14]CheckOFDResponse [21:32:14]1017 (14) - 77093643461234 [21:32:14]1041 (16) - 0000000000965389 [21:32:14]1040 (4) - 31668 [21:32:14]1012 (4) - 15.07.2024 15:34 [21:32:14]1206 (1) - 0 [21:32:14]OFD Sender: Remove packet 31668 [21:32:14]ProducePacketName [21:32:14]name=ofd_packets/00031668 [21:32:14]NVStorageDeleteData [21:32:15]Write to MH i2c: 01 00 00 4B 07 52 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0C 64 [21:32:15]RasterBufferAndPrint [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]written 0, free lines is 3333 [21:32:15]MH_Cut [21:32:15]Write to MH i2c: D1 01 00 52 07 01 2B [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 01 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 01 00 52 07 00 2A [21:32:15]Write to MH i2c: 01 00 00 53 07 5A [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]OFD Sender: No OFD packet to send [21:32:15]*** Cut start [21:32:15]*** Partial cut [21:32:15]*** CUTSNS_PIN = 1 [21:32:15]*** CUTSNS_PIN = 0 [21:32:16]*** Brake cut motor [21:32:16]Read from MH i2c: 01 [21:32:16]MH_I2C_Read... [21:32:16]*** Stop cut motor [21:32:16]*** Cut end [21:32:16]Read from MH i2c: 01 07 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [21:32:16]process_action close_receipt done [21:32:16]requested_data is exist [21:32:16]produce_requested_data [21:32:16]requested_item fm.sn is exist - process it [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 11 00 00 [21:32:16]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 17 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 30 [21:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:32:16]wFMCommunicate OK [21:32:16]requested_item fd.num is exist - process it [21:32:16]SAM_PROTO_GetFieldsCounters [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 13 00 00 [21:32:16]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 62 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B4 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [21:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B4 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:16]wFMCommunicate OK [21:32:16]SAM_PROTO_GetFieldsCounters done [21:32:16]requested_item shift.num is exist - process it [21:32:16]requested_item shift.opened is exist - process it [21:32:16]req_shift_opened [21:32:16]FM_GetShiftState [21:32:16]SAM_PROTO_GetShiftState [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 13 01 00 [21:32:16]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CD [21:32:16]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:32:16]wFMCommunicate OK [21:32:16]SAM_PROTO_GetShiftState done [21:32:16]FM_GetShiftState done [21:32:16]req_shift_opened done [21:32:16]requested_item shift.open_date is exist - process it [21:32:16]req_shift_open_date [21:32:16]req_shift_open_date done [21:32:16]produce_requested_data done [21:32:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31668,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [21:32:16]process_action_free close_receipt [21:32:16]json_value_free [21:32:16]json_value_free done [21:32:16]process_json_proto returns [21:32:16]Send response to host [21:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31668,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [21:32:16]free response buf [21:32:16]execute_script done [21:32:16]execute_script returns [21:32:16]free content buf [21:32:16]Sock 10.Close socket [21:32:16]Sock 10.Thread stoped [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:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]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:28]accept exits with 7 [21:46:28]New connection [21:46:28]New thread 3066965348 created [21:46:28]Thread 3066821988 joined [21:46:28]Waiting for new connection... [21:46:28] Sock 7.Parse request [21:46:28]Sock 7.Check first char [21:46:28]Sock 7.First char is OK [21:46:28]request: POST /json_proto HTTP/1.0 [21:46:28]Method: POST [21:46:28]URL: /json_proto [21:46:28]Method is POST - this is cgi request [21:46:28]url: /json_proto [21:46:28]query_string will be loaded in cgi processing [21:46:28]execute_cgi json_proto POST (null) [21:46:28]execute_cgi path=json_proto method=POST [21:46:28]POST find Content-Length [21:46:28]Host: 172.17.39.68:8080 [21:46:28]Content-Length: 632 [21:46:28]Content-Type: application/json [21:46:28] [21:46:28]POST finish read [21:46:28]Found Content-Length = 632 [21:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214251", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.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" ] } } [21:46:28]execute_script... [21:46: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)214251", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.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" ] } } [21:46:28]POST & json_proto [21:46:28]process_json_proto [21:46:28]json parsed OK: [21:46:28]protocol is kg_v1.0 [21:46:28]action value=close_receipt [21:46:28]process_action close_receipt [21:46:28]cmd_close_receipt [21:46:28]MH_GetDate [21:46:28]Write to MH i2c: F0 00 00 57 07 4D [21:46:28]Write i2c OK [21:46:28]MH_I2C_Read... [21:46:28]Read from MH i2c: F0 [21:46:28]MH_I2C_Read... [21:46:28]Read from MH i2c: F0 09 00 [21:46:28]MH_I2C_Read... [21:46:28]Read from MH i2c: F0 09 00 57 07 00 B5 98 95 66 D6 48 95 66 B7 [21:46:28]GetLastDocTimeStamp 1721079133 [21:46:28]current date 1721079989 [21:46:28]FM_GetShiftState [21:46:28]SAM_PROTO_GetShiftState [21:46:28]wFMCommunicate request_size=4 [21:46:28]MH_SAM_APDU [21:46:28]CAPDU: 80 13 01 00 [21:46:28]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [21:46:28]Write i2c OK [21:46:28]MH_I2C_Read... [21:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:28]Read from MH i2c: E2 [21:46:28]MH_I2C_Read... [21:46:28]Read from MH i2c: E2 0E 00 [21:46:28]MH_I2C_Read... [21:46:28]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CF [21:46:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:46:28]wFMCommunicate OK [21:46:28]SAM_PROTO_GetShiftState done [21:46:28]FM_GetShiftState done [21:46:28]opened in 1721001862 [21:46:28]opened+sec_in_day 1721088262 [21:46:28]quantity*price = 14000 [21:46:28]sum+1 = 14001 [21:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 110 15.07.2024 21:46 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31669 ФПД: 120778556299329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214629&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31669&fm=120778556299329&tin=02508201610067®Number=0000000000098025&sum=14000 0 [21:46:29]StoreToDocumentArchive [21:46:29]shift 370 fd 31669 [21:46:29]save to /storage/0370/doc_00031669 [21:46:29]save last doc name /storage/0370/doc_00031669 to /storage/kkm_last_doc_name [21:46:29]save OK [21:46:29]Clear old archive folders... [21:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:46:29]tlvbuf is 014A2710 [21:46:29]SAM_PROTO_ClearQueue [21:46:29]wFMCommunicate request_size=4 [21:46:29]MH_SAM_APDU [21:46:29]CAPDU: 80 09 00 00 [21:46:29]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [21:46:29]Write i2c OK [21:46:29]MH_I2C_Read... [21:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:29]Read from MH i2c: E2 [21:46:29]MH_I2C_Read... [21:46:29]Read from MH i2c: E2 03 00 [21:46:29]MH_I2C_Read... [21:46:29]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [21:46:29]RAPDU: 90 00 [21:46:29]wFMCommunicate OK [21:46:29]SAM_PROTO_ClearQueue done [21:46:29]KKMCreateOFDPacket [21:46:29]OFDProtocolAddRootSTLVToBuf [21:46:29]FM_MakeSignedData [21:46:29]FM_MakeSignedData [21:46:29]SAM_PROTO_SignData [21:46:29]wFMCommunicate request_size=4 [21:46:29]MH_SAM_APDU [21:46:29]CAPDU: 80 0D 01 02 [21:46:29]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [21:46:29]Write i2c OK [21:46:29]MH_I2C_Read... [21:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:29]Read from MH i2c: E2 [21:46:29]MH_I2C_Read... [21:46:29]Read from MH i2c: E2 03 00 [21:46:29]MH_I2C_Read... [21:46:29]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [21:46:29]RAPDU: 90 00 [21:46:29]wFMCommunicate OK [21:46:29]wFMCommunicate request_size=255 [21:46:29]MH_SAM_APDU [21:46:29]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 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 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 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 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 6E 00 00 00 F4 03 04 00 B5 98 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [21:46:29]Write to MH i2c: E2 02 01 67 07 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 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 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 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 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 6E 00 00 00 F4 03 04 00 B5 98 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 F7 [21:46:29]Write i2c OK [21:46:29]MH_I2C_Read... [21:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:30]Read from MH i2c: E2 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 03 00 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [21:46:30]RAPDU: 90 00 [21:46:30]wFMCommunicate OK [21:46:30]wFMCommunicate request_size=43 [21:46:30]MH_SAM_APDU [21:46:30]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B5 7B 00 00 35 04 06 00 6D D8 F2 F1 D8 41 [21:46:30]Write to MH i2c: E2 2E 00 68 07 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B5 7B 00 00 35 04 06 00 6D D8 F2 F1 D8 41 00 00 4A [21:46:30]Write i2c OK [21:46:30]MH_I2C_Read... [21:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:30]Read from MH i2c: E2 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 03 00 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [21:46:30]RAPDU: 90 00 [21:46:30]wFMCommunicate OK [21:46:30]wFMCommunicate request_size=4 [21:46:30]MH_SAM_APDU [21:46:30]CAPDU: 80 0D 03 02 [21:46:30]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [21:46:30]Write i2c OK [21:46:30]MH_I2C_Read... [21:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:30]Read from MH i2c: E2 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 0B 00 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 0B 00 69 07 00 BD EE 58 38 32 4B B7 9F 90 00 FA [21:46:30]RAPDU: BD EE 58 38 32 4B B7 9F 90 00 [21:46:30]wFMCommunicate OK [21:46:30]SAM_PROTO_SignData done [21:46:30]FM_MakeSignedData done [21:46:30]CreateOFDProtocolMessage [21:46:30]wFMCommunicate request_size=4 [21:46:30]MH_SAM_APDU [21:46:30]CAPDU: 80 11 00 00 [21:46:30]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [21:46:30]Write i2c OK [21:46:30]MH_I2C_Read... [21:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:30]Read from MH i2c: E2 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 17 00 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 46 [21:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:46:30]wFMCommunicate OK [21:46:30]CreateOFDProtocolMessage done [21:46:30]OFDSenderStorePacket 31669 [21:46:30]StoreOFDPacket docnum=31669 [21:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 30 01 00 00 A1 BE 28 01 14 5E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 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 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 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 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 6E 00 00 00 F4 03 04 00 B5 98 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B5 7B 00 00 35 04 06 00 6D D8 F2 F1 D8 41 BD EE 58 38 32 4B B7 9F [21:46:30]CheckFolder [21:46:30]dirname=/storage/ofd_packets [21:46:30]CheckFolder done [21:46:30]ProducePacketName [21:46:30]name=ofd_packets/00031669 [21:46:30]NVStorageSaveData ofd_packets/00031669 [21:46:30]File name is /storage/ofd_packets/00031669 [21:46:30]Write 334 bytes [21:46:30]NVStorageSaveData done [21:46:30]OFDSenderStorePacket done [21:46:30]KKMCreateOFDPacket done [21:46:30]NVStorageSaveData kkm_last_timestamp [21:46:30]File name is /storage/kkm_last_timestamp [21:46:30]Write 4 bytes [21:46:30]NVStorageSaveData done [21:46:30]ExternCall_PrintAddStr [21:46:30]wPrintStart [21:46:30]Write to MH i2c: 01 00 00 6B 07 72 [21:46:30]Write i2c OK [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: 01 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: 01 07 00 [21:46:30]MH_I2C_Read... [21:46:30]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [21:46:30]RasterBufferAndPrint [21:46:30]line Счет N : (3)214251 [21:46:30]line ИНН: 02508201610067 [21:46:30]line Контрольно-Кассовый Чек [21:46:30]line ПРОДАЖА [21:46:30]line Товар: 48745031 [21:46:30]line Сигареты Winston Superslims Expand Blue [21:46:30]line 1.000 * 140.00 [21:46:30]line = 140.00 [21:46:30]line НДС 12% НСП 1% [21:46:30]line > о реализуемом товаре [21:46:30]line ИТОГО: 140.00 [21:46:30]line НСП 1% : 1.24 [21:46:30]line НДС 12% : 14.87 [21:46:30]line Наличными: 140.00 [21:46:30]line Безнал.: 0.00 [21:46:30]line Место: АЗС № 140 "Партнер Нефть" [21:46:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:46:30]line СНО: Общий режим [21:46:30]line Чек 110 15.07.2024 21:46 [21:46:30]line Смена: 370 ФФД: 1.0 [21:46:30]line ЗНМ: 0300000189 [21:46:30]line РНМ: 0000000000098025 [21:46:30]line Версия ККМ: 001 [21:46:30]line ФМ: 0000000000965389 [21:46:30]line ФД: 31669 [21:46:30]line ФПД: 120778556299329 [21:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214629&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31669&fm=120778556299329&tin=02508201610067®Number=0000000000098025&sum=14000 [21:46:30]line 0 [21:46:30]OFD Sender: Processing packet 31669 [packets to send 6, broken 5] [21:46:30]ProducePacketName [21:46:30]name=ofd_packets/00031669 [21:46:30]OFD Sender: To server: pG, [21:46:30]CommunicateWithHost lk.salyk.kg:30040 [21:46:30]ConnectInit lk.salyk.kg [21:46:30]written 0, free lines is 4095 [21:46:30]Connected sock=10 [21:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 30 01 00 00 A1 BE 28 01 14 5E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 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 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 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 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 6E 00 00 00 F4 03 04 00 B5 98 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B5 7B 00 00 35 04 06 00 6D D8 F2 F1 D8 41 BD EE 58 38 32 4B B7 9F [21:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 CB E8 47 00 A1 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 39 36 35 33 38 39 10 04 04 00 B5 7B 00 00 F4 03 04 00 C5 44 95 66 B6 04 01 00 00 1D 28 50 CB DC 56 EB 66 [21:46:31]CommunicateWithHost err = 0 [21:46:31]CheckOFDResponse [21:46:31]1017 (14) - 77093643461234 [21:46:31]1041 (16) - 0000000000965389 [21:46:31]1040 (4) - 31669 [21:46:31]1012 (4) - 15.07.2024 15:48 [21:46:31]1206 (1) - 0 [21:46:31]OFD Sender: Remove packet 31669 [21:46:31]ProducePacketName [21:46:31]name=ofd_packets/00031669 [21:46:31]NVStorageDeleteData [21:46:31]Write to MH i2c: 01 00 00 94 07 9B [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 E3 0C 91 [21:46:31]RasterBufferAndPrint [21:46:31]line [21:46:31]line [21:46:31]line [21:46:31]line [21:46:31]line [21:46:31]written 0, free lines is 3305 [21:46:31]MH_Cut [21:46:31]Write to MH i2c: D1 01 00 9B 07 01 74 [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D1 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D1 01 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D1 01 00 9B 07 00 73 [21:46:31]Write to MH i2c: 01 00 00 9C 07 A3 [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]OFD Sender: No OFD packet to send [21:46:31]*** Cut start [21:46:31]*** Partial cut [21:46:31]*** CUTSNS_PIN = 1 [21:46:31]*** CUTSNS_PIN = 0 [21:46:32]*** Brake cut motor [21:46:32]Read from MH i2c: 01 [21:46:32]MH_I2C_Read... [21:46:32]*** Stop cut motor [21:46:32]*** Cut end [21:46:32]Read from MH i2c: 01 07 00 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [21:46:32]process_action close_receipt done [21:46:32]requested_data is exist [21:46:32]produce_requested_data [21:46:32]requested_item fm.sn is exist - process it [21:46:32]wFMCommunicate request_size=4 [21:46:32]MH_SAM_APDU [21:46:32]CAPDU: 80 11 00 00 [21:46:32]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [21:46:32]Write i2c OK [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 [21:46:32]MH_I2C_Read... [21:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:32]Read from MH i2c: E2 17 00 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 79 [21:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:46:32]wFMCommunicate OK [21:46:32]requested_item fd.num is exist - process it [21:46:32]SAM_PROTO_GetFieldsCounters [21:46:32]wFMCommunicate request_size=4 [21:46:32]MH_SAM_APDU [21:46:32]CAPDU: 80 13 00 00 [21:46:32]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [21:46:32]Write i2c OK [21:46:32]MH_I2C_Read... [21:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:32]Read from MH i2c: E2 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 62 00 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B5 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [21:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B5 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:32]wFMCommunicate OK [21:46:32]SAM_PROTO_GetFieldsCounters done [21:46:32]requested_item shift.num is exist - process it [21:46:32]requested_item shift.opened is exist - process it [21:46:32]req_shift_opened [21:46:32]FM_GetShiftState [21:46:32]SAM_PROTO_GetShiftState [21:46:32]wFMCommunicate request_size=4 [21:46:32]MH_SAM_APDU [21:46:32]CAPDU: 80 13 01 00 [21:46:32]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [21:46:32]Write i2c OK [21:46:32]MH_I2C_Read... [21:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:32]Read from MH i2c: E2 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 0E 00 [21:46:32]MH_I2C_Read... [21:46:32]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 16 [21:46:32]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:46:32]wFMCommunicate OK [21:46:32]SAM_PROTO_GetShiftState done [21:46:32]FM_GetShiftState done [21:46:32]req_shift_opened done [21:46:32]requested_item shift.open_date is exist - process it [21:46:32]req_shift_open_date [21:46:32]req_shift_open_date done [21:46:32]produce_requested_data done [21:46:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31669,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [21:46:32]process_action_free close_receipt [21:46:32]json_value_free [21:46:32]json_value_free done [21:46:32]process_json_proto returns [21:46:32]Send response to host [21:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31669,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [21:46:32]free response buf [21:46:32]execute_script done [21:46:32]execute_script returns [21:46:32]free content buf [21:46:32]Sock 7.Close socket [21:46:32]Sock 7.Thread stoped [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]accept exits with 9 [21:50:46]New connection [21:50:46]New thread 3066821988 created [21:50:46]Thread 3066965348 joined [21:50:46]Waiting for new connection... [21:50:46] Sock 9.Parse request [21:50:46]Sock 9.Check first char [21:50:46]Sock 9.First char is OK [21:50:46]request: POST /json_proto HTTP/1.0 [21:50:46]Method: POST [21:50:46]URL: /json_proto [21:50:46]Method is POST - this is cgi request [21:50:46]url: /json_proto [21:50:46]query_string will be loaded in cgi processing [21:50:46]execute_cgi json_proto POST (null) [21:50:46]execute_cgi path=json_proto method=POST [21:50:46]POST find Content-Length [21:50:46]Host: 172.17.39.68:8080 [21:50:46]Content-Length: 1166 [21:50:46]Content-Type: application/json [21:50:46] [21:50:46]POST finish read [21:50:46]Found Content-Length = 1166 [21:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214252", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:46]execute_script... [21:50: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)214252", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:46]POST & json_proto [21:50:46]process_json_proto [21:50:46]json parsed OK: [21:50:46]protocol is kg_v1.0 [21:50:46]action value=close_receipt [21:50:46]process_action close_receipt [21:50:46]cmd_close_receipt [21:50:46]MH_GetDate [21:50:46]Write to MH i2c: F0 00 00 A0 07 96 [21:50:46]Write i2c OK [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: F0 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: F0 09 00 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: F0 09 00 A0 07 00 B7 99 95 66 D6 48 95 66 03 [21:50:46]GetLastDocTimeStamp 1721079989 [21:50:46]current date 1721080247 [21:50:46]FM_GetShiftState [21:50:46]SAM_PROTO_GetShiftState [21:50:46]wFMCommunicate request_size=4 [21:50:46]MH_SAM_APDU [21:50:46]CAPDU: 80 13 01 00 [21:50:46]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [21:50:46]Write i2c OK [21:50:46]MH_I2C_Read... [21:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:46]Read from MH i2c: E2 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: E2 0E 00 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 18 [21:50:46]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:50:46]wFMCommunicate OK [21:50:46]SAM_PROTO_GetShiftState done [21:50:46]FM_GetShiftState done [21:50:46]opened in 1721001862 [21:50:46]opened+sec_in_day 1721088262 [21:50:46]quantity*price = 5500 [21:50:46]sum+1 = 5501 [21:50:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 111 15.07.2024 21:50 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31670 ФПД: 89242763306607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215047&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31670&fm=89242763306607&tin=02508201610067®Number=0000000000098025&sum=27000 0 [21:50:47]StoreToDocumentArchive [21:50:47]shift 370 fd 31670 [21:50:47]save to /storage/0370/doc_00031670 [21:50:47]save last doc name /storage/0370/doc_00031670 to /storage/kkm_last_doc_name [21:50:47]save OK [21:50:47]Clear old archive folders... [21:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=510 [21:50:47]tlvbuf is 01478D40 [21:50:47]SAM_PROTO_ClearQueue [21:50:47]wFMCommunicate request_size=4 [21:50:47]MH_SAM_APDU [21:50:47]CAPDU: 80 09 00 00 [21:50:47]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:47]Read from MH i2c: E2 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 03 00 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [21:50:47]RAPDU: 90 00 [21:50:47]wFMCommunicate OK [21:50:47]SAM_PROTO_ClearQueue done [21:50:47]KKMCreateOFDPacket [21:50:47]OFDProtocolAddRootSTLVToBuf [21:50:47]FM_MakeSignedData [21:50:47]FM_MakeSignedData [21:50:47]SAM_PROTO_SignData [21:50:47]wFMCommunicate request_size=4 [21:50:47]MH_SAM_APDU [21:50:47]CAPDU: 80 0D 01 02 [21:50:47]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:47]Read from MH i2c: E2 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 03 00 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [21:50:47]RAPDU: 90 00 [21:50:47]wFMCommunicate OK [21:50:47]wFMCommunicate request_size=255 [21:50:47]MH_SAM_APDU [21:50:47]CAPDU: 80 0D 02 02 FA 03 00 FE 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 65 00 8A 04 [21:50:47]Write to MH i2c: E2 02 01 B0 07 80 0D 02 02 FA 00 03 00 FE 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 65 00 8A 04 00 00 96 [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [21:50:48]RAPDU: 90 00 [21:50:48]wFMCommunicate OK [21:50:48]wFMCommunicate request_size=255 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 0D 02 02 FA 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 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 B7 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 [21:50:48]Write to MH i2c: E2 02 01 B1 07 80 0D 02 02 FA 00 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 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 B7 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 00 BA [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [21:50:48]RAPDU: 90 00 [21:50:48]wFMCommunicate OK [21:50:48]wFMCommunicate request_size=19 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 0D 02 02 0E B6 7B 00 00 35 04 06 00 51 2A 73 34 A6 6F [21:50:48]Write to MH i2c: E2 16 00 B2 07 80 0D 02 02 0E 00 B6 7B 00 00 35 04 06 00 51 2A 73 34 A6 6F 00 00 F6 [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [21:50:48]RAPDU: 90 00 [21:50:48]wFMCommunicate OK [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 0D 03 02 [21:50:48]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 0B 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 0B 00 B3 07 00 57 68 48 C8 B3 AE 2B F0 90 00 81 [21:50:48]RAPDU: 57 68 48 C8 B3 AE 2B F0 90 00 [21:50:48]wFMCommunicate OK [21:50:48]SAM_PROTO_SignData done [21:50:48]FM_MakeSignedData done [21:50:48]CreateOFDProtocolMessage [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 11 00 00 [21:50:48]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 17 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 90 [21:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:50:48]wFMCommunicate OK [21:50:48]CreateOFDProtocolMessage done [21:50:48]OFDSenderStorePacket 31670 [21:50:48]StoreOFDPacket docnum=31670 [21:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 02 00 00 DB 8A 0A 02 7A CA 5A 03 01 00 03 00 FE 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 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 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 B7 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B6 7B 00 00 35 04 06 00 51 2A 73 34 A6 6F 57 68 48 C8 B3 AE 2B F0 [21:50:48]CheckFolder [21:50:48]dirname=/storage/ofd_packets [21:50:48]CheckFolder done [21:50:48]ProducePacketName [21:50:48]name=ofd_packets/00031670 [21:50:48]NVStorageSaveData ofd_packets/00031670 [21:50:48]File name is /storage/ofd_packets/00031670 [21:50:48]Write 560 bytes [21:50:48]NVStorageSaveData done [21:50:48]OFDSenderStorePacket done [21:50:48]KKMCreateOFDPacket done [21:50:48]NVStorageSaveData kkm_last_timestamp [21:50:48]File name is /storage/kkm_last_timestamp [21:50:48]Write 4 bytes [21:50:48]NVStorageSaveData done [21:50:48]ExternCall_PrintAddStr [21:50:48]wPrintStart [21:50:48]Write to MH i2c: 01 00 00 B5 07 BC [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: 01 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: 01 07 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [21:50:48]RasterBufferAndPrint [21:50:48]line Счет N : (3)214252 [21:50:48]line ИНН: 02508201610067 [21:50:48]line Контрольно-Кассовый Чек [21:50:48]line ПРОДАЖА [21:50:48]line Товар: 4870112003925 [21:50:48]line Конд ULKER-Albeni 40gr (6*24) [21:50:48]line 1.000 * 55.00 [21:50:48]line = 55.00 [21:50:48]line НДС 12% НСП 1% [21:50:48]line > о реализуемом товаре [21:50:48]line Товар: 5449000189349 [21:50:48]line Холодный чай Fuse манго ананас 0,5л [21:50:48]line 1.000 * 75.00 [21:50:48]line = 75.00 [21:50:48]line НДС 12% НСП 1% [21:50:48]line > о реализуемом товаре [21:50:48]line Товар: 48743587 [21:50:48]line Сигареты Winston XStyle Silver [21:50:48]line 1.000 * 140.00 [21:50:48]line = 140.00 [21:50:48]line НДС 12% НСП 1% [21:50:48]line > о реализуемом товаре [21:50:48]line ИТОГО: 270.00 [21:50:48]line НСП 1% : 2.39 [21:50:48]line НДС 12% : 28.67 [21:50:48]line Наличными: 270.00 [21:50:48]line Безнал.: 0.00 [21:50:48]line Место: АЗС № 140 "Партнер Нефть" [21:50:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:50:48]line СНО: Общий режим [21:50:48]line Чек 111 15.07.2024 21:50 [21:50:48]line Смена: 370 ФФД: 1.0 [21:50:48]line ЗНМ: 0300000189 [21:50:48]line РНМ: 0000000000098025 [21:50:48]line Версия ККМ: 001 [21:50:48]line ФМ: 0000000000965389 [21:50:48]line ФД: 31670 [21:50:48]line ФПД: 89242763306607 [21:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215047&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31670&fm=89242763306607&tin=02508201610067®Number=0000000000098025&sum=27000 [21:50:48]line 0 [21:50:48]OFD Sender: Processing packet 31670 [packets to send 6, broken 5] [21:50:48]ProducePacketName [21:50:48]name=ofd_packets/00031670 [21:50:48]OFD Sender: To server: pG, [21:50:48]CommunicateWithHost lk.salyk.kg:30040 [21:50:48]ConnectInit lk.salyk.kg [21:50:48]written 0, free lines is 4095 [21:50:48]Connected sock=10 [21:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 02 00 00 DB 8A 0A 02 7A CA 5A 03 01 00 03 00 FE 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 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 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 B7 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B6 7B 00 00 35 04 06 00 51 2A 73 34 A6 6F 57 68 48 C8 B3 AE 2B F0 [21:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FD 6A 47 00 30 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B6 7B 00 00 F4 03 04 00 C7 45 95 66 B6 04 01 00 00 05 32 C0 A7 B1 FD 9E 55 [21:50:49]CommunicateWithHost err = 0 [21:50:49]CheckOFDResponse [21:50:49]1017 (14) - 77093643461234 [21:50:49]1041 (16) - 0000000000965389 [21:50:49]1040 (4) - 31670 [21:50:49]1012 (4) - 15.07.2024 15:52 [21:50:49]1206 (1) - 0 [21:50:49]OFD Sender: Remove packet 31670 [21:50:49]ProducePacketName [21:50:49]name=ofd_packets/00031670 [21:50:49]NVStorageDeleteData [21:50:49]Write to MH i2c: 01 00 00 EB 07 F2 [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 20 0C 25 [21:50:49]RasterBufferAndPrint [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]written 0, free lines is 3108 [21:50:49]MH_Cut [21:50:49]Write to MH i2c: D1 01 00 F2 07 01 CB [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 01 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 01 00 F2 07 00 CA [21:50:49]Write to MH i2c: 01 00 00 F3 07 FA [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]OFD Sender: No OFD packet to send [21:50:50]*** Cut start [21:50:50]*** Partial cut [21:50:50]*** CUTSNS_PIN = 1 [21:50:50]*** CUTSNS_PIN = 0 [21:50:50]*** Brake cut motor [21:50:50]Read from MH i2c: 01 [21:50:50]MH_I2C_Read... [21:50:50]*** Stop cut motor [21:50:50]*** Cut end [21:50:50]Read from MH i2c: 01 07 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [21:50:50]process_action close_receipt done [21:50:50]requested_data is exist [21:50:50]produce_requested_data [21:50:50]requested_item fm.sn is exist - process it [21:50:50]wFMCommunicate request_size=4 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 11 00 00 [21:50:50]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:50]Read from MH i2c: E2 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 17 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D0 [21:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:50:50]wFMCommunicate OK [21:50:50]requested_item fd.num is exist - process it [21:50:50]SAM_PROTO_GetFieldsCounters [21:50:50]wFMCommunicate request_size=4 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 13 00 00 [21:50:50]Write to MH i2c: E2 08 00 F5 07 80 13 00 00 00 00 00 00 78 [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 62 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 62 00 F5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B6 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [21:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B6 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_GetFieldsCounters done [21:50:51]requested_item shift.num is exist - process it [21:50:51]requested_item shift.opened is exist - process it [21:50:51]req_shift_opened [21:50:51]FM_GetShiftState [21:50:51]SAM_PROTO_GetShiftState [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 13 01 00 [21:50:51]Write to MH i2c: E2 08 00 F6 07 80 13 01 00 00 00 00 00 7A [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0E 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0E 00 F6 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6D [21:50:51]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_GetShiftState done [21:50:51]FM_GetShiftState done [21:50:51]req_shift_opened done [21:50:51]requested_item shift.open_date is exist - process it [21:50:51]req_shift_open_date [21:50:51]req_shift_open_date done [21:50:51]produce_requested_data done [21:50:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31670,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [21:50:51]process_action_free close_receipt [21:50:51]json_value_free [21:50:51]json_value_free done [21:50:51]process_json_proto returns [21:50:51]Send response to host [21:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31670,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [21:50:51]free response buf [21:50:51]execute_script done [21:50:51]execute_script returns [21:50:51]free content buf [21:50:51]Sock 9.Close socket [21:50:51]Sock 9.Thread stoped [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]accept exits with 7 [21:51:49]New connection [21:51:49]New thread 3066965348 created [21:51:49]Thread 3066821988 joined [21:51:49]Waiting for new connection... [21:51:49] Sock 7.Parse request [21:51:49]Sock 7.Check first char [21:51:49]Sock 7.First char is OK [21:51:49]request: POST /json_proto HTTP/1.0 [21:51:49]Method: POST [21:51:49]URL: /json_proto [21:51:49]Method is POST - this is cgi request [21:51:49]url: /json_proto [21:51:49]query_string will be loaded in cgi processing [21:51:49]execute_cgi json_proto POST (null) [21:51:49]execute_cgi path=json_proto method=POST [21:51:49]POST find Content-Length [21:51:49]Host: 172.17.39.68:8080 [21:51:49]Content-Length: 667 [21:51:49]Content-Type: application/json [21:51:49] [21:51:49]POST finish read [21:51:49]Found Content-Length = 667 [21:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214253", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:49]execute_script... [21: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)214253", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:49]POST & json_proto [21:51:49]process_json_proto [21:51:49]json parsed OK: [21:51:49]protocol is kg_v1.0 [21:51:49]action value=close_receipt [21:51:49]process_action close_receipt [21:51:49]cmd_close_receipt [21:51:49]MH_GetDate [21:51:49]Write to MH i2c: F0 00 00 F7 07 ED [21:51:49]Write i2c OK [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: F0 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: F0 09 00 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: F0 09 00 F7 07 00 F6 99 95 66 D6 48 95 66 99 [21:51:49]GetLastDocTimeStamp 1721080247 [21:51:49]current date 1721080310 [21:51:49]FM_GetShiftState [21:51:49]SAM_PROTO_GetShiftState [21:51:49]wFMCommunicate request_size=4 [21:51:49]MH_SAM_APDU [21:51:49]CAPDU: 80 13 01 00 [21:51:49]Write to MH i2c: E2 08 00 F8 07 80 13 01 00 00 00 00 00 7C [21:51:49]Write i2c OK [21:51:49]MH_I2C_Read... [21:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:49]Read from MH i2c: E2 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: E2 0E 00 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: E2 0E 00 F8 07 00 09 00 01 86 67 94 66 00 00 00 00 90 00 6F [21:51:49]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:51:49]wFMCommunicate OK [21:51:49]SAM_PROTO_GetShiftState done [21:51:49]FM_GetShiftState done [21:51:49]opened in 1721001862 [21:51:49]opened+sec_in_day 1721088262 [21:51:49]quantity*price = 20000 [21:51:49]sum+1 = 20001 [21:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 112 15.07.2024 21:51 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31671 ФПД: 51717874760167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215150&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31671&fm=51717874760167&tin=02508201610067®Number=0000000000098025&sum=20000 0 [21:51:50]StoreToDocumentArchive [21:51:50]shift 370 fd 31671 [21:51:50]save to /storage/0370/doc_00031671 [21:51:50]save last doc name /storage/0370/doc_00031671 to /storage/kkm_last_doc_name [21:51:50]save OK [21:51:50]Clear old archive folders... [21:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=283 [21:51:50]tlvbuf is 0147AE70 [21:51:50]SAM_PROTO_ClearQueue [21:51:50]wFMCommunicate request_size=4 [21:51:50]MH_SAM_APDU [21:51:50]CAPDU: 80 09 00 00 [21:51:50]Write to MH i2c: E2 08 00 05 08 80 09 00 00 00 00 00 00 7F [21:51:50]Write i2c OK [21:51:50]MH_I2C_Read... [21:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:50]Read from MH i2c: E2 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 03 00 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [21:51:50]RAPDU: 90 00 [21:51:50]wFMCommunicate OK [21:51:50]SAM_PROTO_ClearQueue done [21:51:50]KKMCreateOFDPacket [21:51:50]OFDProtocolAddRootSTLVToBuf [21:51:50]FM_MakeSignedData [21:51:50]FM_MakeSignedData [21:51:50]SAM_PROTO_SignData [21:51:50]wFMCommunicate request_size=4 [21:51:50]MH_SAM_APDU [21:51:50]CAPDU: 80 0D 01 02 [21:51:50]Write to MH i2c: E2 08 00 06 08 80 0D 01 02 00 00 00 00 87 [21:51:50]Write i2c OK [21:51:50]MH_I2C_Read... [21:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:50]Read from MH i2c: E2 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 03 00 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [21:51:50]RAPDU: 90 00 [21:51:50]wFMCommunicate OK [21:51:50]wFMCommunicate request_size=255 [21:51:50]MH_SAM_APDU [21:51:50]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 70 00 00 00 F4 03 04 00 F6 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 [21:51:50]Write to MH i2c: E2 02 01 07 08 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 70 00 00 00 F4 03 04 00 F6 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 00 00 5B [21:51:50]Write i2c OK [21:51:50]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 03 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [21:51:51]RAPDU: 90 00 [21:51:51]wFMCommunicate OK [21:51:51]wFMCommunicate request_size=42 [21:51:51]MH_SAM_APDU [21:51:51]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B7 7B 00 00 35 04 06 00 2F 09 81 8D B9 E7 [21:51:51]Write to MH i2c: E2 2D 00 08 08 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B7 7B 00 00 35 04 06 00 2F 09 81 8D B9 E7 00 00 7F [21:51:51]Write i2c OK [21:51:51]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 03 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [21:51:51]RAPDU: 90 00 [21:51:51]wFMCommunicate OK [21:51:51]wFMCommunicate request_size=4 [21:51:51]MH_SAM_APDU [21:51:51]CAPDU: 80 0D 03 02 [21:51:51]Write to MH i2c: E2 08 00 09 08 80 0D 03 02 00 00 00 00 8C [21:51:51]Write i2c OK [21:51:51]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 0B 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 0B 00 09 08 00 06 0B 6E A8 06 BD A6 16 90 00 33 [21:51:51]RAPDU: 06 0B 6E A8 06 BD A6 16 90 00 [21:51:51]wFMCommunicate OK [21:51:51]SAM_PROTO_SignData done [21:51:51]FM_MakeSignedData done [21:51:51]CreateOFDProtocolMessage [21:51:51]wFMCommunicate request_size=4 [21:51:51]MH_SAM_APDU [21:51:51]CAPDU: 80 11 00 00 [21:51:51]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [21:51:51]Write i2c OK [21:51:51]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 17 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E7 [21:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:51:51]wFMCommunicate OK [21:51:51]CreateOFDProtocolMessage done [21:51:51]OFDSenderStorePacket 31671 [21:51:51]StoreOFDPacket docnum=31671 [21:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 22 1D 27 01 8B C3 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 70 00 00 00 F4 03 04 00 F6 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B7 7B 00 00 35 04 06 00 2F 09 81 8D B9 E7 06 0B 6E A8 06 BD A6 16 [21:51:51]CheckFolder [21:51:51]dirname=/storage/ofd_packets [21:51:51]CheckFolder done [21:51:51]ProducePacketName [21:51:51]name=ofd_packets/00031671 [21:51:51]NVStorageSaveData ofd_packets/00031671 [21:51:51]File name is /storage/ofd_packets/00031671 [21:51:51]Write 333 bytes [21:51:51]NVStorageSaveData done [21:51:51]OFDSenderStorePacket done [21:51:51]KKMCreateOFDPacket done [21:51:51]NVStorageSaveData kkm_last_timestamp [21:51:51]File name is /storage/kkm_last_timestamp [21:51:51]Write 4 bytes [21:51:51]NVStorageSaveData done [21:51:51]ExternCall_PrintAddStr [21:51:51]wPrintStart [21:51:51]Write to MH i2c: 01 00 00 0B 08 13 [21:51:51]Write i2c OK [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: 01 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: 01 07 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [21:51:51]RasterBufferAndPrint [21:51:51]line Счет N : (3)214253 [21:51:51]line ИНН: 02508201610067 [21:51:51]line Контрольно-Кассовый Чек [21:51:51]line ПРОДАЖА [21:51:51]line Товар: 4700002082504 [21:51:51]line Водка Белое золото 0,24л [21:51:51]line 1.000 * 200.00 [21:51:51]line = 200.00 [21:51:51]line НДС 12% НСП 1% [21:51:51]line > о реализуемом товаре [21:51:51]line ИТОГО: 200.00 [21:51:51]line НСП 1% : 1.77 [21:51:51]line НДС 12% : 21.24 [21:51:51]line Наличными: 200.00 [21:51:51]line Безнал.: 0.00 [21:51:51]line Место: АЗС № 140 "Партнер Нефть" [21:51:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:51:51]line СНО: Общий режим [21:51:51]line Чек 112 15.07.2024 21:51 [21:51:51]line Смена: 370 ФФД: 1.0 [21:51:51]line ЗНМ: 0300000189 [21:51:51]line РНМ: 0000000000098025 [21:51:51]line Версия ККМ: 001 [21:51:51]line ФМ: 0000000000965389 [21:51:51]line ФД: 31671 [21:51:51]line ФПД: 51717874760167 [21:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215150&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31671&fm=51717874760167&tin=02508201610067®Number=0000000000098025&sum=20000 [21:51:51]line 0 [21:51:51]OFD Sender: Processing packet 31671 [packets to send 6, broken 5] [21:51:51]ProducePacketName [21:51:51]name=ofd_packets/00031671 [21:51:51]OFD Sender: To server: pG, [21:51:51]CommunicateWithHost lk.salyk.kg:30040 [21:51:51]ConnectInit lk.salyk.kg [21:51:51]written 0, free lines is 4095 [21:51:51]Connected sock=10 [21:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 22 1D 27 01 8B C3 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 70 00 00 00 F4 03 04 00 F6 99 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B7 7B 00 00 35 04 06 00 2F 09 81 8D B9 E7 06 0B 6E A8 06 BD A6 16 [21:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 61 24 47 00 53 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 39 36 35 33 38 39 10 04 04 00 B7 7B 00 00 F4 03 04 00 05 46 95 66 B6 04 01 00 00 00 6B CB 3C 62 2D 60 14 [21:51:51]CommunicateWithHost err = 0 [21:51:51]CheckOFDResponse [21:51:51]1017 (14) - 77093643461234 [21:51:51]1041 (16) - 0000000000965389 [21:51:51]1040 (4) - 31671 [21:51:51]1012 (4) - 15.07.2024 15:53 [21:51:51]1206 (1) - 0 [21:51:51]OFD Sender: Remove packet 31671 [21:51:51]ProducePacketName [21:51:51]name=ofd_packets/00031671 [21:51:51]NVStorageDeleteData [21:51:52]Write to MH i2c: 01 00 00 33 08 3B [21:51:52]Write i2c OK [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: 01 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: 01 07 00 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 04 0D 53 [21:51:52]RasterBufferAndPrint [21:51:52]line [21:51:52]line [21:51:52]line [21:51:52]line [21:51:52]line [21:51:52]written 0, free lines is 3337 [21:51:52]MH_Cut [21:51:52]Write to MH i2c: D1 01 00 3A 08 01 14 [21:51:52]Write i2c OK [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: D1 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: D1 01 00 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: D1 01 00 3A 08 00 13 [21:51:52]Write to MH i2c: 01 00 00 3B 08 43 [21:51:52]Write i2c OK [21:51:52]MH_I2C_Read... [21:51:52]OFD Sender: No OFD packet to send [21:51:52]*** Cut start [21:51:52]*** Partial cut [21:51:52]*** CUTSNS_PIN = 1 [21:51:52]*** CUTSNS_PIN = 0 [21:51:53]*** Brake cut motor [21:51:53]Read from MH i2c: 01 [21:51:53]MH_I2C_Read... [21:51:53]*** Stop cut motor [21:51:53]*** Cut end [21:51:53]Read from MH i2c: 01 07 00 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [21:51:53]process_action close_receipt done [21:51:53]requested_data is exist [21:51:53]produce_requested_data [21:51:53]requested_item fm.sn is exist - process it [21:51:53]wFMCommunicate request_size=4 [21:51:53]MH_SAM_APDU [21:51:53]CAPDU: 80 11 00 00 [21:51:53]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [21:51:53]Write i2c OK [21:51:53]MH_I2C_Read... [21:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:53]Read from MH i2c: E2 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 17 00 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 19 [21:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:51:53]wFMCommunicate OK [21:51:53]requested_item fd.num is exist - process it [21:51:53]SAM_PROTO_GetFieldsCounters [21:51:53]wFMCommunicate request_size=4 [21:51:53]MH_SAM_APDU [21:51:53]CAPDU: 80 13 00 00 [21:51:53]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [21:51:53]Write i2c OK [21:51:53]MH_I2C_Read... [21:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:53]Read from MH i2c: E2 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 62 00 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B7 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [21:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B7 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:53]wFMCommunicate OK [21:51:53]SAM_PROTO_GetFieldsCounters done [21:51:53]requested_item shift.num is exist - process it [21:51:53]requested_item shift.opened is exist - process it [21:51:53]req_shift_opened [21:51:53]FM_GetShiftState [21:51:53]SAM_PROTO_GetShiftState [21:51:53]wFMCommunicate request_size=4 [21:51:53]MH_SAM_APDU [21:51:53]CAPDU: 80 13 01 00 [21:51:53]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [21:51:53]Write i2c OK [21:51:53]MH_I2C_Read... [21:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:53]Read from MH i2c: E2 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 0E 00 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B6 [21:51:53]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [21:51:53]wFMCommunicate OK [21:51:53]SAM_PROTO_GetShiftState done [21:51:53]FM_GetShiftState done [21:51:53]req_shift_opened done [21:51:53]requested_item shift.open_date is exist - process it [21:51:53]req_shift_open_date [21:51:53]req_shift_open_date done [21:51:53]produce_requested_data done [21:51:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31671,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [21:51:53]process_action_free close_receipt [21:51:53]json_value_free [21:51:53]json_value_free done [21:51:53]process_json_proto returns [21:51:53]Send response to host [21:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31671,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [21:51:53]free response buf [21:51:53]execute_script done [21:51:53]execute_script returns [21:51:53]free content buf [21:51:53]Sock 7.Close socket [21:51:53]Sock 7.Thread stoped [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58: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 [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:23]accept exits with 9 [22:02:23]New connection [22:02:23]New thread 3066821988 created [22:02:23]Thread 3066965348 joined [22:02:23]Waiting for new connection... [22:02:23] Sock 9.Parse request [22:02:23]Sock 9.Check first char [22:02:23]Sock 9.First char is OK [22:02:23]request: POST /json_proto HTTP/1.0 [22:02:23]Method: POST [22:02:23]URL: /json_proto [22:02:23]Method is POST - this is cgi request [22:02:23]url: /json_proto [22:02:23]query_string will be loaded in cgi processing [22:02:23]execute_cgi json_proto POST (null) [22:02:23]execute_cgi path=json_proto method=POST [22:02:23]POST find Content-Length [22:02:23]Host: 172.17.39.68:8080 [22:02:23]Content-Length: 1470 [22:02:23]Content-Type: application/json [22:02:23] [22:02:23]POST finish read [22:02:23]Found Content-Length = 1470 [22:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214254", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 111.00, "quantity" : 1.000, "sum" : 111.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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 427.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:23]execute_script... [22:02: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)214254", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 111.00, "quantity" : 1.000, "sum" : 111.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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 427.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:23]POST & json_proto [22:02:23]process_json_proto [22:02:23]json parsed OK: [22:02:23]protocol is kg_v1.0 [22:02:23]action value=close_receipt [22:02:23]process_action close_receipt [22:02:23]cmd_close_receipt [22:02:23]MH_GetDate [22:02:23]Write to MH i2c: F0 00 00 3F 08 36 [22:02:23]Write i2c OK [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: F0 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: F0 09 00 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: F0 09 00 3F 08 00 70 9C 95 66 D6 48 95 66 5F [22:02:23]GetLastDocTimeStamp 1721080310 [22:02:23]current date 1721080944 [22:02:23]FM_GetShiftState [22:02:23]SAM_PROTO_GetShiftState [22:02:23]wFMCommunicate request_size=4 [22:02:23]MH_SAM_APDU [22:02:23]CAPDU: 80 13 01 00 [22:02:23]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [22:02:23]Write i2c OK [22:02:23]MH_I2C_Read... [22:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:23]Read from MH i2c: E2 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: E2 0E 00 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B8 [22:02:23]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:02:23]wFMCommunicate OK [22:02:23]SAM_PROTO_GetShiftState done [22:02:23]FM_GetShiftState done [22:02:23]opened in 1721001862 [22:02:23]opened+sec_in_day 1721088262 [22:02:23]quantity*price = 13000 [22:02:23]sum+1 = 13001 [22:02:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 427.00 НСП 1% : 3.77 НДС 12% : 45.35 Наличными: 427.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 113 15.07.2024 22:02 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31672 ФПД: 129005026828266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31672&fm=129005026828266&tin=02508201610067®Number=0000000000098025&sum=42700 0 [22:02:24]StoreToDocumentArchive [22:02:24]shift 370 fd 31672 [22:02:24]save to /storage/0370/doc_00031672 [22:02:24]save last doc name /storage/0370/doc_00031672 to /storage/kkm_last_doc_name [22:02:24]save OK [22:02:24]Clear old archive folders... [22:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=628 [22:02:24]tlvbuf is B6EC48E0 [22:02:24]SAM_PROTO_ClearQueue [22:02:24]wFMCommunicate request_size=4 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 09 00 00 [22:02:24]Write to MH i2c: E2 08 00 4D 08 80 09 00 00 00 00 00 00 C7 [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:24]Read from MH i2c: E2 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 03 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [22:02:24]RAPDU: 90 00 [22:02:24]wFMCommunicate OK [22:02:24]SAM_PROTO_ClearQueue done [22:02:24]KKMCreateOFDPacket [22:02:24]OFDProtocolAddRootSTLVToBuf [22:02:24]FM_MakeSignedData [22:02:24]FM_MakeSignedData [22:02:24]SAM_PROTO_SignData [22:02:24]wFMCommunicate request_size=4 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 0D 01 02 [22:02:24]Write to MH i2c: E2 08 00 4E 08 80 0D 01 02 00 00 00 00 CF [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:24]Read from MH i2c: E2 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 03 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [22:02:24]RAPDU: 90 00 [22:02:24]wFMCommunicate OK [22:02:24]wFMCommunicate request_size=255 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 0D 02 02 FA 03 00 74 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 [22:02:24]Write to MH i2c: E2 02 01 4F 08 80 0D 02 02 FA 00 03 00 74 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 00 00 83 [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [22:02:25]RAPDU: 90 00 [22:02:25]wFMCommunicate OK [22:02:25]wFMCommunicate request_size=255 [22:02:25]MH_SAM_APDU [22:02:25]CAPDU: 80 0D 02 02 FA 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 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 FC 03 06 00 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 [22:02:25]Write to MH i2c: E2 02 01 50 08 80 0D 02 02 FA 00 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 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 FC 03 06 00 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 00 00 DE [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [22:02:25]RAPDU: 90 00 [22:02:25]wFMCommunicate OK [22:02:25]wFMCommunicate request_size=137 [22:02:25]MH_SAM_APDU [22:02:25]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 11 00 00 00 00 07 04 06 00 CC A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 70 9C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B8 7B 00 00 35 04 06 00 75 54 52 CC 5F EA [22:02:25]Write to MH i2c: E2 8C 00 51 08 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 11 00 00 00 00 07 04 06 00 CC A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 70 9C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B8 7B 00 00 35 04 06 00 75 54 52 CC 5F EA 00 00 97 [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [22:02:25]RAPDU: 90 00 [22:02:25]wFMCommunicate OK [22:02:25]wFMCommunicate request_size=4 [22:02:25]MH_SAM_APDU [22:02:25]CAPDU: 80 0D 03 02 [22:02:25]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 0B 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 0B 00 52 08 00 C6 E0 79 A1 01 9F 45 E8 90 00 63 [22:02:25]RAPDU: C6 E0 79 A1 01 9F 45 E8 90 00 [22:02:25]wFMCommunicate OK [22:02:25]SAM_PROTO_SignData done [22:02:25]FM_MakeSignedData done [22:02:25]CreateOFDProtocolMessage [22:02:25]wFMCommunicate request_size=4 [22:02:25]MH_SAM_APDU [22:02:25]CAPDU: 80 11 00 00 [22:02:25]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 17 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 30 [22:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:02:25]wFMCommunicate OK [22:02:25]CreateOFDProtocolMessage done [22:02:25]OFDSenderStorePacket 31672 [22:02:25]StoreOFDPacket docnum=31672 [22:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 88 02 00 00 4E 5E 80 02 D2 41 5A 03 01 00 03 00 74 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 FC 03 06 00 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 11 00 00 00 00 07 04 06 00 CC A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 70 9C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B8 7B 00 00 35 04 06 00 75 54 52 CC 5F EA C6 E0 79 A1 01 9F 45 E8 [22:02:25]CheckFolder [22:02:25]dirname=/storage/ofd_packets [22:02:25]CheckFolder done [22:02:25]ProducePacketName [22:02:25]name=ofd_packets/00031672 [22:02:25]NVStorageSaveData ofd_packets/00031672 [22:02:25]File name is /storage/ofd_packets/00031672 [22:02:25]Write 678 bytes [22:02:25]NVStorageSaveData done [22:02:25]OFDSenderStorePacket done [22:02:25]KKMCreateOFDPacket done [22:02:25]NVStorageSaveData kkm_last_timestamp [22:02:25]File name is /storage/kkm_last_timestamp [22:02:25]Write 4 bytes [22:02:25]NVStorageSaveData done [22:02:25]ExternCall_PrintAddStr [22:02:25]wPrintStart [22:02:25]Write to MH i2c: 01 00 00 54 08 5C [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: 01 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: 01 07 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [22:02:25]RasterBufferAndPrint [22:02:25]line Счет N : (3)214254 [22:02:25]line ИНН: 02508201610067 [22:02:25]line Контрольно-Кассовый Чек [22:02:25]line ПРОДАЖА [22:02:25]line Товар: 4870002329937 [22:02:25]line Напиток Lipton IceTea 1л персик Regular [22:02:25]line 1.000 * 130.00 [22:02:25]line = 130.00 [22:02:25]line НДС 12% НСП 1% [22:02:25]line > о реализуемом товаре [22:02:25]line Товар: 4870001570071 [22:02:25]line Напиток Pepsi 1л [22:02:25]line 1.000 * 111.00 [22:02:25]line = 111.00 [22:02:25]line НДС 12% НСП 1% [22:02:26]line > о реализуемом товаре [22:02:26]line Товар: 4603290004879 [22:02:26]line Печ.сах.FORSITE Сэнд.кокос.вк [22:02:26]line 1.000 * 93.00 [22:02:26]line = 93.00 [22:02:26]line НДС 12% НСП 1% [22:02:26]line > о реализуемом товаре [22:02:26]line Товар: 4603290004862 [22:02:26]line Печ.сах.FORSITE Сэнд.шок-ор.вк [22:02:26]line 1.000 * 93.00 [22:02:26]line = 93.00 [22:02:26]line НДС 12% НСП 1% [22:02:26]line > о реализуемом товаре [22:02:26]line ИТОГО: 427.00 [22:02:26]line НСП 1% : 3.77 [22:02:26]line НДС 12% : 45.35 [22:02:26]line Наличными: 427.00 [22:02:26]line Безнал.: 0.00 [22:02:26]line Место: АЗС № 140 "Партнер Нефть" [22:02:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:02:26]line СНО: Общий режим [22:02:26]line Чек 113 15.07.2024 22:02 [22:02:26]line Смена: 370 ФФД: 1.0 [22:02:26]line ЗНМ: 0300000189 [22:02:26]line РНМ: 0000000000098025 [22:02:26]line Версия ККМ: 001 [22:02:26]line ФМ: 0000000000965389 [22:02:26]line ФД: 31672 [22:02:26]line ФПД: 129005026828266 [22:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220224&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31672&fm=129005026828266&tin=02508201610067®Number=0000000000098025&sum=42700 [22:02:26]line 0 [22:02:26]OFD Sender: Processing packet 31672 [packets to send 6, broken 5] [22:02:26]ProducePacketName [22:02:26]name=ofd_packets/00031672 [22:02:26]OFD Sender: To server: pG, [22:02:26]CommunicateWithHost lk.salyk.kg:30040 [22:02:26]ConnectInit lk.salyk.kg [22:02:26]written 0, free lines is 4095 [22:02:26]Connected sock=10 [22:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 88 02 00 00 4E 5E 80 02 D2 41 5A 03 01 00 03 00 74 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 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 FC 03 06 00 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 11 00 00 00 00 07 04 06 00 CC A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 70 9C 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B8 7B 00 00 35 04 06 00 75 54 52 CC 5F EA C6 E0 79 A1 01 9F 45 E8 [22:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2E FE 47 00 36 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B8 7B 00 00 F4 03 04 00 80 48 95 66 B6 04 01 00 00 56 A8 40 BF 0A 08 98 37 [22:02:26]CommunicateWithHost err = 0 [22:02:26]CheckOFDResponse [22:02:26]1017 (14) - 77093643461234 [22:02:26]1041 (16) - 0000000000965389 [22:02:26]1040 (4) - 31672 [22:02:26]1012 (4) - 15.07.2024 16:04 [22:02:26]1206 (1) - 0 [22:02:26]OFD Sender: Remove packet 31672 [22:02:26]ProducePacketName [22:02:26]name=ofd_packets/00031672 [22:02:26]NVStorageDeleteData [22:02:26]Write to MH i2c: 01 00 00 90 08 98 [22:02:26]Write i2c OK [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: 01 [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: 01 07 00 [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 D4 0B 7E [22:02:26]RasterBufferAndPrint [22:02:26]line [22:02:26]line [22:02:26]line [22:02:26]line [22:02:26]line [22:02:26]written 0, free lines is 3037 [22:02:26]MH_Cut [22:02:26]Write to MH i2c: D1 01 00 97 08 01 71 [22:02:26]Write i2c OK [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: D1 [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: D1 01 00 [22:02:26]MH_I2C_Read... [22:02:26]Read from MH i2c: D1 01 00 97 08 00 70 [22:02:26]Write to MH i2c: 01 00 00 98 08 A0 [22:02:26]Write i2c OK [22:02:26]MH_I2C_Read... [22:02:26]OFD Sender: No OFD packet to send [22:02:27]*** Cut start [22:02:27]*** Partial cut [22:02:27]*** CUTSNS_PIN = 1 [22:02:27]*** CUTSNS_PIN = 0 [22:02:27]*** Brake cut motor [22:02:28]Read from MH i2c: 01 [22:02:28]MH_I2C_Read... [22:02:28]*** Stop cut motor [22:02:28]*** Cut end [22:02:28]Read from MH i2c: 01 07 00 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [22:02:28]process_action close_receipt done [22:02:28]requested_data is exist [22:02:28]produce_requested_data [22:02:28]requested_item fm.sn is exist - process it [22:02:28]wFMCommunicate request_size=4 [22:02:28]MH_SAM_APDU [22:02:28]CAPDU: 80 11 00 00 [22:02:28]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [22:02:28]Write i2c OK [22:02:28]MH_I2C_Read... [22:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:28]Read from MH i2c: E2 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 17 00 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [22:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:02:28]wFMCommunicate OK [22:02:28]requested_item fd.num is exist - process it [22:02:28]SAM_PROTO_GetFieldsCounters [22:02:28]wFMCommunicate request_size=4 [22:02:28]MH_SAM_APDU [22:02:28]CAPDU: 80 13 00 00 [22:02:28]Write to MH i2c: E2 08 00 9A 08 80 13 00 00 00 00 00 00 1E [22:02:28]Write i2c OK [22:02:28]MH_I2C_Read... [22:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:28]Read from MH i2c: E2 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 62 00 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 62 00 9A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B8 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:02:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B8 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:28]wFMCommunicate OK [22:02:28]SAM_PROTO_GetFieldsCounters done [22:02:28]requested_item shift.num is exist - process it [22:02:28]requested_item shift.opened is exist - process it [22:02:28]req_shift_opened [22:02:28]FM_GetShiftState [22:02:28]SAM_PROTO_GetShiftState [22:02:28]wFMCommunicate request_size=4 [22:02:28]MH_SAM_APDU [22:02:28]CAPDU: 80 13 01 00 [22:02:28]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [22:02:28]Write i2c OK [22:02:28]MH_I2C_Read... [22:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:28]Read from MH i2c: E2 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 0E 00 [22:02:28]MH_I2C_Read... [22:02:28]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 13 [22:02:28]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:02:28]wFMCommunicate OK [22:02:28]SAM_PROTO_GetShiftState done [22:02:28]FM_GetShiftState done [22:02:28]req_shift_opened done [22:02:28]requested_item shift.open_date is exist - process it [22:02:28]req_shift_open_date [22:02:28]req_shift_open_date done [22:02:28]produce_requested_data done [22:02:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31672,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [22:02:28]process_action_free close_receipt [22:02:28]json_value_free [22:02:28]json_value_free done [22:02:28]process_json_proto returns [22:02:28]Send response to host [22:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31672,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [22:02:28]free response buf [22:02:28]execute_script done [22:02:28]execute_script returns [22:02:28]free content buf [22:02:28]Sock 9.Close socket [22:02:28]Sock 9.Thread stoped [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:35]accept exits with 7 [22:07:35]New connection [22:07:35]New thread 3066965348 created [22:07:35]Thread 3066821988 joined [22:07:35]Waiting for new connection... [22:07:35] Sock 7.Parse request [22:07:35]Sock 7.Check first char [22:07:35]Sock 7.First char is OK [22:07:35]request: POST /json_proto HTTP/1.0 [22:07:35]Method: POST [22:07:35]URL: /json_proto [22:07:35]Method is POST - this is cgi request [22:07:35]url: /json_proto [22:07:35]query_string will be loaded in cgi processing [22:07:35]execute_cgi json_proto POST (null) [22:07:35]execute_cgi path=json_proto method=POST [22:07:35]POST find Content-Length [22:07:35]Host: 172.17.39.68:8080 [22:07:35]Content-Length: 822 [22:07:35]Content-Type: application/json [22:07:35] [22:07:35]POST finish read [22:07:35]Found Content-Length = 822 [22:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214255", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:35]execute_script... [22:07: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)214255", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:35]POST & json_proto [22:07:35]process_json_proto [22:07:35]json parsed OK: [22:07:35]protocol is kg_v1.0 [22:07:35]action value=close_receipt [22:07:35]process_action close_receipt [22:07:35]cmd_close_receipt [22:07:35]MH_GetDate [22:07:35]Write to MH i2c: F0 00 00 9C 08 93 [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: F0 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: F0 09 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: F0 09 00 9C 08 00 A9 9D 95 66 D6 48 95 66 F6 [22:07:35]GetLastDocTimeStamp 1721080944 [22:07:35]current date 1721081257 [22:07:35]FM_GetShiftState [22:07:35]SAM_PROTO_GetShiftState [22:07:35]wFMCommunicate request_size=4 [22:07:35]MH_SAM_APDU [22:07:35]CAPDU: 80 13 01 00 [22:07:35]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:35]Read from MH i2c: E2 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 15 [22:07:35]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:07:35]wFMCommunicate OK [22:07:35]SAM_PROTO_GetShiftState done [22:07:35]FM_GetShiftState done [22:07:35]opened in 1721001862 [22:07:35]opened+sec_in_day 1721088262 [22:07:35]quantity*price = 14000 [22:07:35]sum+1 = 14001 [22:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 114 15.07.2024 22:07 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965389 ФД: 31673 ФПД: 41639030809011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220737&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31673&fm=41639030809011&tin=02508201610067®Number=0000000000098025&sum=14000 0 [22:07:36]StoreToDocumentArchive [22:07:36]shift 370 fd 31673 [22:07:36]save to /storage/0370/doc_00031673 [22:07:36]save last doc name /storage/0370/doc_00031673 to /storage/kkm_last_doc_name [22:07:36]save OK [22:07:36]Clear old archive folders... [22:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:07:36]tlvbuf is 01493220 [22:07:36]SAM_PROTO_ClearQueue [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 09 00 00 [22:07:36]Write to MH i2c: E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_ClearQueue done [22:07:36]KKMCreateOFDPacket [22:07:36]OFDProtocolAddRootSTLVToBuf [22:07:36]FM_MakeSignedData [22:07:36]FM_MakeSignedData [22:07:36]SAM_PROTO_SignData [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 01 02 [22:07:36]Write to MH i2c: E2 08 00 AB 08 80 0D 01 02 00 00 00 00 2C [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=255 [22:07:36]MH_SAM_APDU [22:07:36]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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 9D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [22:07:37]Write to MH i2c: E2 02 01 AC 08 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 9D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 46 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]OFD Sender: No OFD packet to send [22:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:37]Read from MH i2c: E2 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 03 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [22:07:37]RAPDU: 90 00 [22:07:37]wFMCommunicate OK [22:07:37]wFMCommunicate request_size=32 [22:07:37]MH_SAM_APDU [22:07:37]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 B9 7B 00 00 35 04 06 00 25 DE D7 A3 E1 B3 [22:07:37]Write to MH i2c: E2 23 00 AD 08 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 B9 7B 00 00 35 04 06 00 25 DE D7 A3 E1 B3 00 00 D9 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:37]Read from MH i2c: E2 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 03 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [22:07:37]RAPDU: 90 00 [22:07:37]wFMCommunicate OK [22:07:37]wFMCommunicate request_size=4 [22:07:37]MH_SAM_APDU [22:07:37]CAPDU: 80 0D 03 02 [22:07:37]Write to MH i2c: E2 08 00 AE 08 80 0D 03 02 00 00 00 00 31 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:37]Read from MH i2c: E2 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 0B 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 0B 00 AE 08 00 58 1A 9B DF 7F 57 C9 83 90 00 40 [22:07:37]RAPDU: 58 1A 9B DF 7F 57 C9 83 90 00 [22:07:37]wFMCommunicate OK [22:07:37]SAM_PROTO_SignData done [22:07:37]FM_MakeSignedData done [22:07:37]CreateOFDProtocolMessage [22:07:37]wFMCommunicate request_size=4 [22:07:37]MH_SAM_APDU [22:07:37]CAPDU: 80 11 00 00 [22:07:37]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:37]Read from MH i2c: E2 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 17 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8C [22:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:07:37]wFMCommunicate OK [22:07:37]CreateOFDProtocolMessage done [22:07:37]OFDSenderStorePacket 31673 [22:07:37]StoreOFDPacket docnum=31673 [22:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 67 7F 1D 01 A0 0A 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 9D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B9 7B 00 00 35 04 06 00 25 DE D7 A3 E1 B3 58 1A 9B DF 7F 57 C9 83 [22:07:37]CheckFolder [22:07:37]dirname=/storage/ofd_packets [22:07:37]CheckFolder done [22:07:37]ProducePacketName [22:07:37]name=ofd_packets/00031673 [22:07:37]NVStorageSaveData ofd_packets/00031673 [22:07:37]File name is /storage/ofd_packets/00031673 [22:07:37]Write 323 bytes [22:07:37]NVStorageSaveData done [22:07:37]OFDSenderStorePacket done [22:07:37]KKMCreateOFDPacket done [22:07:37]NVStorageSaveData kkm_last_timestamp [22:07:37]File name is /storage/kkm_last_timestamp [22:07:37]Write 4 bytes [22:07:37]NVStorageSaveData done [22:07:37]ExternCall_PrintAddStr [22:07:37]OFD Sender: Processing packet 31673 [packets to send 6, broken 5] [22:07:37]ProducePacketName [22:07:37]name=ofd_packets/00031673 [22:07:37]OFD Sender: To server: pG, [22:07:37]CommunicateWithHost lk.salyk.kg:30040 [22:07:37]ConnectInit lk.salyk.kg [22:07:37]wPrintStart [22:07:37]Write to MH i2c: 01 00 00 B0 08 B8 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [22:07:37]RasterBufferAndPrint [22:07:37]line Счет N : (3)214255 [22:07:37]line ИНН: 02508201610067 [22:07:37]line Контрольно-Кассовый Чек [22:07:37]line ПРОДАЖА [22:07:37]line Товар: 48743570 [22:07:37]line Сигареты Winston XStyle Blue [22:07:37]line 1.000 * 140.00 [22:07:37]line = 140.00 [22:07:37]line НДС 12% НСП 1% [22:07:37]line > о реализуемом товаре [22:07:37]line ИТОГО: 140.00 [22:07:37]line НСП 1% : 1.24 [22:07:37]line НДС 12% : 14.87 [22:07:37]line Наличными: 0.00 [22:07:37]line Безнал.: 140.00 [22:07:37]line Место: АЗС № 140 "Партнер Нефть" [22:07:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:07:37]line СНО: Общий режим [22:07:37]line Чек 114 15.07.2024 22:07 [22:07:37]line Смена: 370 ФФД: 1.0 [22:07:37]line ЗНМ: 0300000189 [22:07:37]line РНМ: 0000000000098025 [22:07:37]line Версия ККМ: 001 [22:07:37]line Платежная система: АКБ Кыргызстан [22:07:37]line ФМ: 0000000000965389 [22:07:37]line ФД: 31673 [22:07:37]line ФПД: 41639030809011 [22:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220737&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31673&fm=41639030809011&tin=02508201610067®Number=0000000000098025&sum=14000 [22:07:37]line 0 [22:07:37]Connected sock=10 [22:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 67 7F 1D 01 A0 0A 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 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 9D 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B9 7B 00 00 35 04 06 00 25 DE D7 A3 E1 B3 58 1A 9B DF 7F 57 C9 83 [22:07:37]written 0, free lines is 4095 [22:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 35 37 47 00 8A B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 B9 7B 00 00 F4 03 04 00 B8 49 95 66 B6 04 01 00 00 74 9C 8B 9B 1B B7 9E FA [22:07:37]CommunicateWithHost err = 0 [22:07:37]CheckOFDResponse [22:07:37]1017 (14) - 77093643461234 [22:07:37]1041 (16) - 0000000000965389 [22:07:37]1040 (4) - 31673 [22:07:37]1012 (4) - 15.07.2024 16:09 [22:07:37]1206 (1) - 0 [22:07:37]OFD Sender: Remove packet 31673 [22:07:37]ProducePacketName [22:07:37]name=ofd_packets/00031673 [22:07:37]NVStorageDeleteData [22:07:38]Write to MH i2c: 01 00 00 DA 08 E2 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: 01 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: 01 07 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 DA 0C CF [22:07:38]RasterBufferAndPrint [22:07:38]line [22:07:38]line [22:07:38]line [22:07:38]line [22:07:38]line [22:07:38]written 0, free lines is 3298 [22:07:38]MH_Cut [22:07:38]Write to MH i2c: D1 01 00 E1 08 01 BB [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: D1 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: D1 01 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: D1 01 00 E1 08 00 BA [22:07:38]Write to MH i2c: 01 00 00 E2 08 EA [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]OFD Sender: No OFD packet to send [22:07:39]*** Cut start [22:07:39]*** Partial cut [22:07:39]*** CUTSNS_PIN = 1 [22:07:39]*** CUTSNS_PIN = 0 [22:07:39]*** Brake cut motor [22:07:39]Read from MH i2c: 01 [22:07:39]MH_I2C_Read... [22:07:39]*** Stop cut motor [22:07:39]*** Cut end [22:07:39]Read from MH i2c: 01 07 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: 01 07 00 E2 08 00 00 00 00 00 FF 0F FF [22:07:39]process_action close_receipt done [22:07:39]requested_data is exist [22:07:39]produce_requested_data [22:07:39]requested_item fm.sn is exist - process it [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 11 00 00 [22:07:39]Write to MH i2c: E2 08 00 E3 08 80 11 00 00 00 00 00 00 65 [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 17 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 17 00 E3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C0 [22:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:07:39]wFMCommunicate OK [22:07:39]requested_item fd.num is exist - process it [22:07:39]SAM_PROTO_GetFieldsCounters [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 13 00 00 [22:07:39]Write to MH i2c: E2 08 00 E4 08 80 13 00 00 00 00 00 00 68 [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 62 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 62 00 E4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B9 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [22:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 B9 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:39]wFMCommunicate OK [22:07:39]SAM_PROTO_GetFieldsCounters done [22:07:39]requested_item shift.num is exist - process it [22:07:39]requested_item shift.opened is exist - process it [22:07:39]req_shift_opened [22:07:39]FM_GetShiftState [22:07:39]SAM_PROTO_GetShiftState [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 13 01 00 [22:07:39]Write to MH i2c: E2 08 00 E5 08 80 13 01 00 00 00 00 00 6A [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 0E 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 0E 00 E5 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5D [22:07:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:07:39]wFMCommunicate OK [22:07:39]SAM_PROTO_GetShiftState done [22:07:39]FM_GetShiftState done [22:07:39]req_shift_opened done [22:07:39]requested_item shift.open_date is exist - process it [22:07:39]req_shift_open_date [22:07:39]req_shift_open_date done [22:07:39]produce_requested_data done [22:07:39]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31673,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [22:07:39]process_action_free close_receipt [22:07:39]json_value_free [22:07:39]json_value_free done [22:07:39]process_json_proto returns [22:07:39]Send response to host [22:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31673,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [22:07:39]free response buf [22:07:39]execute_script done [22:07:39]execute_script returns [22:07:39]free content buf [22:07:39]Sock 7.Close socket [22:07:39]Sock 7.Thread stoped [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:27]accept exits with 9 [22:23:27]New connection [22:23:27]New thread 3066821988 created [22:23:27]Thread 3066965348 joined [22:23:27]Waiting for new connection... [22:23:27] Sock 9.Parse request [22:23:27]Sock 9.Check first char [22:23:27]Sock 9.First char is OK [22:23:27]request: POST /json_proto HTTP/1.0 [22:23:27]Method: POST [22:23:27]URL: /json_proto [22:23:27]Method is POST - this is cgi request [22:23:27]url: /json_proto [22:23:27]query_string will be loaded in cgi processing [22:23:27]execute_cgi json_proto POST (null) [22:23:27]execute_cgi path=json_proto method=POST [22:23:27]POST find Content-Length [22:23:27]Host: 172.17.39.68:8080 [22:23:27]Content-Length: 1659 [22:23:27]Content-Type: application/json [22:23:27] [22:23:27]POST finish read [22:23:27]Found Content-Length = 1659 [22:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214256", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 4.000, "sum" : 800.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" : 1200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:27]execute_script... [22:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214256", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 4.000, "sum" : 800.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" : 1200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:27]POST & json_proto [22:23:27]process_json_proto [22:23:27]json parsed OK: [22:23:27]protocol is kg_v1.0 [22:23:27]action value=close_receipt [22:23:27]process_action close_receipt [22:23:27]cmd_close_receipt [22:23:27]MH_GetDate [22:23:27]Write to MH i2c: F0 00 00 E6 08 DD [22:23:27]Write i2c OK [22:23:27]MH_I2C_Read... [22:23:27]Read from MH i2c: F0 [22:23:27]MH_I2C_Read... [22:23:27]Read from MH i2c: F0 09 00 [22:23:27]MH_I2C_Read... [22:23:27]Read from MH i2c: F0 09 00 E6 08 00 60 A1 95 66 D6 48 95 66 FB [22:23:27]GetLastDocTimeStamp 1721081257 [22:23:27]current date 1721082208 [22:23:27]FM_GetShiftState [22:23:27]SAM_PROTO_GetShiftState [22:23:27]wFMCommunicate request_size=4 [22:23:27]MH_SAM_APDU [22:23:27]CAPDU: 80 13 01 00 [22:23:27]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [22:23:27]Write i2c OK [22:23:27]MH_I2C_Read... [22:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:27]Read from MH i2c: E2 [22:23:27]MH_I2C_Read... [22:23:27]Read from MH i2c: E2 0E 00 [22:23:27]MH_I2C_Read... [22:23:27]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5F [22:23:27]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:23:27]wFMCommunicate OK [22:23:27]SAM_PROTO_GetShiftState done [22:23:27]FM_GetShiftState done [22:23:27]opened in 1721001862 [22:23:27]opened+sec_in_day 1721088262 [22:23:27]quantity*price = 80000 [22:23:27]sum+1 = 80001 [22:23:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1200.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 0.00 Безнал.: 1200.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 115 15.07.2024 22:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31674 ФПД: 59998145824649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T222328&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31674&fm=59998145824649&tin=02508201610067®Number=0000000000098025&sum=120000 0 [22:23:28]StoreToDocumentArchive [22:23:28]shift 370 fd 31674 [22:23:28]save to /storage/0370/doc_00031674 [22:23:28]save last doc name /storage/0370/doc_00031674 to /storage/kkm_last_doc_name [22:23:28]save OK [22:23:28]Clear old archive folders... [22:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=612 [22:23:28]tlvbuf is 01493860 [22:23:28]SAM_PROTO_ClearQueue [22:23:28]wFMCommunicate request_size=4 [22:23:28]MH_SAM_APDU [22:23:28]CAPDU: 80 09 00 00 [22:23:28]Write to MH i2c: E2 08 00 F4 08 80 09 00 00 00 00 00 00 6E [22:23:28]Write i2c OK [22:23:28]MH_I2C_Read... [22:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:28]Read from MH i2c: E2 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 03 00 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [22:23:28]RAPDU: 90 00 [22:23:28]wFMCommunicate OK [22:23:28]SAM_PROTO_ClearQueue done [22:23:28]KKMCreateOFDPacket [22:23:28]OFDProtocolAddRootSTLVToBuf [22:23:28]FM_MakeSignedData [22:23:28]FM_MakeSignedData [22:23:28]SAM_PROTO_SignData [22:23:28]wFMCommunicate request_size=4 [22:23:28]MH_SAM_APDU [22:23:28]CAPDU: 80 0D 01 02 [22:23:28]Write to MH i2c: E2 08 00 F5 08 80 0D 01 02 00 00 00 00 76 [22:23:28]Write i2c OK [22:23:28]MH_I2C_Read... [22:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:28]Read from MH i2c: E2 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 03 00 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [22:23:28]RAPDU: 90 00 [22:23:28]wFMCommunicate OK [22:23:28]wFMCommunicate request_size=255 [22:23:28]MH_SAM_APDU [22:23:28]CAPDU: 80 0D 02 02 FA 03 00 64 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 80 38 01 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 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 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 [22:23:28]Write to MH i2c: E2 02 01 F6 08 80 0D 02 02 FA 00 03 00 64 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 80 38 01 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 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 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 00 00 D9 [22:23:28]Write i2c OK [22:23:28]MH_I2C_Read... [22:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [22:23:29]RAPDU: 90 00 [22:23:29]wFMCommunicate OK [22:23:29]wFMCommunicate request_size=255 [22:23:29]MH_SAM_APDU [22:23:29]CAPDU: 80 0D 02 02 FA 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 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 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 [22:23:29]Write to MH i2c: E2 02 01 F7 08 80 0D 02 02 FA 00 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 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 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 93 [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]OFD Sender: No OFD packet to send [22:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [22:23:29]RAPDU: 90 00 [22:23:29]wFMCommunicate OK [22:23:29]wFMCommunicate request_size=121 [22:23:29]MH_SAM_APDU [22:23:29]CAPDU: 80 0D 02 02 74 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 A1 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BA 7B 00 00 35 04 06 00 36 91 68 2B 47 89 [22:23:29]Write to MH i2c: E2 7C 00 F8 08 80 0D 02 02 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 A1 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BA 7B 00 00 35 04 06 00 36 91 68 2B 47 89 00 00 79 [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [22:23:29]RAPDU: 90 00 [22:23:29]wFMCommunicate OK [22:23:29]wFMCommunicate request_size=4 [22:23:29]MH_SAM_APDU [22:23:29]CAPDU: 80 0D 03 02 [22:23:29]Write to MH i2c: E2 08 00 F9 08 80 0D 03 02 00 00 00 00 7C [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 0B 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 0B 00 F9 08 00 A5 70 9C 7B DC 01 8D C3 90 00 D6 [22:23:29]RAPDU: A5 70 9C 7B DC 01 8D C3 90 00 [22:23:29]wFMCommunicate OK [22:23:29]SAM_PROTO_SignData done [22:23:29]FM_MakeSignedData done [22:23:29]CreateOFDProtocolMessage [22:23:29]wFMCommunicate request_size=4 [22:23:29]MH_SAM_APDU [22:23:29]CAPDU: 80 11 00 00 [22:23:29]Write to MH i2c: E2 08 00 FA 08 80 11 00 00 00 00 00 00 7C [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 17 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 17 00 FA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D7 [22:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:23:29]wFMCommunicate OK [22:23:29]CreateOFDProtocolMessage done [22:23:29]OFDSenderStorePacket 31674 [22:23:29]StoreOFDPacket docnum=31674 [22:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 78 02 00 00 DC 18 70 02 DF D8 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 80 38 01 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 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 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 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 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 A1 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BA 7B 00 00 35 04 06 00 36 91 68 2B 47 89 A5 70 9C 7B DC 01 8D C3 [22:23:29]CheckFolder [22:23:29]dirname=/storage/ofd_packets [22:23:29]CheckFolder done [22:23:29]ProducePacketName [22:23:29]name=ofd_packets/00031674 [22:23:29]NVStorageSaveData ofd_packets/00031674 [22:23:29]File name is /storage/ofd_packets/00031674 [22:23:29]Write 662 bytes [22:23:29]NVStorageSaveData done [22:23:29]OFDSenderStorePacket done [22:23:29]KKMCreateOFDPacket done [22:23:29]NVStorageSaveData kkm_last_timestamp [22:23:29]File name is /storage/kkm_last_timestamp [22:23:29]Write 4 bytes [22:23:29]NVStorageSaveData done [22:23:29]ExternCall_PrintAddStr [22:23:29]wPrintStart [22:23:29]Write to MH i2c: 01 00 00 FB 08 03 [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: 01 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: 01 07 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [22:23:29]RasterBufferAndPrint [22:23:29]line Счет N : (3)214256 [22:23:29]line ИНН: 02508201610067 [22:23:29]line Контрольно-Кассовый Чек [22:23:29]line ПРОДАЖА [22:23:29]line Товар: 4700002082504 [22:23:29]line Водка Белое золото 0,24л [22:23:29]line 4.000 * 200.00 [22:23:29]line = 800.00 [22:23:29]line НДС 12% НСП 1% [22:23:29]line > о реализуемом товаре [22:23:29]line Товар: 5449000054227 [22:23:29]line Напиток Кока-Кола 1л [22:23:29]line 1.000 * 125.00 [22:23:29]line = 125.00 [22:23:29]line НДС 12% НСП 1% [22:23:29]line > о реализуемом товаре [22:23:29]line Товар: 4011100977952 [22:23:29]line Шок Батончик Твикс 55г [22:23:29]line 2.000 * 60.00 [22:23:29]line = 120.00 [22:23:29]line НДС 12% НСП 1% [22:23:29]line > о реализуемом товаре [22:23:29]line Товар: 5449000000439 [22:23:29]line Напиток Кока-Кола 1,5л [22:23:29]line 1.000 * 155.00 [22:23:29]line = 155.00 [22:23:29]line НДС 12% НСП 1% [22:23:29]line > о реализуемом товаре [22:23:29]line ИТОГО: 1200.00 [22:23:29]line НСП 1% : 10.62 [22:23:29]line НДС 12% : 127.43 [22:23:29]line Наличными: 0.00 [22:23:29]line Безнал.: 1200.00 [22:23:29]line Место: АЗС № 140 "Партнер Нефть" [22:23:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:23:29]line СНО: Общий режим [22:23:29]line Чек 115 15.07.2024 22:23 [22:23:29]line Смена: 370 ФФД: 1.0 [22:23:29]line ЗНМ: 0300000189 [22:23:29]line РНМ: 0000000000098025 [22:23:29]line Версия ККМ: 001 [22:23:29]line Платежная система: O! деньги [22:23:29]line ФМ: 0000000000965389 [22:23:29]line ФД: 31674 [22:23:29]line ФПД: 59998145824649 [22:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T222328&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31674&fm=59998145824649&tin=02508201610067®Number=0000000000098025&sum=120000 [22:23:29]line 0 [22:23:29]OFD Sender: Processing packet 31674 [packets to send 6, broken 5] [22:23:29]ProducePacketName [22:23:29]name=ofd_packets/00031674 [22:23:29]OFD Sender: To server: pG, [22:23:29]CommunicateWithHost lk.salyk.kg:30040 [22:23:29]ConnectInit lk.salyk.kg [22:23:29]written 0, free lines is 4095 [22:23:30]Connected sock=10 [22:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 78 02 00 00 DC 18 70 02 DF D8 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 80 38 01 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 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 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 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 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 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 A1 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BA 7B 00 00 35 04 06 00 36 91 68 2B 47 89 A5 70 9C 7B DC 01 8D C3 [22:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 27 2C 47 00 1D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BA 7B 00 00 F4 03 04 00 70 4D 95 66 B6 04 01 00 00 F6 F3 6E 82 62 0F EC F3 [22:23:30]CommunicateWithHost err = 0 [22:23:30]CheckOFDResponse [22:23:30]1017 (14) - 77093643461234 [22:23:30]1041 (16) - 0000000000965389 [22:23:30]1040 (4) - 31674 [22:23:30]1012 (4) - 15.07.2024 16:25 [22:23:30]1206 (1) - 0 [22:23:30]OFD Sender: Remove packet 31674 [22:23:30]ProducePacketName [22:23:30]name=ofd_packets/00031674 [22:23:30]NVStorageDeleteData [22:23:30]Write to MH i2c: 01 00 00 37 09 40 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 07 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 07 00 37 09 00 00 00 00 00 E6 0B 38 [22:23:30]RasterBufferAndPrint [22:23:30]line [22:23:30]line [22:23:30]line [22:23:30]line [22:23:30]line [22:23:30]written 0, free lines is 3054 [22:23:30]MH_Cut [22:23:30]Write to MH i2c: D1 01 00 3E 09 01 19 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: D1 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: D1 01 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: D1 01 00 3E 09 00 18 [22:23:30]Write to MH i2c: 01 00 00 3F 09 48 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]OFD Sender: No OFD packet to send [22:23:31]*** Cut start [22:23:31]*** Partial cut [22:23:31]*** CUTSNS_PIN = 1 [22:23:31]*** CUTSNS_PIN = 0 [22:23:31]*** Brake cut motor [22:23:32]Read from MH i2c: 01 [22:23:32]MH_I2C_Read... [22:23:32]*** Stop cut motor [22:23:32]*** Cut end [22:23:32]Read from MH i2c: 01 07 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 FF 0F 5D [22:23:32]process_action close_receipt done [22:23:32]requested_data is exist [22:23:32]produce_requested_data [22:23:32]requested_item fm.sn is exist - process it [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 11 00 00 [22:23:32]Write to MH i2c: E2 08 00 40 09 80 11 00 00 00 00 00 00 C3 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 40 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1E [22:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:23:32]wFMCommunicate OK [22:23:32]requested_item fd.num is exist - process it [22:23:32]SAM_PROTO_GetFieldsCounters [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 13 00 00 [22:23:32]Write to MH i2c: E2 08 00 41 09 80 13 00 00 00 00 00 00 C6 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 62 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 62 00 41 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BA 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [22:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BA 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:32]wFMCommunicate OK [22:23:32]SAM_PROTO_GetFieldsCounters done [22:23:32]requested_item shift.num is exist - process it [22:23:32]requested_item shift.opened is exist - process it [22:23:32]req_shift_opened [22:23:32]FM_GetShiftState [22:23:32]SAM_PROTO_GetShiftState [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 13 01 00 [22:23:32]Write to MH i2c: E2 08 00 42 09 80 13 01 00 00 00 00 00 C8 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 0E 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 0E 00 42 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BB [22:23:32]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:23:32]wFMCommunicate OK [22:23:32]SAM_PROTO_GetShiftState done [22:23:32]FM_GetShiftState done [22:23:32]req_shift_opened done [22:23:32]requested_item shift.open_date is exist - process it [22:23:32]req_shift_open_date [22:23:32]req_shift_open_date done [22:23:32]produce_requested_data done [22:23:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31674,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [22:23:32]process_action_free close_receipt [22:23:32]json_value_free [22:23:32]json_value_free done [22:23:32]process_json_proto returns [22:23:32]Send response to host [22:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31674,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [22:23:32]free response buf [22:23:32]execute_script done [22:23:32]execute_script returns [22:23:32]free content buf [22:23:32]Sock 9.Close socket [22:23:32]Sock 9.Thread stoped [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:03]accept exits with 7 [22:27:03]New connection [22:27:03]New thread 3066965348 created [22:27:03]Thread 3066821988 joined [22:27:03]Waiting for new connection... [22:27:03] Sock 7.Parse request [22:27:03]Sock 7.Check first char [22:27:03]Sock 7.First char is OK [22:27:03]request: POST /json_proto HTTP/1.0 [22:27:03]Method: POST [22:27:03]URL: /json_proto [22:27:03]Method is POST - this is cgi request [22:27:03]url: /json_proto [22:27:03]query_string will be loaded in cgi processing [22:27:03]execute_cgi json_proto POST (null) [22:27:03]execute_cgi path=json_proto method=POST [22:27:03]POST find Content-Length [22:27:03]Host: 172.17.39.68:8080 [22:27:03]Content-Length: 1150 [22:27:03]Content-Type: application/json [22:27:03] [22:27:03]POST finish read [22:27:03]Found Content-Length = 1150 [22:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214257", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 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 }]} ], "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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:03]execute_script... [22:27: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)214257", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 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 }]} ], "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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:03]POST & json_proto [22:27:03]process_json_proto [22:27:03]json parsed OK: [22:27:03]protocol is kg_v1.0 [22:27:03]action value=close_receipt [22:27:03]process_action close_receipt [22:27:03]cmd_close_receipt [22:27:03]MH_GetDate [22:27:03]Write to MH i2c: F0 00 00 43 09 3B [22:27:03]Write i2c OK [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: F0 [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: F0 09 00 [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: F0 09 00 43 09 00 39 A2 95 66 D6 48 95 66 33 [22:27:03]GetLastDocTimeStamp 1721082208 [22:27:03]current date 1721082425 [22:27:03]FM_GetShiftState [22:27:03]SAM_PROTO_GetShiftState [22:27:03]wFMCommunicate request_size=4 [22:27:03]MH_SAM_APDU [22:27:03]CAPDU: 80 13 01 00 [22:27:03]Write to MH i2c: E2 08 00 44 09 80 13 01 00 00 00 00 00 CA [22:27:03]Write i2c OK [22:27:03]MH_I2C_Read... [22:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:03]Read from MH i2c: E2 [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: E2 0E 00 [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: E2 0E 00 44 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 BD [22:27:03]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:27:03]wFMCommunicate OK [22:27:03]SAM_PROTO_GetShiftState done [22:27:03]FM_GetShiftState done [22:27:03]opened in 1721001862 [22:27:03]opened+sec_in_day 1721088262 [22:27:03]quantity*price = 2500 [22:27:03]sum+1 = 2501 [22:27:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602441000081 Напитк Тархун 1л стекло 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 116 15.07.2024 22:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31675 ФПД: 190925555090403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T222705&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31675&fm=190925555090403&tin=02508201610067®Number=0000000000098025&sum=23000 0 [22:27:05]StoreToDocumentArchive [22:27:05]shift 370 fd 31675 [22:27:05]save to /storage/0370/doc_00031675 [22:27:05]save last doc name /storage/0370/doc_00031675 to /storage/kkm_last_doc_name [22:27:05]save OK [22:27:05]Clear old archive folders... [22:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=405 [22:27:05]tlvbuf is 015018A0 [22:27:05]SAM_PROTO_ClearQueue [22:27:05]wFMCommunicate request_size=4 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 09 00 00 [22:27:05]Write to MH i2c: E2 08 00 51 09 80 09 00 00 00 00 00 00 CC [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:05]Read from MH i2c: E2 03 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [22:27:05]RAPDU: 90 00 [22:27:05]wFMCommunicate OK [22:27:05]SAM_PROTO_ClearQueue done [22:27:05]KKMCreateOFDPacket [22:27:05]OFDProtocolAddRootSTLVToBuf [22:27:05]FM_MakeSignedData [22:27:05]FM_MakeSignedData [22:27:05]SAM_PROTO_SignData [22:27:05]wFMCommunicate request_size=4 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 0D 01 02 [22:27:05]Write to MH i2c: E2 08 00 52 09 80 0D 01 02 00 00 00 00 D4 [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 52 09 00 90 00 CF [22:27:05]RAPDU: 90 00 [22:27:05]wFMCommunicate OK [22:27:05]wFMCommunicate request_size=255 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 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 D8 59 [22:27:05]Write to MH i2c: E2 02 01 53 09 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 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 D8 59 00 00 2E [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 53 09 00 90 00 D0 [22:27:05]RAPDU: 90 00 [22:27:05]wFMCommunicate OK [22:27:05]wFMCommunicate request_size=164 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 0D 02 02 9F 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 39 A2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BB 7B 00 00 35 04 06 00 AD A5 51 E3 C3 E3 [22:27:05]Write to MH i2c: E2 A7 00 54 09 80 0D 02 02 9F 00 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 39 A2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BB 7B 00 00 35 04 06 00 AD A5 51 E3 C3 E3 00 00 07 [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 03 00 54 09 00 90 00 D1 [22:27:05]RAPDU: 90 00 [22:27:05]wFMCommunicate OK [22:27:05]wFMCommunicate request_size=4 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 0D 03 02 [22:27:05]Write to MH i2c: E2 08 00 55 09 80 0D 03 02 00 00 00 00 D9 [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 0B 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 0B 00 55 09 00 29 1C A2 AE E5 3C 37 8A 90 00 51 [22:27:05]RAPDU: 29 1C A2 AE E5 3C 37 8A 90 00 [22:27:05]wFMCommunicate OK [22:27:05]SAM_PROTO_SignData done [22:27:05]FM_MakeSignedData done [22:27:05]CreateOFDProtocolMessage [22:27:05]wFMCommunicate request_size=4 [22:27:05]MH_SAM_APDU [22:27:05]CAPDU: 80 11 00 00 [22:27:05]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:05]Read from MH i2c: E2 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 17 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: E2 17 00 56 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 34 [22:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:27:05]wFMCommunicate OK [22:27:05]CreateOFDProtocolMessage done [22:27:05]OFDSenderStorePacket 31675 [22:27:05]StoreOFDPacket docnum=31675 [22:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A9 01 00 00 EC DE A1 01 CD BA 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 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 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 39 A2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BB 7B 00 00 35 04 06 00 AD A5 51 E3 C3 E3 29 1C A2 AE E5 3C 37 8A [22:27:05]CheckFolder [22:27:05]dirname=/storage/ofd_packets [22:27:05]CheckFolder done [22:27:05]ProducePacketName [22:27:05]name=ofd_packets/00031675 [22:27:05]NVStorageSaveData ofd_packets/00031675 [22:27:05]File name is /storage/ofd_packets/00031675 [22:27:05]Write 455 bytes [22:27:05]NVStorageSaveData done [22:27:05]OFDSenderStorePacket done [22:27:05]KKMCreateOFDPacket done [22:27:05]NVStorageSaveData kkm_last_timestamp [22:27:05]File name is /storage/kkm_last_timestamp [22:27:05]Write 4 bytes [22:27:05]NVStorageSaveData done [22:27:05]ExternCall_PrintAddStr [22:27:05]wPrintStart [22:27:05]Write to MH i2c: 01 00 00 57 09 60 [22:27:05]Write i2c OK [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: 01 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: 01 07 00 [22:27:05]MH_I2C_Read... [22:27:05]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [22:27:05]RasterBufferAndPrint [22:27:05]line Счет N : (3)214257 [22:27:05]line ИНН: 02508201610067 [22:27:05]line Контрольно-Кассовый Чек [22:27:05]line ПРОДАЖА [22:27:05]line Товар: 2000027340020 [22:27:05]line Пакет бумажный витая ручка [22:27:05]line 1.000 * 25.00 [22:27:05]line = 25.00 [22:27:05]line НДС 12% НСП 1% [22:27:05]line > о реализуемом товаре [22:27:05]line Товар: 4602441000081 [22:27:05]line Напитк Тархун 1л стекло [22:27:05]line 1.000 * 205.00 [22:27:05]line = 205.00 [22:27:05]line НДС 12% НСП 1% [22:27:05]line > о реализуемом товаре [22:27:05]line ИТОГО: 230.00 [22:27:05]line НСП 1% : 2.03 [22:27:05]line НДС 12% : 24.42 [22:27:05]line Наличными: 0.00 [22:27:05]line Безнал.: 230.00 [22:27:05]line Место: АЗС № 140 "Партнер Нефть" [22:27:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:27:06]line СНО: Общий режим [22:27:06]line Чек 116 15.07.2024 22:27 [22:27:06]line Смена: 370 ФФД: 1.0 [22:27:06]line ЗНМ: 0300000189 [22:27:06]line РНМ: 0000000000098025 [22:27:06]line Версия ККМ: 001 [22:27:06]line Платежная система: O! деньги [22:27:06]line ФМ: 0000000000965389 [22:27:06]line ФД: 31675 [22:27:06]line ФПД: 190925555090403 [22:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T222705&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31675&fm=190925555090403&tin=02508201610067®Number=0000000000098025&sum=23000 [22:27:06]line 0 [22:27:06]OFD Sender: Processing packet 31675 [packets to send 6, broken 5] [22:27:06]ProducePacketName [22:27:06]name=ofd_packets/00031675 [22:27:06]OFD Sender: To server: pG, [22:27:06]CommunicateWithHost lk.salyk.kg:30040 [22:27:06]ConnectInit lk.salyk.kg [22:27:06]written 0, free lines is 4095 [22:27:06]Connected sock=10 [22:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A9 01 00 00 EC DE A1 01 CD BA 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 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 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 39 A2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BB 7B 00 00 35 04 06 00 AD A5 51 E3 C3 E3 29 1C A2 AE E5 3C 37 8A [22:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 4D 83 47 00 9B D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BB 7B 00 00 F4 03 04 00 48 4E 95 66 B6 04 01 00 00 F1 50 40 6B AF BD 60 DB [22:27:06]CommunicateWithHost err = 0 [22:27:06]CheckOFDResponse [22:27:06]1017 (14) - 77093643461234 [22:27:06]1041 (16) - 0000000000965389 [22:27:06]1040 (4) - 31675 [22:27:06]1012 (4) - 15.07.2024 16:28 [22:27:06]1206 (1) - 0 [22:27:06]OFD Sender: Remove packet 31675 [22:27:06]ProducePacketName [22:27:06]name=ofd_packets/00031675 [22:27:06]NVStorageDeleteData [22:27:06]Write to MH i2c: 01 00 00 87 09 90 [22:27:06]Write i2c OK [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: 01 [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: 01 07 00 [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 84 0C 27 [22:27:06]RasterBufferAndPrint [22:27:06]line [22:27:06]line [22:27:06]line [22:27:06]line [22:27:06]line [22:27:06]written 0, free lines is 3210 [22:27:06]MH_Cut [22:27:06]Write to MH i2c: D1 01 00 8E 09 01 69 [22:27:06]Write i2c OK [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: D1 [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: D1 01 00 [22:27:06]MH_I2C_Read... [22:27:06]Read from MH i2c: D1 01 00 8E 09 00 68 [22:27:06]Write to MH i2c: 01 00 00 8F 09 98 [22:27:06]Write i2c OK [22:27:06]MH_I2C_Read... [22:27:06]OFD Sender: No OFD packet to send [22:27:07]*** Cut start [22:27:07]*** Partial cut [22:27:07]*** CUTSNS_PIN = 1 [22:27:07]*** CUTSNS_PIN = 0 [22:27:07]*** Brake cut motor [22:27:07]Read from MH i2c: 01 [22:27:08]MH_I2C_Read... [22:27:08]*** Stop cut motor [22:27:08]*** Cut end [22:27:08]Read from MH i2c: 01 07 00 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [22:27:08]process_action close_receipt done [22:27:08]requested_data is exist [22:27:08]produce_requested_data [22:27:08]requested_item fm.sn is exist - process it [22:27:08]wFMCommunicate request_size=4 [22:27:08]MH_SAM_APDU [22:27:08]CAPDU: 80 11 00 00 [22:27:08]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [22:27:08]Write i2c OK [22:27:08]MH_I2C_Read... [22:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:08]Read from MH i2c: E2 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 17 00 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6E [22:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:27:08]wFMCommunicate OK [22:27:08]requested_item fd.num is exist - process it [22:27:08]SAM_PROTO_GetFieldsCounters [22:27:08]wFMCommunicate request_size=4 [22:27:08]MH_SAM_APDU [22:27:08]CAPDU: 80 13 00 00 [22:27:08]Write to MH i2c: E2 08 00 91 09 80 13 00 00 00 00 00 00 16 [22:27:08]Write i2c OK [22:27:08]MH_I2C_Read... [22:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:08]Read from MH i2c: E2 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 62 00 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 62 00 91 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BB 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [22:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BB 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:08]wFMCommunicate OK [22:27:08]SAM_PROTO_GetFieldsCounters done [22:27:08]requested_item shift.num is exist - process it [22:27:08]requested_item shift.opened is exist - process it [22:27:08]req_shift_opened [22:27:08]FM_GetShiftState [22:27:08]SAM_PROTO_GetShiftState [22:27:08]wFMCommunicate request_size=4 [22:27:08]MH_SAM_APDU [22:27:08]CAPDU: 80 13 01 00 [22:27:08]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [22:27:08]Write i2c OK [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 [22:27:08]MH_I2C_Read... [22:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:08]Read from MH i2c: E2 0E 00 [22:27:08]MH_I2C_Read... [22:27:08]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0B [22:27:08]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:27:08]wFMCommunicate OK [22:27:08]SAM_PROTO_GetShiftState done [22:27:08]FM_GetShiftState done [22:27:08]req_shift_opened done [22:27:08]requested_item shift.open_date is exist - process it [22:27:08]req_shift_open_date [22:27:08]req_shift_open_date done [22:27:08]produce_requested_data done [22:27:08]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31675,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [22:27:08]process_action_free close_receipt [22:27:08]json_value_free [22:27:08]json_value_free done [22:27:08]process_json_proto returns [22:27:08]Send response to host [22:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31675,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [22:27:08]free response buf [22:27:08]execute_script done [22:27:08]execute_script returns [22:27:08]free content buf [22:27:08]Sock 7.Close socket [22:27:08]Sock 7.Thread stoped [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31: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:00]accept exits with 9 [22:36:00]New connection [22:36:00]New thread 3066821988 created [22:36:00]Thread 3066965348 joined [22:36:00]Waiting for new connection... [22:36:00] Sock 9.Parse request [22:36:00]Sock 9.Check first char [22:36:00]Sock 9.First char is OK [22:36:00]request: POST /json_proto HTTP/1.0 [22:36:00]Method: POST [22:36:00]URL: /json_proto [22:36:00]Method is POST - this is cgi request [22:36:00]url: /json_proto [22:36:00]query_string will be loaded in cgi processing [22:36:00]execute_cgi json_proto POST (null) [22:36:00]execute_cgi path=json_proto method=POST [22:36:00]POST find Content-Length [22:36:00]Host: 172.17.39.68:8080 [22:36:00]Content-Length: 932 [22:36:00]Content-Type: application/json [22:36:00] [22:36:00]POST finish read [22:36:00]Found Content-Length = 932 [22:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214258", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:00]execute_script... [22:36: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)214258", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:00]POST & json_proto [22:36:00]process_json_proto [22:36:00]json parsed OK: [22:36:00]protocol is kg_v1.0 [22:36:00]action value=close_receipt [22:36:00]process_action close_receipt [22:36:00]cmd_close_receipt [22:36:00]MH_GetDate [22:36:00]Write to MH i2c: F0 00 00 93 09 8B [22:36:00]Write i2c OK [22:36:00]MH_I2C_Read... [22:36:00]Read from MH i2c: F0 [22:36:00]MH_I2C_Read... [22:36:00]Read from MH i2c: F0 09 00 [22:36:00]MH_I2C_Read... [22:36:00]Read from MH i2c: F0 09 00 93 09 00 52 A4 95 66 D6 48 95 66 9E [22:36:00]GetLastDocTimeStamp 1721082425 [22:36:00]current date 1721082962 [22:36:00]FM_GetShiftState [22:36:00]SAM_PROTO_GetShiftState [22:36:00]wFMCommunicate request_size=4 [22:36:00]MH_SAM_APDU [22:36:00]CAPDU: 80 13 01 00 [22:36:00]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [22:36:00]Write i2c OK [22:36:00]MH_I2C_Read... [22:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:00]Read from MH i2c: E2 [22:36:00]MH_I2C_Read... [22:36:00]Read from MH i2c: E2 0E 00 [22:36:00]MH_I2C_Read... [22:36:00]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 0D [22:36:00]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:36:00]wFMCommunicate OK [22:36:00]SAM_PROTO_GetShiftState done [22:36:00]FM_GetShiftState done [22:36:00]opened in 1721001862 [22:36:00]opened+sec_in_day 1721088262 [22:36:00]quantity*price = 12500 [22:36:00]sum+1 = 12501 [22:36:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870227273831 Лимонад Sunbel Мохито 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 117 15.07.2024 22:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31676 ФПД: 77828191095599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223602&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31676&fm=77828191095599&tin=02508201610067®Number=0000000000098025&sum=21000 0 [22:36:01]StoreToDocumentArchive [22:36:01]shift 370 fd 31676 [22:36:01]save to /storage/0370/doc_00031676 [22:36:01]save last doc name /storage/0370/doc_00031676 to /storage/kkm_last_doc_name [22:36:01]save OK [22:36:01]Clear old archive folders... [22:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=392 [22:36:01]tlvbuf is 015013C0 [22:36:01]SAM_PROTO_ClearQueue [22:36:01]wFMCommunicate request_size=4 [22:36:01]MH_SAM_APDU [22:36:01]CAPDU: 80 09 00 00 [22:36:01]Write to MH i2c: E2 08 00 A1 09 80 09 00 00 00 00 00 00 1C [22:36:01]Write i2c OK [22:36:01]MH_I2C_Read... [22:36:01]Read from MH i2c: E2 [22:36:01]MH_I2C_Read... [22:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:01]Read from MH i2c: E2 03 00 [22:36:01]MH_I2C_Read... [22:36:01]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [22:36:01]RAPDU: 90 00 [22:36:01]wFMCommunicate OK [22:36:01]SAM_PROTO_ClearQueue done [22:36:01]KKMCreateOFDPacket [22:36:01]OFDProtocolAddRootSTLVToBuf [22:36:01]FM_MakeSignedData [22:36:01]FM_MakeSignedData [22:36:01]SAM_PROTO_SignData [22:36:01]wFMCommunicate request_size=4 [22:36:01]MH_SAM_APDU [22:36:01]CAPDU: 80 0D 01 02 [22:36:01]Write to MH i2c: E2 08 00 A2 09 80 0D 01 02 00 00 00 00 24 [22:36:01]Write i2c OK [22:36:01]MH_I2C_Read... [22:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:02]Read from MH i2c: E2 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [22:36:02]RAPDU: 90 00 [22:36:02]wFMCommunicate OK [22:36:02]wFMCommunicate request_size=255 [22:36:02]MH_SAM_APDU [22:36:02]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [22:36:02]Write to MH i2c: E2 02 01 A3 09 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 06 [22:36:02]Write i2c OK [22:36:02]MH_I2C_Read... [22:36:02]OFD Sender: No OFD packet to send [22:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:02]Read from MH i2c: E2 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [22:36:02]RAPDU: 90 00 [22:36:02]wFMCommunicate OK [22:36:02]wFMCommunicate request_size=151 [22:36:02]MH_SAM_APDU [22:36:02]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 52 A4 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BC 7B 00 00 35 04 06 00 46 C8 C9 AF 0B 2F [22:36:02]Write to MH i2c: E2 9A 00 A4 09 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 52 A4 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BC 7B 00 00 35 04 06 00 46 C8 C9 AF 0B 2F 00 00 26 [22:36:02]Write i2c OK [22:36:02]MH_I2C_Read... [22:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:02]Read from MH i2c: E2 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [22:36:02]RAPDU: 90 00 [22:36:02]wFMCommunicate OK [22:36:02]wFMCommunicate request_size=4 [22:36:02]MH_SAM_APDU [22:36:02]CAPDU: 80 0D 03 02 [22:36:02]Write to MH i2c: E2 08 00 A5 09 80 0D 03 02 00 00 00 00 29 [22:36:02]Write i2c OK [22:36:02]MH_I2C_Read... [22:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:02]Read from MH i2c: E2 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 0B 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 0B 00 A5 09 00 8A D1 2C 1D 69 90 63 DA 90 00 04 [22:36:02]RAPDU: 8A D1 2C 1D 69 90 63 DA 90 00 [22:36:02]wFMCommunicate OK [22:36:02]SAM_PROTO_SignData done [22:36:02]FM_MakeSignedData done [22:36:02]CreateOFDProtocolMessage [22:36:02]wFMCommunicate request_size=4 [22:36:02]MH_SAM_APDU [22:36:02]CAPDU: 80 11 00 00 [22:36:02]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [22:36:02]Write i2c OK [22:36:02]MH_I2C_Read... [22:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:02]Read from MH i2c: E2 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 17 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 84 [22:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:36:02]wFMCommunicate OK [22:36:02]CreateOFDProtocolMessage done [22:36:02]OFDSenderStorePacket 31676 [22:36:02]StoreOFDPacket docnum=31676 [22:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9C 01 00 00 57 C6 94 01 BE B4 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 52 A4 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BC 7B 00 00 35 04 06 00 46 C8 C9 AF 0B 2F 8A D1 2C 1D 69 90 63 DA [22:36:02]CheckFolder [22:36:02]dirname=/storage/ofd_packets [22:36:02]CheckFolder done [22:36:02]ProducePacketName [22:36:02]name=ofd_packets/00031676 [22:36:02]NVStorageSaveData ofd_packets/00031676 [22:36:02]File name is /storage/ofd_packets/00031676 [22:36:02]Write 442 bytes [22:36:02]NVStorageSaveData done [22:36:02]OFDSenderStorePacket done [22:36:02]KKMCreateOFDPacket done [22:36:02]NVStorageSaveData kkm_last_timestamp [22:36:02]File name is /storage/kkm_last_timestamp [22:36:02]Write 4 bytes [22:36:02]NVStorageSaveData done [22:36:02]ExternCall_PrintAddStr [22:36:02]wPrintStart [22:36:02]Write to MH i2c: 01 00 00 A7 09 B0 [22:36:02]Write i2c OK [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: 01 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: 01 07 00 [22:36:02]MH_I2C_Read... [22:36:02]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [22:36:02]RasterBufferAndPrint [22:36:02]line Счет N : (3)214258 [22:36:02]line ИНН: 02508201610067 [22:36:02]line Контрольно-Кассовый Чек [22:36:02]line ПРОДАЖА [22:36:02]line Товар: 4870202521292 [22:36:02]line Напиток Сок березы 1,2л [22:36:02]line 1.000 * 125.00 [22:36:02]line = 125.00 [22:36:02]line НДС 12% НСП 1% [22:36:02]line > о реализуемом товаре [22:36:02]line Товар: 4870227273831 [22:36:02]line Лимонад Sunbel Мохито 1л [22:36:02]line 1.000 * 85.00 [22:36:02]line = 85.00 [22:36:02]line НДС 12% НСП 1% [22:36:02]line > о реализуемом товаре [22:36:02]line ИТОГО: 210.00 [22:36:02]line НСП 1% : 1.86 [22:36:02]line НДС 12% : 22.30 [22:36:02]line Наличными: 210.00 [22:36:02]line Безнал.: 0.00 [22:36:02]line Место: АЗС № 140 "Партнер Нефть" [22:36:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:36:02]line СНО: Общий режим [22:36:02]line Чек 117 15.07.2024 22:36 [22:36:02]line Смена: 370 ФФД: 1.0 [22:36:02]line ЗНМ: 0300000189 [22:36:02]line РНМ: 0000000000098025 [22:36:02]line Версия ККМ: 001 [22:36:02]line ФМ: 0000000000965389 [22:36:02]line ФД: 31676 [22:36:02]line ФПД: 77828191095599 [22:36:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223602&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31676&fm=77828191095599&tin=02508201610067®Number=0000000000098025&sum=21000 [22:36:02]line 0 [22:36:02]OFD Sender: Processing packet 31676 [packets to send 6, broken 5] [22:36:02]ProducePacketName [22:36:02]name=ofd_packets/00031676 [22:36:02]OFD Sender: To server: pG, [22:36:02]CommunicateWithHost lk.salyk.kg:30040 [22:36:02]ConnectInit lk.salyk.kg [22:36:02]written 0, free lines is 4095 [22:36:02]Connected sock=10 [22:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9C 01 00 00 57 C6 94 01 BE B4 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 52 A4 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BC 7B 00 00 35 04 06 00 46 C8 C9 AF 0B 2F 8A D1 2C 1D 69 90 63 DA [22:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A9 AB 47 00 9C 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 39 36 35 33 38 39 10 04 04 00 BC 7B 00 00 F4 03 04 00 61 50 95 66 B6 04 01 00 00 A7 76 97 98 BA F3 17 D8 [22:36:03]CommunicateWithHost err = 0 [22:36:03]CheckOFDResponse [22:36:03]1017 (14) - 77093643461234 [22:36:03]1041 (16) - 0000000000965389 [22:36:03]1040 (4) - 31676 [22:36:03]1012 (4) - 15.07.2024 16:37 [22:36:03]1206 (1) - 0 [22:36:03]OFD Sender: Remove packet 31676 [22:36:03]ProducePacketName [22:36:03]name=ofd_packets/00031676 [22:36:03]NVStorageDeleteData [22:36:03]Write to MH i2c: 01 00 00 D5 09 DE [22:36:03]Write i2c OK [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: 01 [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: 01 07 00 [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 BE 0C AF [22:36:03]RasterBufferAndPrint [22:36:03]line [22:36:03]line [22:36:03]line [22:36:03]line [22:36:03]line [22:36:03]written 0, free lines is 3266 [22:36:03]MH_Cut [22:36:03]Write to MH i2c: D1 01 00 DC 09 01 B7 [22:36:03]Write i2c OK [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: D1 [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: D1 01 00 [22:36:03]MH_I2C_Read... [22:36:03]Read from MH i2c: D1 01 00 DC 09 00 B6 [22:36:03]Write to MH i2c: 01 00 00 DD 09 E6 [22:36:03]Write i2c OK [22:36:03]MH_I2C_Read... [22:36:03]OFD Sender: No OFD packet to send [22:36:04]*** Cut start [22:36:04]*** Partial cut [22:36:04]*** CUTSNS_PIN = 1 [22:36:04]*** CUTSNS_PIN = 0 [22:36:04]*** Brake cut motor [22:36:04]Read from MH i2c: 01 [22:36:04]MH_I2C_Read... [22:36:04]*** Stop cut motor [22:36:04]*** Cut end [22:36:04]Read from MH i2c: 01 07 00 [22:36:04]MH_I2C_Read... [22:36:04]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [22:36:04]process_action close_receipt done [22:36:04]requested_data is exist [22:36:04]produce_requested_data [22:36:04]requested_item fm.sn is exist - process it [22:36:04]wFMCommunicate request_size=4 [22:36:04]MH_SAM_APDU [22:36:04]CAPDU: 80 11 00 00 [22:36:04]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [22:36:04]Write i2c OK [22:36:04]MH_I2C_Read... [22:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:04]Read from MH i2c: E2 [22:36:04]MH_I2C_Read... [22:36:04]Read from MH i2c: E2 17 00 [22:36:04]MH_I2C_Read... [22:36:04]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BC [22:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:36:04]wFMCommunicate OK [22:36:04]requested_item fd.num is exist - process it [22:36:04]SAM_PROTO_GetFieldsCounters [22:36:04]wFMCommunicate request_size=4 [22:36:04]MH_SAM_APDU [22:36:04]CAPDU: 80 13 00 00 [22:36:04]Write to MH i2c: E2 08 00 DF 09 80 13 00 00 00 00 00 00 64 [22:36:04]Write i2c OK [22:36:04]MH_I2C_Read... [22:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:05]Read from MH i2c: E2 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 62 00 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 62 00 DF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BC 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [22:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BC 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:05]wFMCommunicate OK [22:36:05]SAM_PROTO_GetFieldsCounters done [22:36:05]requested_item shift.num is exist - process it [22:36:05]requested_item shift.opened is exist - process it [22:36:05]req_shift_opened [22:36:05]FM_GetShiftState [22:36:05]SAM_PROTO_GetShiftState [22:36:05]wFMCommunicate request_size=4 [22:36:05]MH_SAM_APDU [22:36:05]CAPDU: 80 13 01 00 [22:36:05]Write to MH i2c: E2 08 00 E0 09 80 13 01 00 00 00 00 00 66 [22:36:05]Write i2c OK [22:36:05]MH_I2C_Read... [22:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:05]Read from MH i2c: E2 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 0E 00 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 0E 00 E0 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 59 [22:36:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [22:36:05]wFMCommunicate OK [22:36:05]SAM_PROTO_GetShiftState done [22:36:05]FM_GetShiftState done [22:36:05]req_shift_opened done [22:36:05]requested_item shift.open_date is exist - process it [22:36:05]req_shift_open_date [22:36:05]req_shift_open_date done [22:36:05]produce_requested_data done [22:36:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31676,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [22:36:05]process_action_free close_receipt [22:36:05]json_value_free [22:36:05]json_value_free done [22:36:05]process_json_proto returns [22:36:05]Send response to host [22:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31676,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [22:36:05]free response buf [22:36:05]execute_script done [22:36:05]execute_script returns [22:36:05]free content buf [22:36:05]Sock 9.Close socket [22:36:05]Sock 9.Thread stoped [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]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:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]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:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]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]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]accept exits with 7 [23:25:00]New connection [23:25:00]New thread 3066965348 created [23:25:00]Thread 3066821988 joined [23:25:00]Waiting for new connection... [23:25:00] Sock 7.Parse request [23:25:00]Sock 7.Check first char [23:25:00]Sock 7.First char is OK [23:25:00]request: POST /json_proto HTTP/1.0 [23:25:00]Method: POST [23:25:00]URL: /json_proto [23:25:00]Method is POST - this is cgi request [23:25:00]url: /json_proto [23:25:00]query_string will be loaded in cgi processing [23:25:00]execute_cgi json_proto POST (null) [23:25:00]execute_cgi path=json_proto method=POST [23:25:00]POST find Content-Length [23:25:00]Host: 172.17.39.68:8080 [23:25:00]Content-Length: 641 [23:25:00]Content-Type: application/json [23:25:00] [23:25:00]POST finish read [23:25:00]Found Content-Length = 641 [23:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214259", "tax_sys" : 0, "items" : [ { "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:00]execute_script... [23:25: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)214259", "tax_sys" : 0, "items" : [ { "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:00]POST & json_proto [23:25:00]process_json_proto [23:25:00]json parsed OK: [23:25:00]protocol is kg_v1.0 [23:25:00]action value=close_receipt [23:25:00]process_action close_receipt [23:25:00]cmd_close_receipt [23:25:00]MH_GetDate [23:25:00]Write to MH i2c: F0 00 00 E1 09 D9 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 09 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 09 00 E1 09 00 CE AF 95 66 D6 48 95 66 73 [23:25:00]GetLastDocTimeStamp 1721082962 [23:25:00]current date 1721085902 [23:25:00]FM_GetShiftState [23:25:00]SAM_PROTO_GetShiftState [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 13 01 00 [23:25:00]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 86 67 94 66 00 00 00 00 90 00 5B [23:25:00]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_GetShiftState done [23:25:00]FM_GetShiftState done [23:25:00]opened in 1721001862 [23:25:00]opened+sec_in_day 1721088262 [23:25:00]quantity*price = 70000 [23:25:00]sum+1 = 70001 [23:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 118 15.07.2024 23:25 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31677 ФПД: 118419237990795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31677&fm=118419237990795&tin=02508201610067®Number=0000000000098025&sum=70000 0 [23:25:01]StoreToDocumentArchive [23:25:01]shift 370 fd 31677 [23:25:01]save to /storage/0370/doc_00031677 [23:25:01]save last doc name /storage/0370/doc_00031677 to /storage/kkm_last_doc_name [23:25:01]save OK [23:25:01]Clear old archive folders... [23:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=281 [23:25:01]tlvbuf is 014857D0 [23:25:01]SAM_PROTO_ClearQueue [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 09 00 00 [23:25:01]Write to MH i2c: E2 08 00 EF 09 80 09 00 00 00 00 00 00 6A [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]SAM_PROTO_ClearQueue done [23:25:01]KKMCreateOFDPacket [23:25:01]OFDProtocolAddRootSTLVToBuf [23:25:01]FM_MakeSignedData [23:25:01]FM_MakeSignedData [23:25:01]SAM_PROTO_SignData [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 0D 01 02 [23:25:01]Write to MH i2c: E2 08 00 F0 09 80 0D 01 02 00 00 00 00 72 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]wFMCommunicate request_size=255 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 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 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 76 00 00 00 F4 03 04 00 CE AF 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 [23:25:01]Write to MH i2c: E2 02 01 F1 09 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 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 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 76 00 00 00 F4 03 04 00 CE AF 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 36 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:02]Read from MH i2c: E2 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 03 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [23:25:02]RAPDU: 90 00 [23:25:02]wFMCommunicate OK [23:25:02]wFMCommunicate request_size=40 [23:25:02]MH_SAM_APDU [23:25:02]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BD 7B 00 00 35 04 06 00 6B B3 A0 9D 71 8B [23:25:02]Write to MH i2c: E2 2B 00 F2 09 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BD 7B 00 00 35 04 06 00 6B B3 A0 9D 71 8B 00 00 C9 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:02]Read from MH i2c: E2 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 03 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [23:25:02]RAPDU: 90 00 [23:25:02]wFMCommunicate OK [23:25:02]wFMCommunicate request_size=4 [23:25:02]MH_SAM_APDU [23:25:02]CAPDU: 80 0D 03 02 [23:25:02]Write to MH i2c: E2 08 00 F3 09 80 0D 03 02 00 00 00 00 77 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:02]Read from MH i2c: E2 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 0B 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 0B 00 F3 09 00 2A F4 9D 37 0D 8A 81 FA 90 00 7C [23:25:02]RAPDU: 2A F4 9D 37 0D 8A 81 FA 90 00 [23:25:02]wFMCommunicate OK [23:25:02]SAM_PROTO_SignData done [23:25:02]FM_MakeSignedData done [23:25:02]CreateOFDProtocolMessage [23:25:02]wFMCommunicate request_size=4 [23:25:02]MH_SAM_APDU [23:25:02]CAPDU: 80 11 00 00 [23:25:02]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:02]Read from MH i2c: E2 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 17 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [23:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:25:02]wFMCommunicate OK [23:25:02]CreateOFDProtocolMessage done [23:25:02]OFDSenderStorePacket 31677 [23:25:02]StoreOFDPacket docnum=31677 [23:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2D 01 00 00 E8 08 25 01 1B C4 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 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 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 76 00 00 00 F4 03 04 00 CE AF 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BD 7B 00 00 35 04 06 00 6B B3 A0 9D 71 8B 2A F4 9D 37 0D 8A 81 FA [23:25:02]CheckFolder [23:25:02]dirname=/storage/ofd_packets [23:25:02]CheckFolder done [23:25:02]ProducePacketName [23:25:02]name=ofd_packets/00031677 [23:25:02]NVStorageSaveData ofd_packets/00031677 [23:25:02]File name is /storage/ofd_packets/00031677 [23:25:02]Write 331 bytes [23:25:02]NVStorageSaveData done [23:25:02]OFDSenderStorePacket done [23:25:02]KKMCreateOFDPacket done [23:25:02]NVStorageSaveData kkm_last_timestamp [23:25:02]File name is /storage/kkm_last_timestamp [23:25:02]Write 4 bytes [23:25:02]NVStorageSaveData done [23:25:02]OFD Sender: Processing packet 31677 [packets to send 6, broken 5] [23:25:02]ProducePacketName [23:25:02]name=ofd_packets/00031677 [23:25:02]OFD Sender: To server: pG, [23:25:02]CommunicateWithHost lk.salyk.kg:30040 [23:25:02]ConnectInit lk.salyk.kg [23:25:02]ExternCall_PrintAddStr [23:25:02]wPrintStart [23:25:02]Write to MH i2c: 01 00 00 F5 09 FE [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [23:25:02]RasterBufferAndPrint [23:25:02]line Счет N : (3)214259 [23:25:02]line ИНН: 02508201610067 [23:25:02]line Контрольно-Кассовый Чек [23:25:02]line ПРОДАЖА [23:25:02]line Товар: 4700003150929 [23:25:02]line Новая Водка Organic 40% 0,7л [23:25:02]line 1.000 * 700.00 [23:25:02]line = 700.00 [23:25:02]line НДС 12% НСП 1% [23:25:02]line > о реализуемом товаре [23:25:02]line ИТОГО: 700.00 [23:25:02]line НСП 1% : 6.19 [23:25:02]line НДС 12% : 74.34 [23:25:02]line Наличными: 700.00 [23:25:02]line Безнал.: 0.00 [23:25:02]line Место: АЗС № 140 "Партнер Нефть" [23:25:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:25:02]line СНО: Общий режим [23:25:02]line Чек 118 15.07.2024 23:25 [23:25:02]line Смена: 370 ФФД: 1.0 [23:25:02]line ЗНМ: 0300000189 [23:25:02]line РНМ: 0000000000098025 [23:25:02]line Версия ККМ: 001 [23:25:02]line ФМ: 0000000000965389 [23:25:02]line ФД: 31677 [23:25:02]line ФПД: 118419237990795 [23:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31677&fm=118419237990795&tin=02508201610067®Number=0000000000098025&sum=70000 [23:25:02]line 0 [23:25:02]written 0, free lines is 4095 [23:25:02]Connected sock=11 [23:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2D 01 00 00 E8 08 25 01 1B C4 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 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 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 76 00 00 00 F4 03 04 00 CE AF 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BD 7B 00 00 35 04 06 00 6B B3 A0 9D 71 8B 2A F4 9D 37 0D 8A 81 FA [23:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 07 DE 47 00 AA 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 39 36 35 33 38 39 10 04 04 00 BD 7B 00 00 F4 03 04 00 DC 5B 95 66 B6 04 01 00 00 22 D1 E0 AC 45 D4 3F 14 [23:25:02]CommunicateWithHost err = 0 [23:25:02]CheckOFDResponse [23:25:02]1017 (14) - 77093643461234 [23:25:02]1041 (16) - 0000000000965389 [23:25:02]1040 (4) - 31677 [23:25:02]1012 (4) - 15.07.2024 17:26 [23:25:02]1206 (1) - 0 [23:25:02]OFD Sender: Remove packet 31677 [23:25:02]ProducePacketName [23:25:02]name=ofd_packets/00031677 [23:25:02]NVStorageDeleteData [23:25:02]Write to MH i2c: 01 00 00 1D 0A 27 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 05 0D 40 [23:25:02]RasterBufferAndPrint [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]written 0, free lines is 3340 [23:25:02]MH_Cut [23:25:02]Write to MH i2c: D1 01 00 24 0A 01 00 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 01 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 01 00 24 0A 00 FF [23:25:02]Write to MH i2c: 01 00 00 25 0A 2F [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:03]OFD Sender: No OFD packet to send [23:25:03]*** Cut start [23:25:03]*** Partial cut [23:25:03]*** CUTSNS_PIN = 1 [23:25:03]*** CUTSNS_PIN = 0 [23:25:03]*** Brake cut motor [23:25:04]Read from MH i2c: 01 [23:25:04]MH_I2C_Read... [23:25:04]*** Stop cut motor [23:25:04]*** Cut end [23:25:04]Read from MH i2c: 01 07 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [23:25:04]process_action close_receipt done [23:25:04]requested_data is exist [23:25:04]produce_requested_data [23:25:04]requested_item fm.sn is exist - process it [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 11 00 00 [23:25:04]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 17 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [23:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:25:04]wFMCommunicate OK [23:25:04]requested_item fd.num is exist - process it [23:25:04]SAM_PROTO_GetFieldsCounters [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 13 00 00 [23:25:04]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 62 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BD 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [23:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BD 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetFieldsCounters done [23:25:04]requested_item shift.num is exist - process it [23:25:04]requested_item shift.opened is exist - process it [23:25:04]req_shift_opened [23:25:04]FM_GetShiftState [23:25:04]SAM_PROTO_GetShiftState [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 13 01 00 [23:25:04]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A2 [23:25:04]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetShiftState done [23:25:04]FM_GetShiftState done [23:25:04]req_shift_opened done [23:25:04]requested_item shift.open_date is exist - process it [23:25:04]req_shift_open_date [23:25:04]req_shift_open_date done [23:25:04]produce_requested_data done [23:25:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31677,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:25:04]process_action_free close_receipt [23:25:04]json_value_free [23:25:04]json_value_free done [23:25:04]process_json_proto returns [23:25:04]Send response to host [23:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31677,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:25:04]free response buf [23:25:04]execute_script done [23:25:04]execute_script returns [23:25:04]free content buf [23:25:04]Sock 7.Close socket [23:25:04]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:39]accept exits with 9 [23:34:39]New connection [23:34:39]New thread 3066821988 created [23:34:39]Thread 3066965348 joined [23:34:39]Waiting for new connection... [23:34:39] Sock 9.Parse request [23:34:39]Sock 9.Check first char [23:34:39]Sock 9.First char is OK [23:34:39]request: POST /json_proto HTTP/1.0 [23:34:39]Method: POST [23:34:39]URL: /json_proto [23:34:39]Method is POST - this is cgi request [23:34:39]url: /json_proto [23:34:39]query_string will be loaded in cgi processing [23:34:39]execute_cgi json_proto POST (null) [23:34:39]execute_cgi path=json_proto method=POST [23:34:39]POST find Content-Length [23:34:39]Host: 172.17.39.68:8080 [23:34:39]Content-Length: 682 [23:34:39]Content-Type: application/json [23:34:39] [23:34:39]POST finish read [23:34:39]Found Content-Length = 682 [23:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214260", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:39]execute_script... [23:34: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)214260", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:39]POST & json_proto [23:34:39]process_json_proto [23:34:39]json parsed OK: [23:34:39]protocol is kg_v1.0 [23:34:39]action value=close_receipt [23:34:39]process_action close_receipt [23:34:39]cmd_close_receipt [23:34:39]MH_GetDate [23:34:39]Write to MH i2c: F0 00 00 29 0A 22 [23:34:39]Write i2c OK [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 09 00 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 09 00 29 0A 00 11 B2 95 66 D6 48 95 66 02 [23:34:39]GetLastDocTimeStamp 1721085902 [23:34:39]current date 1721086481 [23:34:39]FM_GetShiftState [23:34:39]SAM_PROTO_GetShiftState [23:34:39]wFMCommunicate request_size=4 [23:34:39]MH_SAM_APDU [23:34:39]CAPDU: 80 13 01 00 [23:34:39]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [23:34:39]Write i2c OK [23:34:39]MH_I2C_Read... [23:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:39]Read from MH i2c: E2 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: E2 0E 00 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 A4 [23:34:39]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:34:39]wFMCommunicate OK [23:34:39]SAM_PROTO_GetShiftState done [23:34:39]FM_GetShiftState done [23:34:39]opened in 1721001862 [23:34:39]opened+sec_in_day 1721088262 [23:34:39]quantity*price = 6500 [23:34:39]sum+1 = 6501 [23:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 119 15.07.2024 23:34 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31678 ФПД: 2979076619180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T233441&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31678&fm=2979076619180&tin=02508201610067®Number=0000000000098025&sum=6500 0 [23:34:40]StoreToDocumentArchive [23:34:40]shift 370 fd 31678 [23:34:40]save to /storage/0370/doc_00031678 [23:34:40]save last doc name /storage/0370/doc_00031678 to /storage/kkm_last_doc_name [23:34:40]save OK [23:34:40]Clear old archive folders... [23:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=293 [23:34:40]tlvbuf is 0148FA10 [23:34:40]SAM_PROTO_ClearQueue [23:34:40]wFMCommunicate request_size=4 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 09 00 00 [23:34:40]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [23:34:40]RAPDU: 90 00 [23:34:40]wFMCommunicate OK [23:34:40]SAM_PROTO_ClearQueue done [23:34:40]KKMCreateOFDPacket [23:34:40]OFDProtocolAddRootSTLVToBuf [23:34:40]FM_MakeSignedData [23:34:40]FM_MakeSignedData [23:34:40]SAM_PROTO_SignData [23:34:40]wFMCommunicate request_size=4 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 0D 01 02 [23:34:40]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [23:34:40]RAPDU: 90 00 [23:34:40]wFMCommunicate OK [23:34:40]wFMCommunicate request_size=255 [23:34:40]MH_SAM_APDU [23:34:40]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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 11 B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [23:34:40]Write to MH i2c: E2 02 01 39 0A 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 11 B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 04 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [23:34:40]RAPDU: 90 00 [23:34:40]wFMCommunicate OK [23:34:40]wFMCommunicate request_size=52 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BE 7B 00 00 35 04 06 00 02 B5 9E CD BB AC [23:34:40]Write to MH i2c: E2 37 00 3A 0A 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BE 7B 00 00 35 04 06 00 02 B5 9E CD BB AC 00 00 4A [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [23:34:41]RAPDU: 90 00 [23:34:41]wFMCommunicate OK [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 0D 03 02 [23:34:41]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 0B 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 0B 00 3B 0A 00 CF F9 3C A7 1F EC 46 B3 90 00 70 [23:34:41]RAPDU: CF F9 3C A7 1F EC 46 B3 90 00 [23:34:41]wFMCommunicate OK [23:34:41]SAM_PROTO_SignData done [23:34:41]FM_MakeSignedData done [23:34:41]CreateOFDProtocolMessage [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 11 00 00 [23:34:41]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 17 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1B [23:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:34:41]wFMCommunicate OK [23:34:41]CreateOFDProtocolMessage done [23:34:41]OFDSenderStorePacket 31678 [23:34:41]StoreOFDPacket docnum=31678 [23:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 DC 71 31 01 DA 07 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 11 B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BE 7B 00 00 35 04 06 00 02 B5 9E CD BB AC CF F9 3C A7 1F EC 46 B3 [23:34:41]CheckFolder [23:34:41]dirname=/storage/ofd_packets [23:34:41]CheckFolder done [23:34:41]ProducePacketName [23:34:41]name=ofd_packets/00031678 [23:34:41]NVStorageSaveData ofd_packets/00031678 [23:34:41]File name is /storage/ofd_packets/00031678 [23:34:41]Write 343 bytes [23:34:41]NVStorageSaveData done [23:34:41]OFDSenderStorePacket done [23:34:41]KKMCreateOFDPacket done [23:34:41]NVStorageSaveData kkm_last_timestamp [23:34:41]File name is /storage/kkm_last_timestamp [23:34:41]Write 4 bytes [23:34:41]NVStorageSaveData done [23:34:41]ExternCall_PrintAddStr [23:34:41]wPrintStart [23:34:41]Write to MH i2c: 01 00 00 3D 0A 47 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [23:34:41]RasterBufferAndPrint [23:34:41]line Счет N : (3)214260 [23:34:41]line ИНН: 02508201610067 [23:34:41]line Контрольно-Кассовый Чек [23:34:41]line ПРОДАЖА [23:34:41]line Товар: 4870002328404 [23:34:41]line Вода ASU пит н.газ мята ПЭТ 0,5л [23:34:41]line 1.000 * 65.00 [23:34:41]line = 65.00 [23:34:41]line НДС 12% НСП 1% [23:34:41]line > о реализуемом товаре [23:34:41]line ИТОГО: 65.00 [23:34:41]line НСП 1% : 0.57 [23:34:41]line НДС 12% : 6.90 [23:34:41]line Наличными: 65.00 [23:34:41]line Безнал.: 0.00 [23:34:41]line Место: АЗС № 140 "Партнер Нефть" [23:34:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:34:41]line СНО: Общий режим [23:34:41]line Чек 119 15.07.2024 23:34 [23:34:41]line Смена: 370 ФФД: 1.0 [23:34:41]line ЗНМ: 0300000189 [23:34:41]line РНМ: 0000000000098025 [23:34:41]line Версия ККМ: 001 [23:34:41]line ФМ: 0000000000965389 [23:34:41]line ФД: 31678 [23:34:41]line ФПД: 2979076619180 [23:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T233441&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31678&fm=2979076619180&tin=02508201610067®Number=0000000000098025&sum=6500 [23:34:41]OFD Sender: Processing packet 31678 [packets to send 6, broken 5] [23:34:41]ProducePacketName [23:34:41]name=ofd_packets/00031678 [23:34:41]OFD Sender: To server: pG, [23:34:41]CommunicateWithHost lk.salyk.kg:30040 [23:34:41]ConnectInit lk.salyk.kg [23:34:41]line 0 [23:34:41]written 0, free lines is 4095 [23:34:41]Connected sock=10 [23:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 DC 71 31 01 DA 07 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 11 B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BE 7B 00 00 35 04 06 00 02 B5 9E CD BB AC CF F9 3C A7 1F EC 46 B3 [23:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DE 76 47 00 21 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 39 36 35 33 38 39 10 04 04 00 BE 7B 00 00 F4 03 04 00 1F 5E 95 66 B6 04 01 00 00 22 73 DE 49 E8 E9 2C CE [23:34:41]CommunicateWithHost err = 0 [23:34:41]CheckOFDResponse [23:34:41]1017 (14) - 77093643461234 [23:34:41]1041 (16) - 0000000000965389 [23:34:41]1040 (4) - 31678 [23:34:41]1012 (4) - 15.07.2024 17:36 [23:34:41]1206 (1) - 0 [23:34:41]OFD Sender: Remove packet 31678 [23:34:41]ProducePacketName [23:34:41]name=ofd_packets/00031678 [23:34:41]NVStorageDeleteData [23:34:41]Write to MH i2c: 01 00 00 66 0A 70 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 F7 0C 7A [23:34:41]RasterBufferAndPrint [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]written 0, free lines is 3326 [23:34:41]MH_Cut [23:34:41]Write to MH i2c: D1 01 00 6D 0A 01 49 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: D1 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: D1 01 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: D1 01 00 6D 0A 00 48 [23:34:41]Write to MH i2c: 01 00 00 6E 0A 78 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:42]OFD Sender: No OFD packet to send [23:34:42]*** Cut start [23:34:42]*** Partial cut [23:34:42]*** CUTSNS_PIN = 1 [23:34:42]*** CUTSNS_PIN = 0 [23:34:43]*** Brake cut motor [23:34:43]Read from MH i2c: 01 [23:34:43]MH_I2C_Read... [23:34:43]*** Stop cut motor [23:34:43]*** Cut end [23:34:43]Read from MH i2c: 01 07 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 FF 0F 8D [23:34:43]process_action close_receipt done [23:34:43]requested_data is exist [23:34:43]produce_requested_data [23:34:43]requested_item fm.sn is exist - process it [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 11 00 00 [23:34:43]Write to MH i2c: E2 08 00 6F 0A 80 11 00 00 00 00 00 00 F3 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 17 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 17 00 6F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4E [23:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:34:43]wFMCommunicate OK [23:34:43]requested_item fd.num is exist - process it [23:34:43]SAM_PROTO_GetFieldsCounters [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 13 00 00 [23:34:43]Write to MH i2c: E2 08 00 70 0A 80 13 00 00 00 00 00 00 F6 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 62 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 62 00 70 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BE 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [23:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BE 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetFieldsCounters done [23:34:43]requested_item shift.num is exist - process it [23:34:43]requested_item shift.opened is exist - process it [23:34:43]req_shift_opened [23:34:43]FM_GetShiftState [23:34:43]SAM_PROTO_GetShiftState [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 13 01 00 [23:34:43]Write to MH i2c: E2 08 00 71 0A 80 13 01 00 00 00 00 00 F8 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 71 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 EB [23:34:43]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetShiftState done [23:34:43]FM_GetShiftState done [23:34:43]req_shift_opened done [23:34:43]requested_item shift.open_date is exist - process it [23:34:43]req_shift_open_date [23:34:43]req_shift_open_date done [23:34:43]produce_requested_data done [23:34:43]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31678,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:34:43]process_action_free close_receipt [23:34:43]json_value_free [23:34:43]json_value_free done [23:34:43]process_json_proto returns [23:34:43]Send response to host [23:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31678,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:34:43]free response buf [23:34:43]execute_script done [23:34:43]execute_script returns [23:34:43]free content buf [23:34:43]Sock 9.Close socket [23:34:43]Sock 9.Thread stoped [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:05]accept exits with 7 [23:35:05]New connection [23:35:05]New thread 3066965348 created [23:35:05]Thread 3066821988 joined [23:35:05]Waiting for new connection... [23:35:05] Sock 7.Parse request [23:35:05]Sock 7.Check first char [23:35:05]Sock 7.First char is OK [23:35:05]request: POST /json_proto HTTP/1.0 [23:35:05]Method: POST [23:35:05]URL: /json_proto [23:35:05]Method is POST - this is cgi request [23:35:05]url: /json_proto [23:35:05]query_string will be loaded in cgi processing [23:35:05]execute_cgi json_proto POST (null) [23:35:05]execute_cgi path=json_proto method=POST [23:35:05]POST find Content-Length [23:35:05]Host: 172.17.39.68:8080 [23:35:05]Content-Length: 668 [23:35:05]Content-Type: application/json [23:35:05] [23:35:05]POST finish read [23:35:05]Found Content-Length = 668 [23:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214261", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:05]execute_script... [23:35: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)214261", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:05]POST & json_proto [23:35:05]process_json_proto [23:35:05]json parsed OK: [23:35:05]protocol is kg_v1.0 [23:35:05]action value=close_receipt [23:35:05]process_action close_receipt [23:35:05]cmd_close_receipt [23:35:05]MH_GetDate [23:35:05]Write to MH i2c: F0 00 00 72 0A 6B [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: F0 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: F0 09 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: F0 09 00 72 0A 00 2B B2 95 66 D6 48 95 66 65 [23:35:05]GetLastDocTimeStamp 1721086481 [23:35:05]current date 1721086507 [23:35:05]FM_GetShiftState [23:35:05]SAM_PROTO_GetShiftState [23:35:05]wFMCommunicate request_size=4 [23:35:05]MH_SAM_APDU [23:35:05]CAPDU: 80 13 01 00 [23:35:05]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:05]Read from MH i2c: E2 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 0E 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 ED [23:35:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:35:05]wFMCommunicate OK [23:35:05]SAM_PROTO_GetShiftState done [23:35:05]FM_GetShiftState done [23:35:05]opened in 1721001862 [23:35:05]opened+sec_in_day 1721088262 [23:35:05]quantity*price = 45000 [23:35:05]sum+1 = 45001 [23:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 120 15.07.2024 23:35 Смена: 370 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31679 ФПД: 41978002114117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T233507&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31679&fm=41978002114117&tin=02508201610067®Number=0000000000098025&sum=45000 0 [23:35:06]StoreToDocumentArchive [23:35:06]shift 370 fd 31679 [23:35:06]save to /storage/0370/doc_00031679 [23:35:06]save last doc name /storage/0370/doc_00031679 to /storage/kkm_last_doc_name [23:35:06]save OK [23:35:06]Clear old archive folders... [23:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=296 [23:35:06]tlvbuf is 01500B60 [23:35:06]SAM_PROTO_ClearQueue [23:35:06]wFMCommunicate request_size=4 [23:35:06]MH_SAM_APDU [23:35:06]CAPDU: 80 09 00 00 [23:35:06]Write to MH i2c: E2 08 00 80 0A 80 09 00 00 00 00 00 00 FC [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:06]Read from MH i2c: E2 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: E2 03 00 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [23:35:06]RAPDU: 90 00 [23:35:06]wFMCommunicate OK [23:35:06]SAM_PROTO_ClearQueue done [23:35:06]KKMCreateOFDPacket [23:35:06]OFDProtocolAddRootSTLVToBuf [23:35:06]FM_MakeSignedData [23:35:06]FM_MakeSignedData [23:35:06]SAM_PROTO_SignData [23:35:06]wFMCommunicate request_size=4 [23:35:06]MH_SAM_APDU [23:35:06]CAPDU: 80 0D 01 02 [23:35:06]Write to MH i2c: E2 08 00 81 0A 80 0D 01 02 00 00 00 00 04 [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:06]Read from MH i2c: E2 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: E2 03 00 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [23:35:06]RAPDU: 90 00 [23:35:06]wFMCommunicate OK [23:35:06]wFMCommunicate request_size=255 [23:35:06]MH_SAM_APDU [23:35:06]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 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2B B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [23:35:06]Write to MH i2c: E2 02 01 82 0A 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 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2B B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 16 [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 03 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [23:35:07]RAPDU: 90 00 [23:35:07]wFMCommunicate OK [23:35:07]wFMCommunicate request_size=55 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BF 7B 00 00 35 04 06 00 26 2D C3 E7 86 45 [23:35:07]Write to MH i2c: E2 3A 00 83 0A 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BF 7B 00 00 35 04 06 00 26 2D C3 E7 86 45 00 00 69 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 03 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [23:35:07]RAPDU: 90 00 [23:35:07]wFMCommunicate OK [23:35:07]wFMCommunicate request_size=4 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 0D 03 02 [23:35:07]Write to MH i2c: E2 08 00 84 0A 80 0D 03 02 00 00 00 00 09 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 0B 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 0B 00 84 0A 00 20 3C 72 C8 4C 4D 52 16 90 00 A1 [23:35:07]RAPDU: 20 3C 72 C8 4C 4D 52 16 90 00 [23:35:07]wFMCommunicate OK [23:35:07]SAM_PROTO_SignData done [23:35:07]FM_MakeSignedData done [23:35:07]CreateOFDProtocolMessage [23:35:07]wFMCommunicate request_size=4 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 11 00 00 [23:35:07]Write to MH i2c: E2 08 00 85 0A 80 11 00 00 00 00 00 00 09 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 17 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 17 00 85 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 64 [23:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:35:07]wFMCommunicate OK [23:35:07]CreateOFDProtocolMessage done [23:35:07]OFDSenderStorePacket 31679 [23:35:07]StoreOFDPacket docnum=31679 [23:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 8A 74 34 01 75 F7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2B B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BF 7B 00 00 35 04 06 00 26 2D C3 E7 86 45 20 3C 72 C8 4C 4D 52 16 [23:35:07]CheckFolder [23:35:07]dirname=/storage/ofd_packets [23:35:07]CheckFolder done [23:35:07]ProducePacketName [23:35:07]name=ofd_packets/00031679 [23:35:07]NVStorageSaveData ofd_packets/00031679 [23:35:07]File name is /storage/ofd_packets/00031679 [23:35:07]Write 346 bytes [23:35:07]NVStorageSaveData done [23:35:07]OFDSenderStorePacket done [23:35:07]KKMCreateOFDPacket done [23:35:07]NVStorageSaveData kkm_last_timestamp [23:35:07]File name is /storage/kkm_last_timestamp [23:35:07]Write 4 bytes [23:35:07]NVStorageSaveData done [23:35:07]ExternCall_PrintAddStr [23:35:07]wPrintStart [23:35:07]Write to MH i2c: 01 00 00 86 0A 90 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 07 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [23:35:07]RasterBufferAndPrint [23:35:07]line Счет N : (3)214261 [23:35:07]line ИНН: 02508201610067 [23:35:07]line Контрольно-Кассовый Чек [23:35:07]line ПРОДАЖА [23:35:07]line Товар: 4670003190037 [23:35:07]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [23:35:07]line 2.000 * 225.00 [23:35:07]line = 450.00 [23:35:07]line НДС 12% НСП 1% [23:35:07]line > о реализуемом товаре [23:35:07]line ИТОГО: 450.00 [23:35:07]line НСП 1% : 3.98 [23:35:07]line НДС 12% : 47.79 [23:35:07]line Наличными: 450.00 [23:35:07]line Безнал.: 0.00 [23:35:07]line Место: АЗС № 140 "Партнер Нефть" [23:35:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:35:07]line СНО: Общий режим [23:35:07]line Чек 120 15.07.2024 23:35 [23:35:07]line Смена: 370 ФФД: 1.0 [23:35:07]line ЗНМ: 0300000189 [23:35:07]line РНМ: 0000000000098025 [23:35:07]line Версия ККМ: 001 [23:35:07]line ФМ: 0000000000965389 [23:35:07]line ФД: 31679 [23:35:07]line ФПД: 41978002114117 [23:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T233507&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31679&fm=41978002114117&tin=02508201610067®Number=0000000000098025&sum=45000 [23:35:07]line 0 [23:35:07]OFD Sender: Processing packet 31679 [packets to send 6, broken 5] [23:35:07]ProducePacketName [23:35:07]name=ofd_packets/00031679 [23:35:07]OFD Sender: To server: pG, [23:35:07]CommunicateWithHost lk.salyk.kg:30040 [23:35:07]ConnectInit lk.salyk.kg [23:35:07]written 0, free lines is 4095 [23:35:07]Connected sock=10 [23:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 8A 74 34 01 75 F7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2B B2 95 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BF 7B 00 00 35 04 06 00 26 2D C3 E7 86 45 20 3C 72 C8 4C 4D 52 16 [23:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 4E C8 47 00 2C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 BF 7B 00 00 F4 03 04 00 3A 5E 95 66 B6 04 01 00 00 7A 84 38 3A 75 A8 E3 13 [23:35:07]CommunicateWithHost err = 0 [23:35:07]CheckOFDResponse [23:35:07]1017 (14) - 77093643461234 [23:35:07]1041 (16) - 0000000000965389 [23:35:07]1040 (4) - 31679 [23:35:07]1012 (4) - 15.07.2024 17:36 [23:35:07]1206 (1) - 0 [23:35:07]OFD Sender: Remove packet 31679 [23:35:07]ProducePacketName [23:35:07]name=ofd_packets/00031679 [23:35:07]NVStorageDeleteData [23:35:07]Write to MH i2c: 01 00 00 AF 0A B9 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 07 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 07 00 AF 0A 00 00 00 00 00 F6 0C C2 [23:35:07]RasterBufferAndPrint [23:35:07]line [23:35:07]line [23:35:07]line [23:35:07]line [23:35:07]line [23:35:07]written 0, free lines is 3325 [23:35:07]MH_Cut [23:35:07]Write to MH i2c: D1 01 00 B6 0A 01 92 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: D1 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: D1 01 00 [23:35:07]MH_I2C_Read... [23:35:08]Read from MH i2c: D1 01 00 B6 0A 00 91 [23:35:08]Write to MH i2c: 01 00 00 B7 0A C1 [23:35:08]Write i2c OK [23:35:08]MH_I2C_Read... [23:35:08]OFD Sender: No OFD packet to send [23:35:08]*** Cut start [23:35:08]*** Partial cut [23:35:08]*** CUTSNS_PIN = 1 [23:35:08]*** CUTSNS_PIN = 0 [23:35:09]*** Brake cut motor [23:35:09]Read from MH i2c: 01 [23:35:09]MH_I2C_Read... [23:35:09]*** Stop cut motor [23:35:09]*** Cut end [23:35:09]Read from MH i2c: 01 07 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [23:35:09]process_action close_receipt done [23:35:09]requested_data is exist [23:35:09]produce_requested_data [23:35:09]requested_item fm.sn is exist - process it [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 11 00 00 [23:35:09]Write to MH i2c: E2 08 00 B8 0A 80 11 00 00 00 00 00 00 3C [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 17 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 17 00 B8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 97 [23:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:35:09]wFMCommunicate OK [23:35:09]requested_item fd.num is exist - process it [23:35:09]SAM_PROTO_GetFieldsCounters [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 13 00 00 [23:35:09]Write to MH i2c: E2 08 00 B9 0A 80 13 00 00 00 00 00 00 3F [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 62 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 62 00 B9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [23:35:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:09]wFMCommunicate OK [23:35:09]SAM_PROTO_GetFieldsCounters done [23:35:09]requested_item shift.num is exist - process it [23:35:09]requested_item shift.opened is exist - process it [23:35:09]req_shift_opened [23:35:09]FM_GetShiftState [23:35:09]SAM_PROTO_GetShiftState [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 13 01 00 [23:35:09]Write to MH i2c: E2 08 00 BA 0A 80 13 01 00 00 00 00 00 41 [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 0E 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 0E 00 BA 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 34 [23:35:09]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:35:09]wFMCommunicate OK [23:35:09]SAM_PROTO_GetShiftState done [23:35:09]FM_GetShiftState done [23:35:09]req_shift_opened done [23:35:09]requested_item shift.open_date is exist - process it [23:35:09]req_shift_open_date [23:35:09]req_shift_open_date done [23:35:09]produce_requested_data done [23:35:09]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:35:09]process_action_free close_receipt [23:35:09]json_value_free [23:35:09]json_value_free done [23:35:09]process_json_proto returns [23:35:09]Send response to host [23:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:35:09]free response buf [23:35:09]execute_script done [23:35:09]execute_script returns [23:35:09]free content buf [23:35:09]Sock 7.Close socket [23:35:09]Sock 7.Thread stoped [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:46]accept exits with 9 [23:54:46]New connection [23:54:46]New thread 3066821988 created [23:54:46]Thread 3066965348 joined [23:54:46]Waiting for new connection... [23:54:46] Sock 9.Parse request [23:54:46]Sock 9.Check first char [23:54:46]Sock 9.First char is OK [23:54:46]request: POST /json_proto HTTP/1.0 [23:54:46]Method: POST [23:54:46]URL: /json_proto [23:54:46]Method is POST - this is cgi request [23:54:46]url: /json_proto [23:54:46]query_string will be loaded in cgi processing [23:54:46]execute_cgi json_proto POST (null) [23:54:46]execute_cgi path=json_proto method=POST [23:54:46]POST find Content-Length [23:54:46]Host: 172.17.39.68:8080 [23:54:46]Content-Length: 215 [23:54:46]Content-Type: application/json [23:54:46] [23:54:46]POST finish read [23:54:46]Found Content-Length = 215 [23:54:46]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:46]execute_script... [23:54:46]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:46]POST & json_proto [23:54:46]process_json_proto [23:54:46]json parsed OK: [23:54:46]protocol is kg_v1.0 [23:54:46]action value=get_value [23:54:46]process_action get_value [23:54:46]cmd_get_value [23:54:46]process_action get_value done [23:54:46]requested_data is exist [23:54:46]produce_requested_data [23:54:46]requested_item kkm.sn is exist - process it [23:54:46]requested_item kkm.ver is exist - process it [23:54:46]requested_item fm.sn is exist - process it [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 11 00 00 [23:54:46]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 17 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9A [23:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:54:46]wFMCommunicate OK [23:54:46]requested_item fd.num is exist - process it [23:54:46]SAM_PROTO_GetFieldsCounters [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 13 00 00 [23:54:46]Write to MH i2c: E2 08 00 BC 0A 80 13 00 00 00 00 00 00 42 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 62 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 62 00 BC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [23:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:46]wFMCommunicate OK [23:54:46]SAM_PROTO_GetFieldsCounters done [23:54:46]requested_item shift.num is exist - process it [23:54:46]requested_item shift.opened is exist - process it [23:54:46]req_shift_opened [23:54:46]FM_GetShiftState [23:54:46]SAM_PROTO_GetShiftState [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 13 01 00 [23:54:46]Write to MH i2c: E2 08 00 BD 0A 80 13 01 00 00 00 00 00 44 [23:54:47]Write i2c OK [23:54:47]MH_I2C_Read... [23:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:47]Read from MH i2c: E2 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 0E 00 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 0E 00 BD 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 37 [23:54:47]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:54:47]wFMCommunicate OK [23:54:47]SAM_PROTO_GetShiftState done [23:54:47]FM_GetShiftState done [23:54:47]req_shift_opened done [23:54:47]requested_item shift.open_date is exist - process it [23:54:47]req_shift_open_date [23:54:47]req_shift_open_date done [23:54:47]produce_requested_data done [23:54:47]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:54:47]process_action_free get_value [23:54:47]json_value_free [23:54:47]json_value_free done [23:54:47]process_json_proto returns [23:54:47]Send response to host [23:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:54:47]free response buf [23:54:47]execute_script done [23:54:47]execute_script returns [23:54:47]free content buf [23:54:47]Sock 9.Close socket [23:54:47]Sock 9.Thread stoped [23:54:47]accept exits with 7 [23:54:47]New connection [23:54:47]New thread 3066965348 created [23:54:47]Thread 3066821988 joined [23:54:47]Waiting for new connection... [23:54:47] Sock 7.Parse request [23:54:47]Sock 7.Check first char [23:54:47]Sock 7.First char is OK [23:54:47]request: POST /json_proto HTTP/1.0 [23:54:47]Method: POST [23:54:47]URL: /json_proto [23:54:47]Method is POST - this is cgi request [23:54:47]url: /json_proto [23:54:47]query_string will be loaded in cgi processing [23:54:47]execute_cgi json_proto POST (null) [23:54:47]execute_cgi path=json_proto method=POST [23:54:47]POST find Content-Length [23:54:47]Host: 172.17.39.68:8080 [23:54:47]Content-Length: 331 [23:54:47]Content-Type: application/json [23:54:47] [23:54:47]POST finish read [23:54:47]Found Content-Length = 331 [23:54:47]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:47]execute_script... [23:54:47]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:47]POST & json_proto [23:54:47]process_json_proto [23:54:47]json parsed OK: [23:54:47]protocol is kg_v1.0 [23:54:47]action value=get_value [23:54:47]process_action get_value [23:54:47]cmd_get_value [23:54:47]process_action get_value done [23:54:47]requested_data is exist [23:54:47]produce_requested_data [23:54:47]requested_item fm.sale.total is exist - process it [23:54:47]SAM_PROTO_GetFMData [23:54:47]wFMCommunicate request_size=4 [23:54:47]MH_SAM_APDU [23:54:47]CAPDU: 80 13 03 00 [23:54:47]Write to MH i2c: E2 08 00 BE 0A 80 13 03 00 00 00 00 00 47 [23:54:47]Write i2c OK [23:54:47]MH_I2C_Read... [23:54:47]*** iso7816_exchange 80 13 03 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 BE 0A 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 10 [23:54:47]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 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 BF 0A 80 17 00 00 00 00 00 00 49 [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 BF 0A 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 7A [23:54:48]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 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 C0 0A 80 17 00 00 00 00 00 00 4A [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 = 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 C0 0A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:54:48]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 C1 0A 80 17 00 00 00 00 00 00 4B [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 = 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 C1 0A 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 C0 [23:54:48]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 C2 0A 80 17 00 00 00 00 00 00 4C [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 = 209! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 D4 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 D4 00 C2 0A 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [23:54:48]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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_GetFMData done [23:54:48]requested_item fm.sale_refund.total is exist - process it [23:54:48]requested_item fm.buy.total is exist - process it [23:54:48]requested_item shift.sale.total is exist - process it [23:54:48]SAM_PROTO_GetShiftData [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 13 02 00 [23:54:48]Write to MH i2c: E2 08 00 C3 0A 80 13 02 00 00 00 00 00 4B [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 13 02 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 C3 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [23:54:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [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 C4 0A 80 17 00 00 00 00 00 00 4E [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:49]OFD Sender: No OFD packet to send [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 C4 0A 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 70 [23:54:49]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 [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 C5 0A 80 17 00 00 00 00 00 00 4F [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 C5 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [23:54:49]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 [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 C6 0A 80 17 00 00 00 00 00 00 50 [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 C6 0A 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 C2 [23:54:50]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 [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 C7 0A 80 17 00 00 00 00 00 00 51 [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 = 200! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 CB 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 CB 00 C7 0A 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 3A [23:54:50]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 [23:54:50]wFMCommunicate OK [23:54:50]SAM_PROTO_GetShiftData done [23:54:50]requested_item shift.sale.total_cash is exist - process it [23:54:50]requested_item shift.sale_refund.total is exist - process it [23:54:50]requested_item shift.sale_refund.total_cash is exist - process it [23:54:50]requested_item shift.buy.total is exist - process it [23:54:50]requested_item shift.buy.total_cash is exist - process it [23:54:50]produce_requested_data done [23:54:50]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:50]process_action_free get_value [23:54:50]json_value_free [23:54:50]json_value_free done [23:54:50]process_json_proto returns [23:54:50]Send response to host [23:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:50]free response buf [23:54:50]execute_script done [23:54:50]execute_script returns [23:54:50]free content buf [23:54:50]Sock 7.Close socket [23:54:50]Sock 7.Thread stoped [23:54:50]accept exits with 9 [23:54:50]New connection [23:54:50]New thread 3066821988 created [23:54:50]Thread 3066965348 joined [23:54:50]Waiting for new connection... [23:54:50] Sock 9.Parse request [23:54:50]Sock 9.Check first char [23:54:50]Sock 9.First char is OK [23:54:50]request: POST /json_proto HTTP/1.0 [23:54:50]Method: POST [23:54:50]URL: /json_proto [23:54:50]Method is POST - this is cgi request [23:54:50]url: /json_proto [23:54:50]query_string will be loaded in cgi processing [23:54:50]execute_cgi json_proto POST (null) [23:54:50]execute_cgi path=json_proto method=POST [23:54:50]POST find Content-Length [23:54:50]Host: 172.17.39.68:8080 [23:54:50]Content-Length: 331 [23:54:50]Content-Type: application/json [23:54:50] [23:54:50]POST finish read [23:54:50]Found Content-Length = 331 [23:54: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:54:50]execute_script... [23:54: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:54:50]POST & json_proto [23:54:50]process_json_proto [23:54:50]json parsed OK: [23:54:50]protocol is kg_v1.0 [23:54:50]action value=get_value [23:54:50]process_action get_value [23:54:50]cmd_get_value [23:54:50]process_action get_value done [23:54:50]requested_data is exist [23:54:50]produce_requested_data [23:54:50]requested_item fm.sale.total is exist - process it [23:54:50]SAM_PROTO_GetFMData [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 13 03 00 [23:54:50]Write to MH i2c: E2 08 00 C8 0A 80 13 03 00 00 00 00 00 51 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 13 03 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 C8 0A 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1A [23:54:51]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 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 C9 0A 80 17 00 00 00 00 00 00 53 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 17 00 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 C9 0A 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 84 [23:54:51]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 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 CA 0A 80 17 00 00 00 00 00 00 54 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 17 00 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 CA 0A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [23:54:51]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 CB 0A 80 17 00 00 00 00 00 00 55 [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 CB 0A 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 CA [23:54:52]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 CC 0A 80 17 00 00 00 00 00 00 56 [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 = 209! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 D4 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 D4 00 CC 0A 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52]wFMCommunicate OK [23:54:52]SAM_PROTO_GetFMData done [23:54:52]requested_item fm.sale_refund.total is exist - process it [23:54:52]requested_item fm.buy.total is exist - process it [23:54:52]requested_item shift.sale.total is exist - process it [23:54:52]SAM_PROTO_GetShiftData [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 13 02 00 [23:54:52]Write to MH i2c: E2 08 00 CD 0A 80 13 02 00 00 00 00 00 55 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 13 02 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 CD 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [23:54:53]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [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 CE 0A 80 17 00 00 00 00 00 00 58 [23:54:53]Write i2c OK [23:54:53]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 CE 0A 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 7A [23:54:53]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 [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 CF 0A 80 17 00 00 00 00 00 00 59 [23:54:53]Write i2c OK [23:54:53]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 CF 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [23:54:53]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 [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 D0 0A 80 17 00 00 00 00 00 00 5A [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 17 00 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 D0 0A 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 CC [23:54:54]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 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 D1 0A 80 17 00 00 00 00 00 00 5B [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]OFD Sender: No OFD packet to send [23:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 CB 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 CB 00 D1 0A 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 44 [23:54:54]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 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetShiftData done [23:54:54]requested_item shift.sale.total_cash is exist - process it [23:54:54]requested_item shift.sale_refund.total is exist - process it [23:54:54]requested_item shift.sale_refund.total_cash is exist - process it [23:54:54]requested_item shift.buy.total is exist - process it [23:54:54]requested_item shift.buy.total_cash is exist - process it [23:54:54]produce_requested_data done [23:54:54]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:54]process_action_free get_value [23:54:54]json_value_free [23:54:54]json_value_free done [23:54:54]process_json_proto returns [23:54:54]Send response to host [23:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:54]free response buf [23:54:54]execute_script done [23:54:54]execute_script returns [23:54:54]free content buf [23:54:54]Sock 9.Close socket [23:54:54]Sock 9.Thread stoped [23:54:54]accept exits with 7 [23:54:54]New connection [23:54:54]New thread 3066965348 created [23:54:54]Thread 3066821988 joined [23:54:54]Waiting for new connection... [23:54:54] Sock 7.Parse request [23:54:54]Sock 7.Check first char [23:54:54]Sock 7.First char is OK [23:54:54]request: POST /json_proto HTTP/1.0 [23:54:54]Method: POST [23:54:54]URL: /json_proto [23:54:54]Method is POST - this is cgi request [23:54:54]url: /json_proto [23:54:54]query_string will be loaded in cgi processing [23:54:54]execute_cgi json_proto POST (null) [23:54:54]execute_cgi path=json_proto method=POST [23:54:54]POST find Content-Length [23:54:54]Host: 172.17.39.68:8080 [23:54:54]Content-Length: 274 [23:54:54]Content-Type: application/json [23:54:54] [23:54:54]POST finish read [23:54:54]Found Content-Length = 274 [23:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:54]execute_script... [23:54:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:54]POST & json_proto [23:54:54]process_json_proto [23:54:54]json parsed OK: [23:54:54]protocol is kg_v1.0 [23:54:54]action value=x_report [23:54:54]process_action x_report [23:54:54]cmd_x_report [23:54:54]MH_GetDate [23:54:54]Write to MH i2c: F0 00 00 D2 0A CB [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 D2 0A 00 D0 B6 95 66 D6 48 95 66 6E [23:54:54]GetLastDocTimeStamp 1721086507 [23:54:54]current date 1721087696 [23:54:54]FM_GetShiftState [23:54:54]SAM_PROTO_GetShiftState [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 01 00 [23:54:54]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 86 67 94 66 00 00 00 00 90 00 4D [23:54:54]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetShiftState done [23:54:54]FM_GetShiftState done [23:54:54]KKMCreateXReportDocument [23:54:54]Load OK [23:54:54]Malloc new data [23:54:54]MH_GetDate [23:54:54]Write to MH i2c: F0 00 00 D4 0A CD [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 D4 0A 00 D0 B6 95 66 D6 48 95 66 70 [23:54:54]Malloc new data [23:54:54]Malloc new data [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 11 00 00 [23:54:54]Write to MH i2c: E2 08 00 D5 0A 80 11 00 00 00 00 00 00 59 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 17 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 17 00 D5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B4 [23:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetFieldsCounters [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 00 00 [23:54:54]Write to MH i2c: E2 08 00 D6 0A 80 13 00 00 00 00 00 00 5C [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 62 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 62 00 D6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [23:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_GetFieldsCounters done [23:54:55]Malloc new data [23:54:55]Malloc new data [23:54:55]Malloc new data [23:54:55]KKMCreateXReportDocument OK [23:54:55]KKMSetXReportData OK [23:54:55]KKMPrepareXReportFMData [23:54:55]SAM_PROTO_GetShiftData [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 13 02 00 [23:54:55]Write to MH i2c: E2 08 00 D7 0A 80 13 02 00 00 00 00 00 5F [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 13 02 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 D7 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [23:54:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:55]wFMCommunicate OK [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 D8 0A 80 17 00 00 00 00 00 00 62 [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 D8 0A 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 84 [23:54: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 [23:54:56]wFMCommunicate OK [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 D9 0A 80 17 00 00 00 00 00 00 63 [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 D9 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [23:54: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 [23:54:56]wFMCommunicate OK [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 DA 0A 80 17 00 00 00 00 00 00 64 [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 DA 0A 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 D6 [23:54:56]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 [23:54:57]wFMCommunicate OK [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 DB 0A 80 17 00 00 00 00 00 00 65 [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 = 200! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 CB 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 CB 00 DB 0A 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 4E [23:54: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 [23:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_GetShiftData done [23:54:57]1194 (1194) - счетчики итогов смены [23:54:57] 1134 (4) - 120 - количество чеков со всеми признаками расчетов [23:54:57] 1129 (155) - счетчики операций «приход» [23:54:57] 1135 (4) - 120 - количество чеков по признаку расчетов [23:54:57] 1201 (3) - 26649.00 - общая итоговая сумма в чеках [23:54:57] 1136 (3) - 17590.00 - итоговая сумма в чеках наличными [23:54:57] 1138 (3) - 9059.00 - итоговая сумма в чеках безналичными [23:54:57] 1024 (122) - суммы налогов [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) - 2829.93 - сумма НДС по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (11) - суммы НСП [23:54:57] 1014 (1) - 1% - код ставки НСП [23:54:57] 1015 (2) - 235.74 - сумма НСП по ставке [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]SetTLVBufToDocument [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: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 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]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 DC 0A 80 13 03 00 00 00 00 00 65 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 13 03 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 DC 0A 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 2E [23:54:59]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 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 DD 0A 80 17 00 00 00 00 00 00 67 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]OFD Sender: No OFD packet to send [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 DD 0A 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 98 [23:54:59]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 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 DE 0A 80 17 00 00 00 00 00 00 68 [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 DE 0A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [23:55:00]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 DF 0A 80 17 00 00 00 00 00 00 69 [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 DF 0A 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 DE [23:55:00]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 E0 0A 80 17 00 00 00 00 00 00 6A [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 = 209! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 D4 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 D4 00 E0 0A 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [23:55:01]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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]FM_GetFMData:85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:01]oper:6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:01]total:38 01 0A 25 [23:55:01]Malloc new data [23:55:01]oper:6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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:55:02]total:C8 [23:55:02]Malloc new data [23:55:02]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:02]total: [23:55:02]Malloc new data [23:55:02]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:02]total: [23:55:02]Malloc new data [23:55:02]KKMPrepareXReportFMData err=0 [23:55:02]Х отчет ИНН: 02508201610067 Кассир: Шамбеталиев А. 15.07.2024 23:54 Смена: 266 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим Всего чеков: 120 ИТОГИ ПРИХОД Чеков: 120 Общий итог: 26649.00 Итого наличными: 17590.00 Итого безнал.: 9059.00 НДС 0% : 0.00 НДС 12% : 2829.93 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 235.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 17590.00 НС Приход: 6214126.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965389 [23:55:02]StoreToDocumentArchive [23:55:02]MH_GetDate [23:55:02]Write to MH i2c: F0 00 00 E1 0A DA [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: F0 09 00 E1 0A 00 D7 B6 95 66 D6 48 95 66 84 [23:55:02]shift 266 fd 1721087703 [23:55:02]Create dir for shift 0266 [23:55:02]save to /storage/0266/doc_1721087703 [23:55:02]save last doc name /storage/0266/doc_1721087703 to /storage/kkm_last_doc_name [23:55:02]save OK [23:55:02]Clear old archive folders... [23:55:02]NVStorageSaveData kkm_last_timestamp [23:55:02]File name is /storage/kkm_last_timestamp [23:55:02]Write 4 bytes [23:55:02]NVStorageSaveData done [23:55:02]ExternCall_PrintAddStr [23:55:02]wPrintStart [23:55:02]Write to MH i2c: 01 00 00 E2 0A EC [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: 01 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: 01 07 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [23:55:02]RasterBufferAndPrint [23:55:02]line Х отчет [23:55:02]line ИНН: 02508201610067 [23:55:02]line Кассир: Шамбеталиев А. [23:55:02]line 15.07.2024 23:54 [23:55:02]line Смена: 266 [23:55:02]line РНМ: 0000000000098025 [23:55:02]line ЗНМ: 0300000189 [23:55:02]line СНО: Общий режим [23:55:02]line Всего чеков: 120 [23:55:02]line ИТОГИ ПРИХОД [23:55:02]line Чеков: 120 [23:55:02]line Общий итог: 26649.00 [23:55:02]line Итого наличными: 17590.00 [23:55:02]line Итого безнал.: 9059.00 [23:55:02]line НДС 0% : 0.00 [23:55:02]line НДС 12% : 2829.93 [23:55:02]line НСП 0% : 0.00 [23:55:02]line НСП 1,50% : 0.00 [23:55:02]line НСП 0,50% : 0.00 [23:55:02]line НСП 5% : 0.00 [23:55:02]line НСП 3% : 0.00 [23:55:02]line НСП 2% : 0.00 [23:55:02]line НСП 1% : 235.74 [23:55:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:02]line Чеков: 0 [23:55:02]line Общий итог: 0.00 [23:55:02]line Итого наличными: 0.00 [23:55:02]line Итого безнал.: 0.00 [23:55:02]line НДС 0% : 0.00 [23:55:02]line НДС 12% : 0.00 [23:55:02]line НСП 0% : 0.00 [23:55:02]line НСП 1,50% : 0.00 [23:55:02]line НСП 0,50% : 0.00 [23:55:02]line НСП 5% : 0.00 [23:55:02]line НСП 3% : 0.00 [23:55:02]line НСП 2% : 0.00 [23:55:02]line НСП 1% : 0.00 [23:55:02]line ИТОГИ РАСХОД [23:55:02]line Чеков: 0 [23:55:02]line Общий итог: 0.00 [23:55:02]line Итого наличными: 0.00 [23:55:02]line Итого безнал.: 0.00 [23:55:02]line НДС 0% : 0.00 [23:55:02]line НДС 12% : 0.00 [23:55:02]line НСП 0% : 0.00 [23:55:02]line НСП 1,50% : 0.00 [23:55:02]line НСП 0,50% : 0.00 [23:55:02]line НСП 5% : 0.00 [23:55:02]line НСП 3% : 0.00 [23:55:02]line НСП 2% : 0.00 [23:55:02]line НСП 1% : 0.00 [23:55:02]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:02]line Чеков: 0 [23:55:02]line Общий итог: 0.00 [23:55:02]line Итого наличными: 0.00 [23:55:02]line Итого безнал.: 0.00 [23:55:02]line НДС 0% : 0.00 [23:55:02]line НДС 12% : 0.00 [23:55:02]line НСП 0% : 0.00 [23:55:02]line НСП 1,50% : 0.00 [23:55:02]line НСП 0,50% : 0.00 [23:55:02]line НСП 5% : 0.00 [23:55:02]line НСП 3% : 0.00 [23:55:02]line НСП 2% : 0.00 [23:55:02]line НСП 1% : 0.00 [23:55:02]line Сумма внесений: 0.00 [23:55:02]line Сумма выплат: 0.00 [23:55:02]line Нал. в кассе: 17590.00 [23:55:02]line НС Приход: 6214126.64 [23:55:02]line НС Возвр.Прихода: 2.00 [23:55:02]line НС Расход: 0.00 [23:55:02]line НС Возвр.Расхода: 0.00 [23:55:02]line ФМ: 0000000000965389 [23:55:02]written 0, free lines is 4095 [23:55:03]Write to MH i2c: 01 00 00 2D 0B 38 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: 01 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: 01 07 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: 01 07 00 2D 0B 00 00 00 00 00 AB 0A F4 [23:55:03]RasterBufferAndPrint [23:55:03]line [23:55:03]line [23:55:03]line [23:55:03]line [23:55:03]line [23:55:03]written 0, free lines is 2765 [23:55:03]MH_Cut [23:55:03]Write to MH i2c: D1 01 00 34 0B 01 11 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: D1 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: D1 01 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: D1 01 00 34 0B 00 10 [23:55:03]Write to MH i2c: 01 00 00 35 0B 40 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:04]*** Cut start [23:55:04]*** Partial cut [23:55:04]*** CUTSNS_PIN = 1 [23:55:04]*** CUTSNS_PIN = 0 [23:55:04]*** Brake cut motor [23:55:04]OFD Sender: No OFD packet to send [23:55:04]Read from MH i2c: 01 [23:55:04]MH_I2C_Read... [23:55:04]*** Stop cut motor [23:55:04]*** Cut end [23:55:04]Read from MH i2c: 01 07 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 FF 0F 55 [23:55:04]process_action x_report done [23:55:04]requested_data is exist [23:55:04]produce_requested_data [23:55:04]requested_item fd.num is exist - process it [23:55:04]SAM_PROTO_GetFieldsCounters [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 13 00 00 [23:55:04]Write to MH i2c: E2 08 00 36 0B 80 13 00 00 00 00 00 00 BD [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 62 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 62 00 36 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [23:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_GetFieldsCounters done [23:55:05]requested_item shift.num is exist - process it [23:55:05]requested_item shift.opened is exist - process it [23:55:05]req_shift_opened [23:55:05]FM_GetShiftState [23:55:05]SAM_PROTO_GetShiftState [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 13 01 00 [23:55:05]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 0E 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B2 [23:55:05]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_GetShiftState done [23:55:05]FM_GetShiftState done [23:55:05]req_shift_opened done [23:55:05]requested_item shift.open_date is exist - process it [23:55:05]req_shift_open_date [23:55:05]req_shift_open_date done [23:55:05]produce_requested_data done [23:55:05]produce_requested_data return {"fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:55:05]process_action_free x_report [23:55:05]json_value_free [23:55:05]json_value_free done [23:55:05]process_json_proto returns [23:55:05]Send response to host [23:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:55:05]free response buf [23:55:05]execute_script done [23:55:05]execute_script returns [23:55:05]free content buf [23:55:05]Sock 7.Close socket [23:55:05]Sock 7.Thread stoped [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:37]accept exits with 9 [23:55:37]New connection [23:55:37]New thread 3066821988 created [23:55:37]Thread 3066965348 joined [23:55:37]Waiting for new connection... [23:55:37] Sock 9.Parse request [23:55:37]Sock 9.Check first char [23:55:37]Sock 9.First char is OK [23:55:37]request: POST /json_proto HTTP/1.0 [23:55:37]Method: POST [23:55:37]URL: /json_proto [23:55:37]Method is POST - this is cgi request [23:55:37]url: /json_proto [23:55:37]query_string will be loaded in cgi processing [23:55:37]execute_cgi json_proto POST (null) [23:55:37]execute_cgi path=json_proto method=POST [23:55:37]POST find Content-Length [23:55:37]Host: 172.17.39.68:8080 [23:55:37]Content-Length: 215 [23:55:37]Content-Type: application/json [23:55:37] [23:55:37]POST finish read [23:55:37]Found Content-Length = 215 [23:55:37]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:55:37]execute_script... [23:55:37]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:55:37]POST & json_proto [23:55:37]process_json_proto [23:55:37]json parsed OK: [23:55:37]protocol is kg_v1.0 [23:55:37]action value=get_value [23:55:37]process_action get_value [23:55:37]cmd_get_value [23:55:37]process_action get_value done [23:55:37]requested_data is exist [23:55:37]produce_requested_data [23:55:37]requested_item kkm.sn is exist - process it [23:55:37]requested_item kkm.ver is exist - process it [23:55:37]requested_item fm.sn is exist - process it [23:55:37]wFMCommunicate request_size=4 [23:55:37]MH_SAM_APDU [23:55:37]CAPDU: 80 11 00 00 [23:55:37]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:37]Read from MH i2c: E2 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 17 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 18 [23:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:55:37]wFMCommunicate OK [23:55:37]requested_item fd.num is exist - process it [23:55:37]SAM_PROTO_GetFieldsCounters [23:55:37]wFMCommunicate request_size=4 [23:55:37]MH_SAM_APDU [23:55:37]CAPDU: 80 13 00 00 [23:55:37]Write to MH i2c: E2 08 00 39 0B 80 13 00 00 00 00 00 00 C0 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:37]Read from MH i2c: E2 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 62 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 62 00 39 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [23:55:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 BF 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:37]wFMCommunicate OK [23:55:37]SAM_PROTO_GetFieldsCounters done [23:55:37]requested_item shift.num is exist - process it [23:55:37]requested_item shift.opened is exist - process it [23:55:37]req_shift_opened [23:55:37]FM_GetShiftState [23:55:37]SAM_PROTO_GetShiftState [23:55:37]wFMCommunicate request_size=4 [23:55:37]MH_SAM_APDU [23:55:37]CAPDU: 80 13 01 00 [23:55:37]Write to MH i2c: E2 08 00 3A 0B 80 13 01 00 00 00 00 00 C2 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:37]Read from MH i2c: E2 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 0E 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 0E 00 3A 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 B5 [23:55:37]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:55:37]wFMCommunicate OK [23:55:37]SAM_PROTO_GetShiftState done [23:55:37]FM_GetShiftState done [23:55:37]req_shift_opened done [23:55:37]requested_item shift.open_date is exist - process it [23:55:37]req_shift_open_date [23:55:37]req_shift_open_date done [23:55:37]produce_requested_data done [23:55:37]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862} [23:55:37]process_action_free get_value [23:55:37]json_value_free [23:55:37]json_value_free done [23:55:37]process_json_proto returns [23:55:37]Send response to host [23:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31679,"shift.num":370,"shift.opened":1,"shift.open_date":1721001862}}} [23:55:37]free response buf [23:55:37]execute_script done [23:55:37]execute_script returns [23:55:37]free content buf [23:55:37]Sock 9.Close socket [23:55:37]Sock 9.Thread stoped [23:55:37]accept exits with 10 [23:55:37]New connection [23:55:37]New thread 3066965348 created [23:55:37]Thread 3066821988 joined [23:55:37]Waiting for new connection... [23:55:37] Sock 10.Parse request [23:55:37]Sock 10.Check first char [23:55:37]Sock 10.First char is OK [23:55:37]request: POST /json_proto HTTP/1.0 [23:55:37]Method: POST [23:55:37]URL: /json_proto [23:55:37]Method is POST - this is cgi request [23:55:37]url: /json_proto [23:55:37]query_string will be loaded in cgi processing [23:55:37]execute_cgi json_proto POST (null) [23:55:37]execute_cgi path=json_proto method=POST [23:55:37]POST find Content-Length [23:55:37]Host: 172.17.39.68:8080 [23:55:37]Content-Length: 331 [23:55:37]Content-Type: application/json [23:55:37] [23:55:37]POST finish read [23:55:37]Found Content-Length = 331 [23:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:37]execute_script... [23:55:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:37]POST & json_proto [23:55:37]process_json_proto [23:55:37]json parsed OK: [23:55:37]protocol is kg_v1.0 [23:55:37]action value=get_value [23:55:37]process_action get_value [23:55:37]cmd_get_value [23:55:37]process_action get_value done [23:55:37]requested_data is exist [23:55:37]produce_requested_data [23:55:38]requested_item fm.sale.total is exist - process it [23:55:38]SAM_PROTO_GetFMData [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 13 03 00 [23:55:38]Write to MH i2c: E2 08 00 3B 0B 80 13 03 00 00 00 00 00 C5 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 3B 0B 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 8E [23:55:38]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:38]wFMCommunicate OK [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 17 00 00 [23:55:38]Write to MH i2c: E2 08 00 3C 0B 80 17 00 00 00 00 00 00 C7 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 3C 0B 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 F8 [23:55:38]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [23:55:38]wFMCommunicate OK [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 17 00 00 [23:55:38]Write to MH i2c: E2 08 00 3D 0B 80 17 00 00 00 00 00 00 C8 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 3D 0B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [23:55:38]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:39]wFMCommunicate OK [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 17 00 00 [23:55:39]Write to MH i2c: E2 08 00 3E 0B 80 17 00 00 00 00 00 00 C9 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 3E 0B 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 3E [23:55:39]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:55:39]wFMCommunicate OK [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 17 00 00 [23:55:39]Write to MH i2c: E2 08 00 3F 0B 80 17 00 00 00 00 00 00 CA [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 D4 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 D4 00 3F 0B 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BB [23:55:39]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39]wFMCommunicate OK [23:55:39]SAM_PROTO_GetFMData done [23:55:39]requested_item fm.sale_refund.total is exist - process it [23:55:39]requested_item fm.buy.total is exist - process it [23:55:39]requested_item shift.sale.total is exist - process it [23:55:39]SAM_PROTO_GetShiftData [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 13 02 00 [23:55:39]Write to MH i2c: E2 08 00 40 0B 80 13 02 00 00 00 00 00 C9 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]OFD Sender: No OFD packet to send [23:55:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 40 0B 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [23:55:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:55:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 41 0B 80 17 00 00 00 00 00 00 CC [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 41 0B 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 EE [23:55:40]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 [23:55:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 42 0B 80 17 00 00 00 00 00 00 CD [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 42 0B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [23:55:40]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 [23:55:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 43 0B 80 17 00 00 00 00 00 00 CE [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:41]Read from MH i2c: E2 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 FD 00 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 FD 00 43 0B 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 40 [23:55:41]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 [23:55:41]wFMCommunicate OK [23:55:41]wFMCommunicate request_size=4 [23:55:41]MH_SAM_APDU [23:55:41]CAPDU: 80 17 00 00 [23:55:41]Write to MH i2c: E2 08 00 44 0B 80 17 00 00 00 00 00 00 CF [23:55:41]Write i2c OK [23:55:41]MH_I2C_Read... [23:55:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:41]Read from MH i2c: E2 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 CB 00 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 CB 00 44 0B 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 B8 [23:55:41]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 [23:55:41]wFMCommunicate OK [23:55:41]SAM_PROTO_GetShiftData done [23:55:41]requested_item shift.sale.total_cash is exist - process it [23:55:41]requested_item shift.sale_refund.total is exist - process it [23:55:41]requested_item shift.sale_refund.total_cash is exist - process it [23:55:41]requested_item shift.buy.total is exist - process it [23:55:41]requested_item shift.buy.total_cash is exist - process it [23:55:41]produce_requested_data done [23:55:41]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:55:41]process_action_free get_value [23:55:41]json_value_free [23:55:41]json_value_free done [23:55:41]process_json_proto returns [23:55:41]Send response to host [23:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:55:41]free response buf [23:55:41]execute_script done [23:55:41]execute_script returns [23:55:41]free content buf [23:55:41]Sock 10.Close socket [23:55:41]Sock 10.Thread stoped [23:55:41]accept exits with 9 [23:55:41]New connection [23:55:41]New thread 3066821988 created [23:55:41]Thread 3066965348 joined [23:55:41]Waiting for new connection... [23:55:41] Sock 9.Parse request [23:55:41]Sock 9.Check first char [23:55:41]Sock 9.First char is OK [23:55:41]request: POST /json_proto HTTP/1.0 [23:55:41]Method: POST [23:55:41]URL: /json_proto [23:55:41]Method is POST - this is cgi request [23:55:41]url: /json_proto [23:55:41]query_string will be loaded in cgi processing [23:55:41]execute_cgi json_proto POST (null) [23:55:41]execute_cgi path=json_proto method=POST [23:55:41]POST find Content-Length [23:55:41]Host: 172.17.39.68:8080 [23:55:41]Content-Length: 331 [23:55:41]Content-Type: application/json [23:55:41] [23:55:41]POST finish read [23:55:41]Found Content-Length = 331 [23:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:41]execute_script... [23:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:41]POST & json_proto [23:55:41]process_json_proto [23:55:41]json parsed OK: [23:55:41]protocol is kg_v1.0 [23:55:41]action value=get_value [23:55:41]process_action get_value [23:55:41]cmd_get_value [23:55:41]process_action get_value done [23:55:41]requested_data is exist [23:55:41]produce_requested_data [23:55:41]requested_item fm.sale.total is exist - process it [23:55:41]SAM_PROTO_GetFMData [23:55:41]wFMCommunicate request_size=4 [23:55:41]MH_SAM_APDU [23:55:41]CAPDU: 80 13 03 00 [23:55:41]Write to MH i2c: E2 08 00 45 0B 80 13 03 00 00 00 00 00 CF [23:55:41]Write i2c OK [23:55:41]MH_I2C_Read... [23:55:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:42]Read from MH i2c: E2 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 FD 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 FD 00 45 0B 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 98 [23:55:42]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:42]wFMCommunicate OK [23:55:42]wFMCommunicate request_size=4 [23:55:42]MH_SAM_APDU [23:55:42]CAPDU: 80 17 00 00 [23:55:42]Write to MH i2c: E2 08 00 46 0B 80 17 00 00 00 00 00 00 D1 [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:42]Read from MH i2c: E2 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 FD 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 FD 00 46 0B 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 02 [23:55:42]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [23:55:42]wFMCommunicate OK [23:55:42]wFMCommunicate request_size=4 [23:55:42]MH_SAM_APDU [23:55:42]CAPDU: 80 17 00 00 [23:55:42]Write to MH i2c: E2 08 00 47 0B 80 17 00 00 00 00 00 00 D2 [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 [23:55:42]MH_I2C_Read... [23:55:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:42]Read from MH i2c: E2 FD 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 FD 00 47 0B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [23:55:42]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:43]wFMCommunicate OK [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 17 00 00 [23:55:43]Write to MH i2c: E2 08 00 48 0B 80 17 00 00 00 00 00 00 D3 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 48 0B 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 48 [23:55:43]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:55:43]wFMCommunicate OK [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 17 00 00 [23:55:43]Write to MH i2c: E2 08 00 49 0B 80 17 00 00 00 00 00 00 D4 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 D4 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 D4 00 49 0B 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [23:55:43]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:43]wFMCommunicate OK [23:55:43]SAM_PROTO_GetFMData done [23:55:43]requested_item fm.sale_refund.total is exist - process it [23:55:43]requested_item fm.buy.total is exist - process it [23:55:43]requested_item shift.sale.total is exist - process it [23:55:43]SAM_PROTO_GetShiftData [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 02 00 [23:55:43]Write to MH i2c: E2 08 00 4A 0B 80 13 02 00 00 00 00 00 D3 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 4A 0B 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [23:55:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 4B 0B 80 17 00 00 00 00 00 00 D6 [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]OFD Sender: No OFD packet to send [23:55:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 4B 0B 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 F8 [23:55:44]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 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 4C 0B 80 17 00 00 00 00 00 00 D7 [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 4C 0B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8E [23:55:45]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 [23:55:45]wFMCommunicate OK [23:55:45]wFMCommunicate request_size=4 [23:55:45]MH_SAM_APDU [23:55:45]CAPDU: 80 17 00 00 [23:55:45]Write to MH i2c: E2 08 00 4D 0B 80 17 00 00 00 00 00 00 D8 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 4D 0B 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 4A [23:55:45]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 [23:55:45]wFMCommunicate OK [23:55:45]wFMCommunicate request_size=4 [23:55:45]MH_SAM_APDU [23:55:45]CAPDU: 80 17 00 00 [23:55:45]Write to MH i2c: E2 08 00 4E 0B 80 17 00 00 00 00 00 00 D9 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 CB 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 CB 00 4E 0B 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 C2 [23:55:46]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 [23:55:46]wFMCommunicate OK [23:55:46]SAM_PROTO_GetShiftData done [23:55:46]requested_item shift.sale.total_cash is exist - process it [23:55:46]requested_item shift.sale_refund.total is exist - process it [23:55:46]requested_item shift.sale_refund.total_cash is exist - process it [23:55:46]requested_item shift.buy.total is exist - process it [23:55:46]requested_item shift.buy.total_cash is exist - process it [23:55:46]produce_requested_data done [23:55:46]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:55:46]process_action_free get_value [23:55:46]json_value_free [23:55:46]json_value_free done [23:55:46]process_json_proto returns [23:55:46]Send response to host [23:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:55:46]free response buf [23:55:46]execute_script done [23:55:46]execute_script returns [23:55:46]free content buf [23:55:46]Sock 9.Close socket [23:55:46]Sock 9.Thread stoped [23:55:46]accept exits with 7 [23:55:46]New connection [23:55:46]New thread 3066965348 created [23:55:46]Thread 3066821988 joined [23:55:46]Waiting for new connection... [23:55:46] Sock 7.Parse request [23:55:46]Sock 7.Check first char [23:55:46]Sock 7.First char is OK [23:55:46]request: POST /json_proto HTTP/1.0 [23:55:46]Method: POST [23:55:46]URL: /json_proto [23:55:46]Method is POST - this is cgi request [23:55:46]url: /json_proto [23:55:46]query_string will be loaded in cgi processing [23:55:46]execute_cgi json_proto POST (null) [23:55:46]execute_cgi path=json_proto method=POST [23:55:46]POST find Content-Length [23:55:46]Host: 172.17.39.68:8080 [23:55:46]Content-Length: 277 [23:55:46]Content-Type: application/json [23:55:46] [23:55:46]POST finish read [23:55:46]Found Content-Length = 277 [23:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:46]execute_script... [23:55:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:46]POST & json_proto [23:55:46]process_json_proto [23:55:46]json parsed OK: [23:55:46]protocol is kg_v1.0 [23:55:46]action value=close_shift [23:55:46]process_action close_shift [23:55:46]cmd_close_shift [23:55:46]MH_GetDate [23:55:46]Write to MH i2c: F0 00 00 4F 0B 49 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 09 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 09 00 4F 0B 00 03 B7 95 66 D6 48 95 66 20 [23:55:46]GetLastDocTimeStamp 1721087696 [23:55:46]current date 1721087747 [23:55:46]FM_GetShiftState [23:55:46]SAM_PROTO_GetShiftState [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 13 01 00 [23:55:46]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 0E 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 86 67 94 66 00 00 00 00 90 00 CB [23:55:46]RAPDU: 09 00 01 86 67 94 66 00 00 00 00 90 00 [23:55:46]wFMCommunicate OK [23:55:46]SAM_PROTO_GetShiftState done [23:55:46]FM_GetShiftState done [23:55:46]KKMCreateCloseShiftDocument [23:55:46]Load OK [23:55:46]Malloc new data [23:55:46]MH_GetDate [23:55:46]Write to MH i2c: F0 00 00 51 0B 4B [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 09 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: F0 09 00 51 0B 00 04 B7 95 66 D6 48 95 66 23 [23:55:46]Malloc new data [23:55:46]Malloc new data [23:55:46]Malloc new data [23:55:46]Malloc new data [23:55:46]KKMCreateCloseShiftDocument OK [23:55:46]KKMSetCloseShiftData OK [23:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=76 [23:55:46]tlvbuf is 01579E50 [23:55:46]KKMLoadAndSignCloseShiftData [23:55:46]SAM_PROTO_ProcessDocument [23:55:46]wFMCommunicate request_size=9 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 15 01 00 04 05 00 4C 00 [23:55:46]Write to MH i2c: E2 0C 00 52 0B 80 15 01 00 04 00 05 00 4C 00 00 00 35 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [23:55:46]RAPDU: 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=23 [23:55:46]MH_SAM_APDU [23:55:46]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:55:46]Write to MH i2c: E2 1A 00 53 0B 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 D3 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [23:55:46]RAPDU: 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=35 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E [23:55:46]Write to MH i2c: E2 26 00 54 0B 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E 00 00 5A [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [23:55:46]RAPDU: 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=13 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 15 02 00 08 F4 03 04 00 04 B7 95 66 [23:55:46]Write to MH i2c: E2 10 00 55 0B 80 15 02 00 08 00 F4 03 04 00 04 B7 95 66 00 00 A1 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [23:55:46]RAPDU: 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=25 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [23:55:46]Write to MH i2c: E2 1C 00 56 0B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 42 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [23:55:46]RAPDU: 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 15 03 00 [23:55:46]Write to MH i2c: E2 08 00 57 0B 80 15 03 00 00 00 00 00 E3 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:47]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 57 0B 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [23:55:47]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:47]wFMCommunicate OK [23:55:47]SAM_PROTO_ProcessDocument answer len = 1265 [23:55:47]SAM_PROTO_ProcessDocument remain to read = 1017 [23:55:47]wFMCommunicate request_size=4 [23:55:47]MH_SAM_APDU [23:55:47]CAPDU: 80 17 00 00 [23:55:47]Write to MH i2c: E2 08 00 58 0B 80 17 00 00 00 00 00 00 E3 [23:55:47]Write i2c OK [23:55:47]MH_I2C_Read... [23:55:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 58 0B 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [23:55:48]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:48]wFMCommunicate OK [23:55:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:48]SAM_PROTO_ProcessDocument remain to read = 767 [23:55:48]wFMCommunicate request_size=4 [23:55:48]MH_SAM_APDU [23:55:48]CAPDU: 80 17 00 00 [23:55:48]Write to MH i2c: E2 08 00 59 0B 80 17 00 00 00 00 00 00 E4 [23:55:48]Write i2c OK [23:55:48]MH_I2C_Read... [23:55:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:48]Read from MH i2c: E2 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 59 0B 00 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 90 00 46 [23:55:48]RAPDU: 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 90 00 [23:55:48]wFMCommunicate OK [23:55:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:48]SAM_PROTO_ProcessDocument remain to read = 517 [23:55:48]wFMCommunicate request_size=4 [23:55:48]MH_SAM_APDU [23:55:48]CAPDU: 80 17 00 00 [23:55:48]Write to MH i2c: E2 08 00 5A 0B 80 17 00 00 00 00 00 00 E5 [23:55:48]Write i2c OK [23:55:48]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 5A 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 6F [23:55:49]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [23:55:49]wFMCommunicate OK [23:55:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:49]SAM_PROTO_ProcessDocument remain to read = 267 [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 17 00 00 [23:55:49]Write to MH i2c: E2 08 00 5B 0B 80 17 00 00 00 00 00 00 E6 [23:55:49]Write i2c OK [23:55:49]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 5B 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 AE [23:55:49]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 OFD Sender: No OFD packet to send [23:55:49]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:55:49]wFMCommunicate OK [23:55:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:49]SAM_PROTO_ProcessDocument remain to read = 17 [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 17 00 00 [23:55:49]Write to MH i2c: E2 08 00 5C 0B 80 17 00 00 00 00 00 00 E7 [23:55:49]Write i2c OK [23:55:49]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 14 00 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 14 00 5C 0B 00 01 00 06 F7 03 00 00 35 04 06 00 27 A6 97 41 EF 38 90 00 F8 [23:55:50]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 27 A6 97 41 EF 38 90 00 [23:55:50]wFMCommunicate OK [23:55:50]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:55:50]SAM_PROTO_ProcessDocument done [23:55:50]1209 (1) - 1.0 - номер версии ФФД [23:55:50]1041 (16) - 0000000000965389 - номер ФМ [23:55:50]1040 (4) - 31680 - номер ФД [23:55:50]1038 (4) - 370 - номер смены [23:55:50]1118 (4) - 120 - количество кассовых чеков за смену [23:55:50]1111 (4) - 122 - общее количество ФД за смену [23:55:50]1194 (1194) - счетчики итогов смены [23:55:50] 1134 (4) - 120 - количество чеков со всеми признаками расчетов [23:55:50] 1129 (155) - счетчики операций «приход» [23:55:50] 1135 (4) - 120 - количество чеков по признаку расчетов [23:55:50] 1201 (3) - 26649.00 - общая итоговая сумма в чеках [23:55:50] 1136 (3) - 17590.00 - итоговая сумма в чеках наличными [23:55:50] 1138 (3) - 9059.00 - итоговая сумма в чеках безналичными [23:55:50] 1024 (122) - суммы налогов [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 0% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1006 (12) - суммы НДС [23:55:50] 1010 (1) - 12% - код ставки НДС [23:55:50] 1011 (3) - 2829.93 - сумма НДС по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (11) - суммы НСП [23:55:50] 1014 (1) - 1% - код ставки НСП [23:55:50] 1015 (2) - 235.74 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 2% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 3% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 5% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1130 (141) - счетчики операций «возврат прихода» [23:55:50] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:50] 1024 (117) - суммы налогов [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 0% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 12% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 2% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 3% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 5% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1131 (141) - счетчики операций «расход» [23:55:50] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:50] 1024 (117) - суммы налогов [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 0% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 12% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 2% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 3% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 5% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1132 (141) - счетчики операций «возврат расхода» [23:55:50] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:50] 1024 (117) - суммы налогов [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 0% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1006 (9) - суммы НДС [23:55:50] 1010 (1) - 12% - код ставки НДС [23:55:50] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 2% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 3% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 5% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 0,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1007 (9) - суммы НСП [23:55:50] 1014 (1) - 1,50% - код ставки НСП [23:55:50] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:50] 1133 (588) - - счетчики коррекции - не используются [23:55:50]1077 (6) - 43596455735096 - ФПД [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1209 (04B9) [23:55:50]Malloc new data [23:55:50]Processing tag 1041 (0411) [23:55:50]Processing tag 1040 (0410) [23:55:50]Malloc new data [23:55:50]Processing tag 1038 (040E) [23:55:50]Malloc new data [23:55:50]Processing tag 1118 (045E) [23:55:50]Malloc new data [23:55:50]Processing tag 1111 (0457) [23:55:50]Malloc new data [23:55:50]Processing tag 1194 (04AA) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1134 (046E) [23:55:50]Malloc new data [23:55:50]Processing tag 1129 (0469) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1135 (046F) [23:55:50]Malloc new data [23:55:50]Processing tag 1201 (04B1) [23:55:50]Malloc new data [23:55:50]Processing tag 1136 (0470) [23:55:50]Malloc new data [23:55:50]Processing tag 1138 (0472) [23:55:50]Malloc new data [23:55:50]Processing tag 1024 (0400) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1130 (046A) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1135 (046F) [23:55:50]Malloc new data [23:55:50]Processing tag 1201 (04B1) [23:55:50]Malloc new data [23:55:50]Processing tag 1136 (0470) [23:55:50]Malloc new data [23:55:50]Processing tag 1138 (0472) [23:55:50]Malloc new data [23:55:50]Processing tag 1024 (0400) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1131 (046B) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1135 (046F) [23:55:50]Malloc new data [23:55:50]Processing tag 1201 (04B1) [23:55:50]Malloc new data [23:55:50]Processing tag 1136 (0470) [23:55:50]Malloc new data [23:55:50]Processing tag 1138 (0472) [23:55:50]Malloc new data [23:55:50]Processing tag 1024 (0400) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1132 (046C) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1135 (046F) [23:55:50]Malloc new data [23:55:50]Processing tag 1201 (04B1) [23:55:50]Malloc new data [23:55:50]Processing tag 1136 (0470) [23:55:50]Malloc new data [23:55:50]Processing tag 1138 (0472) [23:55:50]Malloc new data [23:55:50]Processing tag 1024 (0400) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1006 (03EE) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1010 (03F2) [23:55:50]Malloc new data [23:55:50]Processing tag 1011 (03F3) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:50]Processing tag 1007 (03EF) [23:55:50]Load OK [23:55:50]SetTLVBufToDocument [23:55:50]Processing tag 1014 (03F6) [23:55:50]Malloc new data [23:55:50]Processing tag 1015 (03F7) [23:55:50]Malloc new data [23:55:50]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1007 (03EF) [23:55:51]Load OK [23:55:51]SetTLVBufToDocument [23:55:51]Processing tag 1014 (03F6) [23:55:51]Malloc new data [23:55:51]Processing tag 1015 (03F7) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1007 (03EF) [23:55:51]Load OK [23:55:51]SetTLVBufToDocument [23:55:51]Processing tag 1014 (03F6) [23:55:51]Malloc new data [23:55:51]Processing tag 1015 (03F7) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1007 (03EF) [23:55:51]Load OK [23:55:51]SetTLVBufToDocument [23:55:51]Processing tag 1014 (03F6) [23:55:51]Malloc new data [23:55:51]Processing tag 1015 (03F7) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1007 (03EF) [23:55:51]Load OK [23:55:51]SetTLVBufToDocument [23:55:51]Processing tag 1014 (03F6) [23:55:51]Malloc new data [23:55:51]Processing tag 1015 (03F7) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]SetTLVBufToDocument err=0 [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1133 (046D) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Processing tag 1077 (0435) [23:55:51]Malloc new data [23:55:51]SetTLVBufToDocument err=0 [23:55:51]Malloc new data [23:55:51]SAM_PROTO_GetFMData [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 13 03 00 [23:55:51]Write to MH i2c: E2 08 00 5D 0B 80 13 03 00 00 00 00 00 E7 [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:51]Read from MH i2c: E2 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 5D 0B 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 B0 [23:55:51]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:51]wFMCommunicate OK [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 17 00 00 [23:55:51]Write to MH i2c: E2 08 00 5E 0B 80 17 00 00 00 00 00 00 E9 [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 5E 0B 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 1A [23:55:52]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [23:55:52]wFMCommunicate OK [23:55:52]wFMCommunicate request_size=4 [23:55:52]MH_SAM_APDU [23:55:52]CAPDU: 80 17 00 00 [23:55:52]Write to MH i2c: E2 08 00 5F 0B 80 17 00 00 00 00 00 00 EA [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 5F 0B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [23:55:52]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:53]wFMCommunicate OK [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 17 00 00 [23:55:53]Write to MH i2c: E2 08 00 60 0B 80 17 00 00 00 00 00 00 EB [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:53]Read from MH i2c: E2 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 60 0B 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 60 [23:55:53]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:55:53]wFMCommunicate OK [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 17 00 00 [23:55:53]Write to MH i2c: E2 08 00 61 0B 80 17 00 00 00 00 00 00 EC [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:53]Read from MH i2c: E2 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 D4 00 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 D4 00 61 0B 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD [23:55:54]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54]wFMCommunicate OK [23:55:54]SAM_PROTO_GetFMData done [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]KKMLoadAndSignCloseShiftData err=0 [23:55:54]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шамбеталиев А. 15.07.2024 23:55 Смена: 370 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим Чеков за смену: 120 ФД за смену: 122 Всего чеков: 120 ИТОГИ ПРИХОД Чеков: 120 Общий итог: 26649.00 Итого наличными: 17590.00 Итого безнал.: 9059.00 НДС 0% : 0.00 НДС 12% : 2829.93 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 235.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 17590.00 НС Приход: 6214126.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 31680 ФМ: 0000000000965389 ФПД: 43596455735096 [23:55:54]StoreToDocumentArchive [23:55:54]shift 370 fd 31680 [23:55:54]save to /storage/0370/doc_00031680 [23:55:54]save last doc name /storage/0370/doc_00031680 to /storage/kkm_last_doc_name [23:55:54]save OK [23:55:54]Clear old archive folders... [23:55:54]Remove dir /storage/0266 [23:55:54]opendir ok [23:55:54]file . [23:55:54]file .. [23:55:54]file doc_1721087703 [23:55:54]remove file /storage/0266/doc_1721087703 [23:55:54]remove dir /storage/0266 [23:55:54]NVStorageSaveData kkm_registers [23:55:54]File name is /storage/kkm_registers [23:55:54]Write 24 bytes [23:55:54]NVStorageSaveData done [23:55:54]NVStorageSaveData kkm_registers [23:55:54]File name is /storage/kkm_registers [23:55:54]Write 24 bytes [23:55:54]NVStorageSaveData done [23:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [23:55:54]tlvbuf is 01566AD0 [23:55:54]SAM_PROTO_ClearQueue [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 09 00 00 [23:55:54]Write to MH i2c: E2 08 00 62 0B 80 09 00 00 00 00 00 00 DF [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]SAM_PROTO_ClearQueue done [23:55:54]KKMCreateOFDPacket [23:55:54]OFDProtocolAddRootSTLVToBuf [23:55:54]FM_MakeSignedData [23:55:54]FM_MakeSignedData [23:55:54]SAM_PROTO_SignData [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 0D 01 02 [23:55:54]Write to MH i2c: E2 08 00 63 0B 80 0D 01 02 00 00 00 00 E7 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=255 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 0D 02 02 FA 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 04 B7 95 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 D5 04 6E 04 04 00 78 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 51 04 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 [23:55:54]Write to MH i2c: E2 02 01 64 0B 80 0D 02 02 FA 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 04 B7 95 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 D5 04 6E 04 04 00 78 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 51 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 00 00 75 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]OFD Sender: No OFD packet to send [23:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:55]Read from MH i2c: E2 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 03 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [23:55:55]RAPDU: 90 00 [23:55:55]wFMCommunicate OK [23:55:55]wFMCommunicate request_size=255 [23:55:55]MH_SAM_APDU [23:55:55]CAPDU: 80 0D 02 02 FA 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C 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 [23:55:55]Write to MH i2c: E2 02 01 65 0B 80 0D 02 02 FA 00 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C 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 00 00 C9 [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:55]Read from MH i2c: E2 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 03 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 03 00 65 0B 00 90 00 E4 [23:55:55]RAPDU: 90 00 [23:55:55]wFMCommunicate OK [23:55:55]wFMCommunicate request_size=255 [23:55:55]MH_SAM_APDU [23:55:55]CAPDU: 80 0D 02 02 FA 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 [23:55:55]Write to MH i2c: E2 02 01 66 0B 80 0D 02 02 FA 00 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 00 00 B1 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [23:55:56]RAPDU: 90 00 [23:55:56]wFMCommunicate OK [23:55:56]wFMCommunicate request_size=255 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 0D 02 02 FA 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 [23:55:56]Write to MH i2c: E2 02 01 67 0B 80 0D 02 02 FA 00 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 00 00 AE [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 67 0B 00 90 00 E6 [23:55:56]RAPDU: 90 00 [23:55:56]wFMCommunicate OK [23:55:56]wFMCommunicate request_size=255 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [23:55:57]Write to MH i2c: E2 02 01 68 0B 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 86 [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [23:55:57]RAPDU: 90 00 [23:55:57]wFMCommunicate OK [23:55:57]wFMCommunicate request_size=143 [23:55:57]MH_SAM_APDU [23:55:57]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 27 A6 97 41 EF 38 [23:55:57]Write to MH i2c: E2 92 00 69 0B 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 27 A6 97 41 EF 38 00 00 38 [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:58]Read from MH i2c: E2 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 03 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [23:55:58]RAPDU: 90 00 [23:55:58]wFMCommunicate OK [23:55:58]wFMCommunicate request_size=4 [23:55:58]MH_SAM_APDU [23:55:58]CAPDU: 80 0D 03 02 [23:55:58]Write to MH i2c: E2 08 00 6A 0B 80 0D 03 02 00 00 00 00 F0 [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:58]Read from MH i2c: E2 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 0B 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 0B 00 6A 0B 00 69 E2 4E FB 06 AF 5D EF 90 00 86 [23:55:58]RAPDU: 69 E2 4E FB 06 AF 5D EF 90 00 [23:55:58]wFMCommunicate OK [23:55:58]SAM_PROTO_SignData done [23:55:58]FM_MakeSignedData done [23:55:58]CreateOFDProtocolMessage [23:55:58]wFMCommunicate request_size=4 [23:55:58]MH_SAM_APDU [23:55:58]CAPDU: 80 11 00 00 [23:55:58]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 [23:55:58]MH_I2C_Read... [23:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:58]Read from MH i2c: E2 17 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4B [23:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:55:58]wFMCommunicate OK [23:55:58]CreateOFDProtocolMessage done [23:55:58]OFDSenderStorePacket 31680 [23:55:58]StoreOFDPacket docnum=31680 [23:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 7C 05 00 00 3D 7B 74 05 D4 38 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 04 B7 95 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 D5 04 6E 04 04 00 78 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 51 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C 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 C0 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 27 A6 97 41 EF 38 69 E2 4E FB 06 AF 5D EF [23:55:58]CheckFolder [23:55:58]dirname=/storage/ofd_packets [23:55:58]CheckFolder done [23:55:58]ProducePacketName [23:55:58]name=ofd_packets/00031680 [23:55:58]NVStorageSaveData ofd_packets/00031680 [23:55:58]File name is /storage/ofd_packets/00031680 [23:55:58]Write 1434 bytes [23:55:58]NVStorageSaveData done [23:55:58]OFDSenderStorePacket done [23:55:58]KKMCreateOFDPacket done [23:55:58]NVStorageSaveData kkm_last_timestamp [23:55:58]File name is /storage/kkm_last_timestamp [23:55:58]Write 4 bytes [23:55:58]NVStorageSaveData done [23:55:58]ExternCall_PrintAddStr [23:55:58]wPrintStart [23:55:58]Write to MH i2c: 01 00 00 6C 0B 77 [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: 01 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: 01 07 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [23:55:58]RasterBufferAndPrint [23:55:58]line Отчет о закрытии смены [23:55:58]line ФФД: 1.0 [23:55:58]line ИНН: 02508201610067 [23:55:58]line Кассир: Шамбеталиев А. [23:55:58]line 15.07.2024 23:55 [23:55:58]line Смена: 370 [23:55:58]line РНМ: 0000000000098025 [23:55:58]line ЗНМ: 0300000189 [23:55:58]line СНО: Общий режим [23:55:58]line Чеков за смену: 120 [23:55:58]line ФД за смену: 122 [23:55:58]line Всего чеков: 120 [23:55:58]line ИТОГИ ПРИХОД [23:55:58]line Чеков: 120 [23:55:58]line Общий итог: 26649.00 [23:55:58]line Итого наличными: 17590.00 [23:55:58]line Итого безнал.: 9059.00 [23:55:58]line НДС 0% : 0.00 [23:55:58]line НДС 12% : 2829.93 [23:55:58]line НСП 0% : 0.00 [23:55:58]line НСП 1,50% : 0.00 [23:55:58]line НСП 0,50% : 0.00 [23:55:58]line НСП 5% : 0.00 [23:55:58]line НСП 3% : 0.00 [23:55:58]line НСП 2% : 0.00 [23:55:58]line НСП 1% : 235.74 [23:55:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:58]line Чеков: 0 [23:55:58]line Общий итог: 0.00 [23:55:58]line Итого наличными: 0.00 [23:55:58]line Итого безнал.: 0.00 [23:55:58]line НДС 0% : 0.00 [23:55:58]line НДС 12% : 0.00 [23:55:58]line НСП 0% : 0.00 [23:55:58]line НСП 1,50% : 0.00 [23:55:58]line НСП 0,50% : 0.00 [23:55:58]line НСП 5% : 0.00 [23:55:58]line НСП 3% : 0.00 [23:55:58]line НСП 2% : 0.00 [23:55:58]line НСП 1% : 0.00 [23:55:58]line ИТОГИ РАСХОД [23:55:58]line Чеков: 0 [23:55:58]line Общий итог: 0.00 [23:55:58]line Итого наличными: 0.00 [23:55:58]line Итого безнал.: 0.00 [23:55:58]line НДС 0% : 0.00 [23:55:58]line НДС 12% : 0.00 [23:55:58]line НСП 0% : 0.00 [23:55:58]line НСП 1,50% : 0.00 [23:55:58]line НСП 0,50% : 0.00 [23:55:58]line НСП 5% : 0.00 [23:55:58]line НСП 3% : 0.00 [23:55:58]line НСП 2% : 0.00 [23:55:58]line НСП 1% : 0.00 [23:55:58]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:58]line Чеков: 0 [23:55:58]line Общий итог: 0.00 [23:55:58]line Итого наличными: 0.00 [23:55:58]line Итого безнал.: 0.00 [23:55:58]line НДС 0% : 0.00 [23:55:58]line НДС 12% : 0.00 [23:55:58]line НСП 0% : 0.00 [23:55:58]line НСП 1,50% : 0.00 [23:55:58]OFD Sender: Processing packet 31680 [packets to send 6, broken 5] [23:55:58]ProducePacketName [23:55:58]name=ofd_packets/00031680 [23:55:58]OFD Sender: To server: pG, [23:55:58]CommunicateWithHost lk.salyk.kg:30040 [23:55:58]ConnectInit lk.salyk.kg [23:55:58]line НСП 0,50% : 0.00 [23:55:58]line НСП 5% : 0.00 [23:55:58]line НСП 3% : 0.00 [23:55:58]line НСП 2% : 0.00 [23:55:58]line НСП 1% : 0.00 [23:55:58]line Сумма внесений: 0.00 [23:55:58]line Сумма выплат: 0.00 [23:55:58]line Нал. в кассе: 17590.00 [23:55:58]line НС Приход: 6214126.64 [23:55:58]line НС Возвр.Прихода: 2.00 [23:55:58]line НС Расход: 0.00 [23:55:58]line НС Возвр.Расхода: 0.00 [23:55:58]line ФД: 31680 [23:55:58]line ФМ: 0000000000965389 [23:55:58]line ФПД: 43596455735096 [23:55:58]written 0, free lines is 4095 [23:55:58]Connected sock=10 [23:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 7C 05 00 00 3D 7B 74 05 D4 38 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 04 B7 95 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 AA 04 D5 04 6E 04 04 00 78 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 51 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C 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 Write to MH i2c: 03 01 0A 00 00 00 F6 BC 03 0B 01 C7 00 [23:55:59]02 F7 Write i2c OK [23:55:59]03 MH_I2C_Read... [23:55:59]01 Read from MH i2c: 00 01 00 [23:55:59]EF MH_I2C_Read... [23:55:59]03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D Read from MH i2c: 04 01 4C 07 02 00 78 [23:55:59]04 MH_I2C_Read... [23:55:59]04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 Read from MH i2c: 00 01 00 07 B1 00 04 BC 00 0B 00 00 70 00 04 00 00 00 00 00 72 B6 04 0B 00 8F 00 [23:55:59]00 RasterBufferAndPrint [23:55:59]04 line [23:55:59]75 line [23:55:59]00 line [23:55:59]EE line [23:55:59]03 line [23:55:59]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 written 0, free lines is 3134 [23:55:59]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 MH_Cut [23:55:59]01 Write to MH i2c: 00 D1 00 01 F7 00 03 C3 00 0B 00 01 EF A0 03 [23:55:59]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:55:59]00 MH_I2C_Read... [23:55:59]03 Read from MH i2c: F7 D1 03 [23:55:59]00 MH_I2C_Read... [23:55:59]00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 [23:55:59]03 MH_I2C_Read... [23:55:59]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 Read from MH i2c: F7 D1 03 01 00 00 00 C3 0B D0 00 04 9F [23:55:59]8D Write to MH i2c: 00 01 6F 00 04 00 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 C4 8D 0B 00 CF 6F [23:56:00]04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 Write i2c OK [23:56:00]75 MH_I2C_Read... [23:56:00]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 27 A6 97 41 EF 38 69 E2 4E FB 06 AF 5D EF [23:56:00]*** Cut start [23:56:00]*** Partial cut [23:56:00]*** CUTSNS_PIN = 1 [23:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 14 61 47 00 1C E0 A5 07 01 00 07 00 3B 00 F9 *** CUTSNS_PIN = 0 [23:56:00]03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C0 7B 00 00 F4 03 04 00 1E 63 95 66 B6 04 01 00 00 FB E3 49 F6 2C CA A4 81 [23:56:00]CommunicateWithHost err = 0 [23:56:00]CheckOFDResponse [23:56:00]1017 (14) - 77093643461234 [23:56:00]1041 (16) - 0000000000965389 [23:56:00]*** Brake cut motor [23:56:00]1040 (4) - 31680 [23:56:00]1012 (4) - 15.07.2024 17:57 [23:56:00]1206 (1) - 0 [23:56:00]OFD Sender: Remove packet 31680 [23:56:00]ProducePacketName [23:56:00]name=ofd_packets/00031680 [23:56:00]NVStorageDeleteData [23:56:01]Read from MH i2c: 01 [23:56:01]MH_I2C_Read... [23:56:01]*** Stop cut motor [23:56:01]*** Cut end [23:56:01]Read from MH i2c: 01 07 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [23:56:01]process_action close_shift done [23:56:01]requested_data is exist [23:56:01]produce_requested_data [23:56:01]requested_item fd.num is exist - process it [23:56:01]SAM_PROTO_GetFieldsCounters [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 13 00 00 [23:56:01]Write to MH i2c: E2 08 00 C5 0B 80 13 00 00 00 00 00 00 4C [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 62 00 [23:56:01]MH_I2C_Read... [23:56:01]OFD Sender: No OFD packet to send [23:56:01]Read from MH i2c: E2 62 00 C5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [23:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_GetFieldsCounters done [23:56:01]requested_item shift.num is exist - process it [23:56:01]requested_item shift.opened is exist - process it [23:56:01]req_shift_opened [23:56:01]FM_GetShiftState [23:56:01]SAM_PROTO_GetShiftState [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 13 01 00 [23:56:01]Write to MH i2c: E2 08 00 C6 0B 80 13 01 00 00 00 00 00 4E [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 0E 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 0E 00 C6 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 59 [23:56:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_GetShiftState done [23:56:01]FM_GetShiftState done [23:56:01]req_shift_opened done [23:56:01]requested_item shift.open_date is exist - process it [23:56:01]req_shift_open_date [23:56:01]FM_GetShiftState [23:56:01]SAM_PROTO_GetShiftState [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 13 01 00 [23:56:01]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 0E 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5A [23:56:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_GetShiftState done [23:56:01]FM_GetShiftState done [23:56:01]req_shift_open_date done [23:56:01]produce_requested_data done [23:56:01]produce_requested_data return {"fd.num":31680,"shift.num":370,"shift.opened":0,"shift.open_date":0} [23:56:01]process_action_free close_shift [23:56:01]json_value_free [23:56:01]json_value_free done [23:56:01]process_json_proto returns [23:56:01]Send response to host [23:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31680,"shift.num":370,"shift.opened":0,"shift.open_date":0}}} [23:56:01]free response buf [23:56:01]execute_script done [23:56:01]execute_script returns [23:56:01]free content buf [23:56:01]Sock 7.Close socket [23:56:01]Sock 7.Thread stoped [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:33]accept exits with 9 [00:06:33]New connection [00:06:33]New thread 3066821988 created [00:06:33]Thread 3066965348 joined [00:06:33]Waiting for new connection... [00:06:33] Sock 9.Parse request [00:06:33]Sock 9.Check first char [00:06:33]Sock 9.First char is OK [00:06:33]request: POST /json_proto HTTP/1.0 [00:06:33]Method: POST [00:06:33]URL: /json_proto [00:06:33]Method is POST - this is cgi request [00:06:33]url: /json_proto [00:06:33]query_string will be loaded in cgi processing [00:06:33]execute_cgi json_proto POST (null) [00:06:33]execute_cgi path=json_proto method=POST [00:06:33]POST find Content-Length [00:06:33]Host: 172.17.39.68:8080 [00:06:33]Content-Length: 215 [00:06:33]Content-Type: application/json [00:06:33] [00:06:33]POST finish read [00:06:33]Found Content-Length = 215 [00:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:33]execute_script... [00:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:33]POST & json_proto [00:06:33]process_json_proto [00:06:33]json parsed OK: [00:06:33]protocol is kg_v1.0 [00:06:33]action value=get_value [00:06:33]process_action get_value [00:06:33]cmd_get_value [00:06:33]process_action get_value done [00:06:33]requested_data is exist [00:06:33]produce_requested_data [00:06:33]requested_item kkm.sn is exist - process it [00:06:33]requested_item kkm.ver is exist - process it [00:06:33]requested_item fm.sn is exist - process it [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 11 00 00 [00:06:33]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 17 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A8 [00:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:06:33]wFMCommunicate OK [00:06:33]requested_item fd.num is exist - process it [00:06:33]SAM_PROTO_GetFieldsCounters [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 13 00 00 [00:06:33]Write to MH i2c: E2 08 00 C9 0B 80 13 00 00 00 00 00 00 50 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 62 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 62 00 C9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [00:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C0 7B 00 00 0E 04 04 00 72 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_GetFieldsCounters done [00:06:33]requested_item shift.num is exist - process it [00:06:33]requested_item shift.opened is exist - process it [00:06:33]req_shift_opened [00:06:33]FM_GetShiftState [00:06:33]SAM_PROTO_GetShiftState [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 13 01 00 [00:06:33]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0E 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5D [00:06:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_GetShiftState done [00:06:33]FM_GetShiftState done [00:06:33]req_shift_opened done [00:06:33]requested_item shift.open_date is exist - process it [00:06:33]req_shift_open_date [00:06:33]FM_GetShiftState [00:06:33]SAM_PROTO_GetShiftState [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 13 01 00 [00:06:33]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0E 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5E [00:06:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_GetShiftState done [00:06:33]FM_GetShiftState done [00:06:33]req_shift_open_date done [00:06:33]produce_requested_data done [00:06:33]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31680,"shift.num":370,"shift.opened":0,"shift.open_date":0} [00:06:33]process_action_free get_value [00:06:33]json_value_free [00:06:33]json_value_free done [00:06:33]process_json_proto returns [00:06:33]Send response to host [00:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31680,"shift.num":370,"shift.opened":0,"shift.open_date":0}}} [00:06:33]free response buf [00:06:33]execute_script done [00:06:33]execute_script returns [00:06:33]free content buf [00:06:33]Sock 9.Close socket [00:06:33]Sock 9.Thread stoped [00:06:33]accept exits with 7 [00:06:33]New connection [00:06:33]New thread 3066965348 created [00:06:33]Thread 3066821988 joined [00:06:33]Waiting for new connection... [00:06:33] Sock 7.Parse request [00:06:33]Sock 7.Check first char [00:06:33]Sock 7.First char is OK [00:06:33]request: POST /json_proto HTTP/1.0 [00:06:33]Method: POST [00:06:33]URL: /json_proto [00:06:33]Method is POST - this is cgi request [00:06:33]url: /json_proto [00:06:33]query_string will be loaded in cgi processing [00:06:33]execute_cgi json_proto POST (null) [00:06:33]execute_cgi path=json_proto method=POST [00:06:33]POST find Content-Length [00:06:33]Host: 172.17.39.68:8080 [00:06:33]Content-Length: 331 [00:06:33]Content-Type: application/json [00:06:33] [00:06:33]POST finish read [00:06:33]Found Content-Length = 331 [00:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:33]execute_script... [00:06:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:34]POST & json_proto [00:06:34]process_json_proto [00:06:34]json parsed OK: [00:06:34]protocol is kg_v1.0 [00:06:34]action value=get_value [00:06:34]process_action get_value [00:06:34]cmd_get_value [00:06:34]process_action get_value done [00:06:34]requested_data is exist [00:06:34]produce_requested_data [00:06:34]requested_item fm.sale.total is exist - process it [00:06:34]SAM_PROTO_GetFMData [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 13 03 00 [00:06:34]Write to MH i2c: E2 08 00 CC 0B 80 13 03 00 00 00 00 00 56 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 CC 0B 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1F [00:06:34]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:34]wFMCommunicate OK [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 17 00 00 [00:06:34]Write to MH i2c: E2 08 00 CD 0B 80 17 00 00 00 00 00 00 58 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 CD 0B 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 89 [00:06:34]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [00:06:34]wFMCommunicate OK [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 17 00 00 [00:06:34]Write to MH i2c: E2 08 00 CE 0B 80 17 00 00 00 00 00 00 59 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 CE 0B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:06:35]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:35]wFMCommunicate OK [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 17 00 00 [00:06:35]Write to MH i2c: E2 08 00 CF 0B 80 17 00 00 00 00 00 00 5A [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 CF 0B 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 CF [00:06:35]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [00:06:35]wFMCommunicate OK [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 17 00 00 [00:06:35]Write to MH i2c: E2 08 00 D0 0B 80 17 00 00 00 00 00 00 5B [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 D4 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 D4 00 D0 0B 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00:06:35]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:35]wFMCommunicate OK [00:06:35]SAM_PROTO_GetFMData done [00:06:35]requested_item fm.sale_refund.total is exist - process it [00:06:35]requested_item fm.buy.total is exist - process it [00:06:35]requested_item shift.sale.total is exist - process it [00:06:35]SAM_PROTO_GetShiftData [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 13 02 00 [00:06:35]Write to MH i2c: E2 08 00 D1 0B 80 13 02 00 00 00 00 00 5A [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 D1 0B 00 AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6C [00:06:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 78 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 C4 A9 28 70 04 03 00 18 D7 1A 72 04 03 00 AC D2 0D 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 71 51 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 17 00 00 [00:06:36]Write to MH i2c: E2 08 00 D2 0B 80 17 00 00 00 00 00 00 5D [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 D2 0B 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 7F [00:06:36]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 [00:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 17 00 00 [00:06:36]Write to MH i2c: E2 08 00 D3 0B 80 17 00 00 00 00 00 00 5E [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 D3 0B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [00:06:36]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 [00:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 17 00 00 [00:06:36]Write to MH i2c: E2 08 00 D4 0B 80 17 00 00 00 00 00 00 5F [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 D4 0B 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 D1 [00:06:37]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 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 17 00 00 [00:06:37]Write to MH i2c: E2 08 00 D5 0B 80 17 00 00 00 00 00 00 60 [00:06:37]OFD Sender: No OFD packet to send [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 CB 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 CB 00 D5 0B 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 49 [00:06:37]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 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftData done [00:06:37]requested_item shift.sale.total_cash is exist - process it [00:06:37]requested_item shift.sale_refund.total is exist - process it [00:06:37]requested_item shift.sale_refund.total_cash is exist - process it [00:06:37]requested_item shift.buy.total is exist - process it [00:06:37]requested_item shift.buy.total_cash is exist - process it [00:06:37]produce_requested_data done [00:06:37]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:06:37]process_action_free get_value [00:06:37]json_value_free [00:06:37]json_value_free done [00:06:37]process_json_proto returns [00:06:37]Send response to host [00:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":26649.00,"shift.sale.total_cash":17590.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:06:37]free response buf [00:06:37]execute_script done [00:06:37]execute_script returns [00:06:37]free content buf [00:06:37]Sock 7.Close socket [00:06:37]Sock 7.Thread stoped [00:06:37]accept exits with 9 [00:06:37]New connection [00:06:37]New thread 3066821988 created [00:06:37]Thread 3066965348 joined [00:06:37]Waiting for new connection... [00:06:37] Sock 9.Parse request [00:06:37]Sock 9.Check first char [00:06:37]Sock 9.First char is OK [00:06:37]request: POST /json_proto HTTP/1.0 [00:06:37]Method: POST [00:06:37]URL: /json_proto [00:06:37]Method is POST - this is cgi request [00:06:37]url: /json_proto [00:06:37]query_string will be loaded in cgi processing [00:06:37]execute_cgi json_proto POST (null) [00:06:37]execute_cgi path=json_proto method=POST [00:06:37]POST find Content-Length [00:06:37]Host: 172.17.39.68:8080 [00:06:37]Content-Length: 271 [00:06:37]Content-Type: application/json [00:06:37] [00:06:37]POST finish read [00:06:37]Found Content-Length = 271 [00:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:37]execute_script... [00:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:37]POST & json_proto [00:06:37]process_json_proto [00:06:37]json parsed OK: [00:06:37]protocol is kg_v1.0 [00:06:37]action value=open_shift [00:06:37]process_action open_shift [00:06:37]cmd_open_shift [00:06:37]MH_GetDate [00:06:37]Write to MH i2c: F0 00 00 D6 0B D0 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 09 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 09 00 D6 0B 00 8F B9 95 66 D6 48 95 66 35 [00:06:37]GetLastDocTimeStamp 1721087748 [00:06:37]current date 1721088399 [00:06:37]FM_GetShiftState [00:06:37]SAM_PROTO_GetShiftState [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 01 00 [00:06:37]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:37]Read from MH i2c: E2 0E 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6A [00:06:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftState done [00:06:37]FM_GetShiftState done [00:06:37]KKMCreateOpenShiftDocument [00:06:37]Load OK [00:06:37]Malloc new data [00:06:37]MH_GetDate [00:06:37]Write to MH i2c: F0 00 00 D8 0B D2 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 09 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: F0 09 00 D8 0B 00 8F B9 95 66 D6 48 95 66 37 [00:06:37]Malloc new data [00:06:37]KKMCreateOpenShiftDocument OK [00:06:37]KKMSetOpenShiftData OK [00:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:06:37]tlvbuf is 015308A0 [00:06:37]KKMLoadAndSignOpenShiftData [00:06:37]SAM_PROTO_ProcessDocument [00:06:37]wFMCommunicate request_size=9 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:06:37]Write to MH i2c: E2 0C 00 D9 0B 80 15 01 00 04 00 02 00 D4 00 00 00 41 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=23 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:37]Write to MH i2c: E2 1A 00 DA 0B 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 5A [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=34 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E [00:06:37]Write to MH i2c: E2 25 00 DB 0B 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E 00 00 24 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=96 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 [00:06:37]Write to MH i2c: E2 63 00 DC 0B 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 00 00 7A [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=51 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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:06:37]Write to MH i2c: E2 36 00 DD 0B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 0F [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [00:06:38]RAPDU: 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=13 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 15 02 00 08 F4 03 04 00 8F B9 95 66 [00:06:38]Write to MH i2c: E2 10 00 DE 0B 80 15 02 00 08 00 F4 03 04 00 8F B9 95 66 00 00 B7 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [00:06:38]RAPDU: 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=25 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [00:06:38]Write to MH i2c: E2 1C 00 DF 0B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 CB [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [00:06:38]RAPDU: 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 15 03 00 [00:06:38]Write to MH i2c: E2 08 00 E0 0B 80 15 03 00 00 00 00 00 6C [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 38 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 38 00 E0 0B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C1 7B 00 00 0E 04 04 00 73 01 00 00 35 04 06 00 6D BF 56 88 6D 4D 90 00 B4 [00:06:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C1 7B 00 00 0E 04 04 00 73 01 00 00 35 04 06 00 6D BF 56 88 6D 4D 90 00 [00:06:38]wFMCommunicate OK [00:06:38]SAM_PROTO_ProcessDocument answer len = 51 [00:06:38]SAM_PROTO_ProcessDocument done [00:06:38]SetTLVBufToDocument [00:06:38]Processing tag 1209 (04B9) [00:06:38]Malloc new data [00:06:38]Processing tag 1041 (0411) [00:06:38]Processing tag 1040 (0410) [00:06:38]Malloc new data [00:06:38]Processing tag 1038 (040E) [00:06:38]Malloc new data [00:06:38]Processing tag 1077 (0435) [00:06:38]Malloc new data [00:06:38]SetTLVBufToDocument err=0 [00:06:38]KKMLoadAndSignOpenShiftData store KKM data [00:06:38]KKMLoadAndSignOpenShiftData err=0 [00:06:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбек у Н. Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 Место: АЗС № 140 "Партнер Нефть" 16.07.2024 00:06 Смена: 371 РНМ: 0000000000098025 ЗНМ: 0300000189 ФД: 31681 ФМ: 0000000000965389 ФПД: 120668557962573 [00:06:38]StoreToDocumentArchive [00:06:38]shift 371 fd 31681 [00:06:38]Create dir for shift 0371 [00:06:38]save to /storage/0371/doc_00031681 [00:06:38]save last doc name /storage/0371/doc_00031681 to /storage/kkm_last_doc_name [00:06:38]save OK [00:06:38]Clear old archive folders... [00:06:38]Remove dir /storage/0370 [00:06:38]opendir ok [00:06:38]file . [00:06:38]file .. [00:06:38]file doc_00031559 [00:06:38]remove file /storage/0370/doc_00031559 [00:06:38]file doc_00031560 [00:06:38]remove file /storage/0370/doc_00031560 [00:06:38]file doc_00031561 [00:06:38]remove file /storage/0370/doc_00031561 [00:06:38]file doc_00031562 [00:06:38]remove file /storage/0370/doc_00031562 [00:06:38]file doc_00031563 [00:06:38]remove file /storage/0370/doc_00031563 [00:06:38]file doc_00031564 [00:06:38]remove file /storage/0370/doc_00031564 [00:06:38]file doc_00031565 [00:06:38]remove file /storage/0370/doc_00031565 [00:06:38]file doc_00031566 [00:06:38]remove file /storage/0370/doc_00031566 [00:06:38]file doc_00031567 [00:06:38]remove file /storage/0370/doc_00031567 [00:06:38]file doc_00031568 [00:06:38]remove file /storage/0370/doc_00031568 [00:06:38]file doc_00031569 [00:06:38]remove file /storage/0370/doc_00031569 [00:06:38]file doc_00031570 [00:06:38]remove file /storage/0370/doc_00031570 [00:06:38]file doc_00031571 [00:06:38]remove file /storage/0370/doc_00031571 [00:06:38]file doc_00031572 [00:06:38]remove file /storage/0370/doc_00031572 [00:06:38]file doc_00031573 [00:06:38]remove file /storage/0370/doc_00031573 [00:06:38]file doc_00031574 [00:06:38]remove file /storage/0370/doc_00031574 [00:06:38]file doc_00031575 [00:06:38]remove file /storage/0370/doc_00031575 [00:06:38]file doc_00031576 [00:06:38]remove file /storage/0370/doc_00031576 [00:06:38]file doc_00031577 [00:06:38]remove file /storage/0370/doc_00031577 [00:06:38]file doc_00031578 [00:06:38]remove file /storage/0370/doc_00031578 [00:06:38]file doc_00031579 [00:06:38]remove file /storage/0370/doc_00031579 [00:06:38]file doc_00031580 [00:06:38]remove file /storage/0370/doc_00031580 [00:06:38]file doc_00031581 [00:06:38]remove file /storage/0370/doc_00031581 [00:06:38]file doc_00031582 [00:06:38]remove file /storage/0370/doc_00031582 [00:06:38]file doc_00031583 [00:06:38]remove file /storage/0370/doc_00031583 [00:06:38]file doc_00031584 [00:06:38]remove file /storage/0370/doc_00031584 [00:06:38]file doc_00031585 [00:06:38]remove file /storage/0370/doc_00031585 [00:06:38]file doc_00031586 [00:06:38]remove file /storage/0370/doc_00031586 [00:06:38]file doc_00031587 [00:06:38]remove file /storage/0370/doc_00031587 [00:06:38]file doc_00031588 [00:06:38]remove file /storage/0370/doc_00031588 [00:06:38]file doc_00031589 [00:06:38]remove file /storage/0370/doc_00031589 [00:06:38]file doc_00031590 [00:06:38]remove file /storage/0370/doc_00031590 [00:06:38]file doc_00031591 [00:06:38]remove file /storage/0370/doc_00031591 [00:06:38]file doc_00031592 [00:06:38]remove file /storage/0370/doc_00031592 [00:06:38]file doc_00031593 [00:06:38]remove file /storage/0370/doc_00031593 [00:06:38]file doc_00031594 [00:06:38]remove file /storage/0370/doc_00031594 [00:06:38]file doc_00031595 [00:06:38]remove file /storage/0370/doc_00031595 [00:06:38]file doc_00031596 [00:06:38]remove file /storage/0370/doc_00031596 [00:06:38]file doc_00031597 [00:06:38]remove file /storage/0370/doc_00031597 [00:06:38]file doc_00031598 [00:06:38]remove file /storage/0370/doc_00031598 [00:06:38]file doc_00031599 [00:06:38]remove file /storage/0370/doc_00031599 [00:06:38]file doc_00031600 [00:06:38]remove file /storage/0370/doc_00031600 [00:06:38]file doc_00031601 [00:06:38]remove file /storage/0370/doc_00031601 [00:06:38]file doc_00031602 [00:06:38]remove file /storage/0370/doc_00031602 [00:06:38]file doc_00031603 [00:06:38]remove file /storage/0370/doc_00031603 [00:06:38]file doc_00031604 [00:06:38]remove file /storage/0370/doc_00031604 [00:06:38]file doc_00031605 [00:06:38]remove file /storage/0370/doc_00031605 [00:06:38]file doc_00031606 [00:06:38]remove file /storage/0370/doc_00031606 [00:06:38]file doc_00031607 [00:06:38]remove file /storage/0370/doc_00031607 [00:06:38]file doc_00031608 [00:06:38]remove file /storage/0370/doc_00031608 [00:06:38]file doc_00031609 [00:06:38]remove file /storage/0370/doc_00031609 [00:06:38]file doc_00031610 [00:06:38]remove file /storage/0370/doc_00031610 [00:06:38]file doc_00031611 [00:06:38]remove file /storage/0370/doc_00031611 [00:06:38]file doc_00031612 [00:06:38]remove file /storage/0370/doc_00031612 [00:06:38]file doc_00031613 [00:06:38]remove file /storage/0370/doc_00031613 [00:06:38]file doc_00031614 [00:06:38]remove file /storage/0370/doc_00031614 [00:06:38]file doc_00031615 [00:06:38]remove file /storage/0370/doc_00031615 [00:06:38]file doc_00031616 [00:06:38]remove file /storage/0370/doc_00031616 [00:06:38]file doc_00031617 [00:06:38]remove file /storage/0370/doc_00031617 [00:06:38]file doc_00031618 [00:06:38]remove file /storage/0370/doc_00031618 [00:06:38]file doc_00031619 [00:06:38]remove file /storage/0370/doc_00031619 [00:06:38]file doc_00031620 [00:06:38]remove file /storage/0370/doc_00031620 [00:06:38]file doc_00031621 [00:06:38]remove file /storage/0370/doc_00031621 [00:06:38]file doc_00031622 [00:06:38]remove file /storage/0370/doc_00031622 [00:06:38]file doc_00031623 [00:06:38]remove file /storage/0370/doc_00031623 [00:06:38]file doc_00031624 [00:06:38]remove file /storage/0370/doc_00031624 [00:06:38]file doc_00031625 [00:06:38]remove file /storage/0370/doc_00031625 [00:06:38]file doc_00031626 [00:06:38]remove file /storage/0370/doc_00031626 [00:06:38]file doc_00031627 [00:06:38]remove file /storage/0370/doc_00031627 [00:06:38]file doc_00031628 [00:06:38]remove file /storage/0370/doc_00031628 [00:06:38]file doc_00031629 [00:06:38]remove file /storage/0370/doc_00031629 [00:06:38]file doc_00031631 [00:06:38]remove file /storage/0370/doc_00031631 [00:06:38]file doc_00031632 [00:06:38]remove file /storage/0370/doc_00031632 [00:06:38]file doc_00031633 [00:06:38]remove file /storage/0370/doc_00031633 [00:06:38]file doc_00031634 [00:06:38]remove file /storage/0370/doc_00031634 [00:06:38]file doc_00031635 [00:06:38]remove file /storage/0370/doc_00031635 [00:06:38]file doc_00031636 [00:06:38]remove file /storage/0370/doc_00031636 [00:06:38]file doc_00031637 [00:06:38]remove file /storage/0370/doc_00031637 [00:06:38]file doc_00031638 [00:06:38]remove file /storage/0370/doc_00031638 [00:06:38]file doc_00031639 [00:06:38]remove file /storage/0370/doc_00031639 [00:06:38]file doc_00031640 [00:06:38]remove file /storage/0370/doc_00031640 [00:06:38]file doc_00031641 [00:06:38]remove file /storage/0370/doc_00031641 [00:06:38]file doc_00031642 [00:06:38]remove file /storage/0370/doc_00031642 [00:06:38]file doc_00031643 [00:06:38]remove file /storage/0370/doc_00031643 [00:06:38]file doc_00031644 [00:06:38]remove file /storage/0370/doc_00031644 [00:06:38]file doc_00031645 [00:06:38]remove file /storage/0370/doc_00031645 [00:06:38]file doc_00031646 [00:06:38]remove file /storage/0370/doc_00031646 [00:06:38]file doc_00031647 [00:06:38]remove file /storage/0370/doc_00031647 [00:06:38]file doc_00031648 [00:06:38]remove file /storage/0370/doc_00031648 [00:06:38]file doc_00031649 [00:06:38]remove file /storage/0370/doc_00031649 [00:06:38]file doc_00031650 [00:06:38]remove file /storage/0370/doc_00031650 [00:06:38]file doc_00031651 [00:06:39]remove file /storage/0370/doc_00031651 [00:06:39]file doc_00031652 [00:06:39]remove file /storage/0370/doc_00031652 [00:06:39]file doc_00031653 [00:06:39]remove file /storage/0370/doc_00031653 [00:06:39]file doc_00031654 [00:06:39]remove file /storage/0370/doc_00031654 [00:06:39]file doc_00031655 [00:06:39]remove file /storage/0370/doc_00031655 [00:06:39]file doc_00031656 [00:06:39]remove file /storage/0370/doc_00031656 [00:06:39]file doc_00031657 [00:06:39]remove file /storage/0370/doc_00031657 [00:06:39]file doc_00031658 [00:06:39]remove file /storage/0370/doc_00031658 [00:06:39]file doc_00031659 [00:06:39]remove file /storage/0370/doc_00031659 [00:06:39]file doc_00031660 [00:06:39]remove file /storage/0370/doc_00031660 [00:06:39]file doc_00031661 [00:06:39]remove file /storage/0370/doc_00031661 [00:06:39]file doc_00031662 [00:06:39]remove file /storage/0370/doc_00031662 [00:06:39]file doc_00031663 [00:06:39]remove file /storage/0370/doc_00031663 [00:06:39]file doc_00031664 [00:06:39]remove file /storage/0370/doc_00031664 [00:06:39]file doc_00031665 [00:06:39]remove file /storage/0370/doc_00031665 [00:06:39]file doc_00031666 [00:06:39]remove file /storage/0370/doc_00031666 [00:06:39]file doc_00031667 [00:06:39]remove file /storage/0370/doc_00031667 [00:06:39]file doc_00031668 [00:06:39]remove file /storage/0370/doc_00031668 [00:06:39]file doc_00031669 [00:06:39]remove file /storage/0370/doc_00031669 [00:06:39]file doc_00031670 [00:06:39]remove file /storage/0370/doc_00031670 [00:06:39]file doc_00031671 [00:06:39]remove file /storage/0370/doc_00031671 [00:06:39]file doc_00031672 [00:06:39]remove file /storage/0370/doc_00031672 [00:06:39]file doc_00031673 [00:06:39]remove file /storage/0370/doc_00031673 [00:06:39]file doc_00031674 [00:06:39]remove file /storage/0370/doc_00031674 [00:06:39]file doc_00031675 [00:06:39]remove file /storage/0370/doc_00031675 [00:06:39]file doc_00031676 [00:06:39]remove file /storage/0370/doc_00031676 [00:06:39]file doc_00031677 [00:06:39]remove file /storage/0370/doc_00031677 [00:06:39]file doc_00031678 [00:06:39]remove file /storage/0370/doc_00031678 [00:06:39]file doc_00031679 [00:06:39]remove file /storage/0370/doc_00031679 [00:06:39]file doc_00031680 [00:06:39]remove file /storage/0370/doc_00031680 [00:06:39]remove dir /storage/0370 [00:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:06:39]tlvbuf is B6EC4180 [00:06:39]SAM_PROTO_ClearQueue [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 09 00 00 [00:06:39]Write to MH i2c: E2 08 00 E1 0B 80 09 00 00 00 00 00 00 5E [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [00:06:39]RAPDU: 90 00 [00:06:39]wFMCommunicate OK [00:06:39]SAM_PROTO_ClearQueue done [00:06:39]KKMCreateOFDPacket [00:06:39]OFDProtocolAddRootSTLVToBuf [00:06:39]FM_MakeSignedData [00:06:39]FM_MakeSignedData [00:06:39]SAM_PROTO_SignData [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 0D 01 02 [00:06:39]Write to MH i2c: E2 08 00 E2 0B 80 0D 01 02 00 00 00 00 66 [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [00:06:39]RAPDU: 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=255 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 0D 02 02 FA 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 8F B9 95 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:06:39]Write to MH i2c: E2 02 01 E3 0B 80 0D 02 02 FA 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 8F B9 95 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 4D [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [00:06:39]RAPDU: 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=22 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 0D 02 02 11 30 39 36 35 33 38 39 35 04 06 00 6D BF 56 88 6D 4D [00:06:39]Write to MH i2c: E2 19 00 E4 0B 80 0D 02 02 11 00 30 39 36 35 33 38 39 35 04 06 00 6D BF 56 88 6D 4D 00 00 06 [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [00:06:39]RAPDU: 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 0D 03 02 [00:06:39]Write to MH i2c: E2 08 00 E5 0B 80 0D 03 02 00 00 00 00 6B [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 0B 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 0B 00 E5 0B 00 C8 46 40 B3 4A ED CC 98 90 00 08 [00:06:39]RAPDU: C8 46 40 B3 4A ED CC 98 90 00 [00:06:39]wFMCommunicate OK [00:06:39]SAM_PROTO_SignData done [00:06:39]FM_MakeSignedData done [00:06:39]CreateOFDProtocolMessage [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 11 00 00 [00:06:39]Write to MH i2c: E2 08 00 E6 0B 80 11 00 00 00 00 00 00 6B [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 17 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 17 00 E6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [00:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:06:39]wFMCommunicate OK [00:06:39]CreateOFDProtocolMessage done [00:06:39]OFDSenderStorePacket 31681 [00:06:39]StoreOFDPacket docnum=31681 [00:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1B 01 00 00 9F 4A 13 01 20 2B 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 8F B9 95 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 6D BF 56 88 6D 4D C8 46 40 B3 4A ED CC 98 [00:06:39]CheckFolder [00:06:39]dirname=/storage/ofd_packets [00:06:39]CheckFolder done [00:06:39]ProducePacketName [00:06:39]name=ofd_packets/00031681 [00:06:39]NVStorageSaveData ofd_packets/00031681 [00:06:39]File name is /storage/ofd_packets/00031681 [00:06:39]Write 313 bytes [00:06:39]NVStorageSaveData done [00:06:39]OFDSenderStorePacket done [00:06:39]KKMCreateOFDPacket done [00:06:39]NVStorageSaveData kkm_last_timestamp [00:06:39]File name is /storage/kkm_last_timestamp [00:06:39]Write 4 bytes [00:06:39]NVStorageSaveData done [00:06:39]ExternCall_PrintAddStr [00:06:39]wPrintStart [00:06:39]Write to MH i2c: 01 00 00 E7 0B F2 [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]OFD Sender: Processing packet 31681 [packets to send 6, broken 5] [00:06:39]ProducePacketName [00:06:39]name=ofd_packets/00031681 [00:06:39]OFD Sender: To server: pG, [00:06:39]CommunicateWithHost lk.salyk.kg:30040 [00:06:39]ConnectInit lk.salyk.kg [00:06:39]Read from MH i2c: 01 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: 01 07 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: 01 07 00 E7 0B 00 00 00 00 00 FF 0F 07 [00:06:39]RasterBufferAndPrint [00:06:39]line Отчет об открытии смены [00:06:39]line ФФД: 1.0 [00:06:39]line ИНН: 02508201610067 [00:06:39]line Кассир: Дуйшенбек у Н. [00:06:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:06:39]line Место: АЗС № 140 "Партнер Нефть" [00:06:39]line 16.07.2024 00:06 [00:06:39]line Смена: 371 [00:06:39]line РНМ: 0000000000098025 [00:06:39]line ЗНМ: 0300000189 [00:06:39]line ФД: 31681 [00:06:39]line ФМ: 0000000000965389 [00:06:39]line ФПД: 120668557962573 [00:06:39]written 0, free lines is 4095 [00:06:39]Connected sock=10 [00:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1B 01 00 00 9F 4A 13 01 20 2B 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 8F B9 95 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 6D BF 56 88 6D 4D C8 46 40 B3 4A ED CC 98 [00:06:40]Write to MH i2c: 01 00 00 F9 0B 04 [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: 01 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: 01 07 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 67 0E 80 [00:06:40]RasterBufferAndPrint [00:06:40]line [00:06:40]line [00:06:40]line [00:06:40]line [00:06:40]line [00:06:40]written 0, free lines is 3702 [00:06:40]MH_Cut [00:06:40]Write to MH i2c: D1 01 00 00 0C 01 DE [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 01 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 01 00 00 0C 00 DD [00:06:40]Write to MH i2c: 01 00 00 01 0C 0D [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 1F 77 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 39 36 35 33 38 39 10 04 04 00 C1 7B 00 00 F4 03 04 00 9E 65 95 66 B6 04 01 00 00 26 68 9F 20 30 6B F5 C0 [00:06:40]CommunicateWithHost err = 0 [00:06:40]CheckOFDResponse [00:06:40]1017 (14) - 77093643461234 [00:06:40]1041 (16) - 0000000000965389 [00:06:40]1040 (4) - 31681 [00:06:40]1012 (4) - 15.07.2024 18:08 [00:06:40]1206 (1) - 0 [00:06:40]OFD Sender: Remove packet 31681 [00:06:40]ProducePacketName [00:06:40]name=ofd_packets/00031681 [00:06:40]NVStorageDeleteData [00:06:40]*** Cut start [00:06:40]*** Partial cut [00:06:40]*** CUTSNS_PIN = 1 [00:06:40]*** CUTSNS_PIN = 0 [00:06:40]OFD Sender: No OFD packet to send [00:06:40]*** Brake cut motor [00:06:41]Read from MH i2c: 01 [00:06:41]MH_I2C_Read... [00:06:41]*** Stop cut motor [00:06:41]*** Cut end [00:06:41]Read from MH i2c: 01 07 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [00:06:41]process_action open_shift done [00:06:41]requested_data is exist [00:06:41]produce_requested_data [00:06:41]requested_item fd.num is exist - process it [00:06:41]SAM_PROTO_GetFieldsCounters [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 00 00 [00:06:41]Write to MH i2c: E2 08 00 02 0C 80 13 00 00 00 00 00 00 8A [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 02 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [00:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetFieldsCounters done [00:06:41]requested_item shift.num is exist - process it [00:06:41]requested_item shift.opened is exist - process it [00:06:41]req_shift_opened [00:06:41]FM_GetShiftState [00:06:41]SAM_PROTO_GetShiftState [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 01 00 [00:06:41]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DB [00:06:41]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetShiftState done [00:06:41]FM_GetShiftState done [00:06:41]req_shift_opened done [00:06:41]requested_item shift.open_date is exist - process it [00:06:41]req_shift_open_date [00:06:41]req_shift_open_date done [00:06:41]produce_requested_data done [00:06:41]produce_requested_data return {"fd.num":31681,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [00:06:41]process_action_free open_shift [00:06:41]json_value_free [00:06:41]json_value_free done [00:06:41]process_json_proto returns [00:06:41]Send response to host [00:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31681,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [00:06:41]free response buf [00:06:41]execute_script done [00:06:41]execute_script returns [00:06:41]free content buf [00:06:41]Sock 9.Close socket [00:06:41]Sock 9.Thread stoped [00:06:41]accept exits with 7 [00:06:41]New connection [00:06:41]New thread 3066965348 created [00:06:41]Thread 3066821988 joined [00:06:41]Waiting for new connection... [00:06:41] Sock 7.Parse request [00:06:41]Sock 7.Check first char [00:06:41]Sock 7.First char is OK [00:06:41]request: POST /json_proto HTTP/1.0 [00:06:41]Method: POST [00:06:41]URL: /json_proto [00:06:41]Method is POST - this is cgi request [00:06:41]url: /json_proto [00:06:41]query_string will be loaded in cgi processing [00:06:41]execute_cgi json_proto POST (null) [00:06:41]execute_cgi path=json_proto method=POST [00:06:41]POST find Content-Length [00:06:41]Host: 172.17.39.68:8080 [00:06:41]Content-Length: 331 [00:06:41]Content-Type: application/json [00:06:41] [00:06:41]POST finish read [00:06:41]Found Content-Length = 331 [00:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:41]execute_script... [00:06:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:41]POST & json_proto [00:06:41]process_json_proto [00:06:41]json parsed OK: [00:06:41]protocol is kg_v1.0 [00:06:41]action value=get_value [00:06:41]process_action get_value [00:06:41]cmd_get_value [00:06:41]process_action get_value done [00:06:41]requested_data is exist [00:06:41]produce_requested_data [00:06:41]requested_item fm.sale.total is exist - process it [00:06:41]SAM_PROTO_GetFMData [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 03 00 [00:06:41]Write to MH i2c: E2 08 00 04 0C 80 13 03 00 00 00 00 00 8F [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 04 0C 00 B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 58 [00:06:42]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 DA 78 00 00 69 04 A0 00 6F 04 04 00 D8 78 00 00 B1 04 04 00 38 01 0A 25 70 04 04 00 40 E5 26 22 72 04 04 00 F8 1B E3 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 E1 EE 03 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 E1 D9 53 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 05 0C 80 17 00 00 00 00 00 00 91 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 05 0C 00 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 C2 [00:06:42]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 06 0C 80 17 00 00 00 00 00 00 92 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 06 0C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:06:42]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 07 0C 80 17 00 00 00 00 00 00 93 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 07 0C 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 08 [00:06:43]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 08 0C 80 17 00 00 00 00 00 00 94 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 D4 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 D4 00 08 0C 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [00:06:43]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:43]wFMCommunicate OK [00:06:43]SAM_PROTO_GetFMData done [00:06:43]requested_item fm.sale_refund.total is exist - process it [00:06:43]requested_item fm.buy.total is exist - process it [00:06:43]requested_item shift.sale.total is exist - process it [00:06:43]SAM_PROTO_GetShiftData [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 13 02 00 [00:06:43]Write to MH i2c: E2 08 00 09 0C 80 13 02 00 00 00 00 00 93 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 09 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 06 [00:06:44]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 0A 0C 80 17 00 00 00 00 00 00 96 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 0A 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 9E [00:06:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 0B 0C 80 17 00 00 00 00 00 00 97 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 0B 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 69 [00:06:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 0C 0C 80 17 00 00 00 00 00 00 98 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 0C 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 0A [00:06:45]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 0D 0C 80 17 00 00 00 00 00 00 99 [00:06:45]OFD Sender: No OFD packet to send [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 BD 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 BD 00 0D 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [00:06:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:46]wFMCommunicate OK [00:06:46]SAM_PROTO_GetShiftData done [00:06:46]requested_item shift.sale.total_cash is exist - process it [00:06:46]requested_item shift.sale_refund.total is exist - process it [00:06:46]requested_item shift.sale_refund.total_cash is exist - process it [00:06:46]requested_item shift.buy.total is exist - process it [00:06:46]requested_item shift.buy.total_cash is exist - process it [00:06:46]produce_requested_data done [00:06:46]produce_requested_data return {"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:46]process_action_free get_value [00:06:46]json_value_free [00:06:46]json_value_free done [00:06:46]process_json_proto returns [00:06:46]Send response to host [00:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6214126.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:46]free response buf [00:06:46]execute_script done [00:06:46]execute_script returns [00:06:46]free content buf [00:06:46]Sock 7.Close socket [00:06:46]Sock 7.Thread stoped [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:35]accept exits with 9 [00:09:35]New connection [00:09:35]New thread 3066821988 created [00:09:35]Thread 3066965348 joined [00:09:35]Waiting for new connection... [00:09:35] Sock 9.Parse request [00:09:35]Sock 9.Check first char [00:09:35]Sock 9.First char is OK [00:09:35]request: POST /json_proto HTTP/1.0 [00:09:35]Method: POST [00:09:35]URL: /json_proto [00:09:35]Method is POST - this is cgi request [00:09:35]url: /json_proto [00:09:35]query_string will be loaded in cgi processing [00:09:35]execute_cgi json_proto POST (null) [00:09:35]execute_cgi path=json_proto method=POST [00:09:35]POST find Content-Length [00:09:35]Host: 172.17.39.68:8080 [00:09:35]Content-Length: 632 [00:09:35]Content-Type: application/json [00:09:35] [00:09:35]POST finish read [00:09:35]Found Content-Length = 632 [00:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214263", "tax_sys" : 0, "items" : [ { "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:35]execute_script... [00:09: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)214263", "tax_sys" : 0, "items" : [ { "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:35]POST & json_proto [00:09:35]process_json_proto [00:09:35]json parsed OK: [00:09:35]protocol is kg_v1.0 [00:09:35]action value=close_receipt [00:09:35]process_action close_receipt [00:09:35]cmd_close_receipt [00:09:35]MH_GetDate [00:09:35]Write to MH i2c: F0 00 00 0E 0C 09 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: F0 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: F0 09 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: F0 09 00 0E 0C 00 41 BA 95 66 D6 48 95 66 21 [00:09:35]GetLastDocTimeStamp 1721088399 [00:09:35]current date 1721088577 [00:09:35]FM_GetShiftState [00:09:35]SAM_PROTO_GetShiftState [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 13 01 00 [00:09:35]Write to MH i2c: E2 08 00 0F 0C 80 13 01 00 00 00 00 00 98 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:35]Read from MH i2c: E2 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 0E 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 0E 00 0F 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 E7 [00:09:35]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:09:35]wFMCommunicate OK [00:09:35]SAM_PROTO_GetShiftState done [00:09:35]FM_GetShiftState done [00:09:35]opened in 1721088399 [00:09:35]opened+sec_in_day 1721174799 [00:09:35]quantity*price = 27100 [00:09:35]sum+1 = 27101 [00:09:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 271.00 НСП 1% : 2.40 НДС 12% : 28.78 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 1 16.07.2024 00:09 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31682 ФПД: 14317281504584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T000937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31682&fm=14317281504584&tin=02508201610067®Number=0000000000098025&sum=27100 0 [00:09:36]StoreToDocumentArchive [00:09:36]shift 371 fd 31682 [00:09:36]save to /storage/0371/doc_00031682 [00:09:36]save last doc name /storage/0371/doc_00031682 to /storage/kkm_last_doc_name [00:09:36]save OK [00:09:36]Clear old archive folders... [00:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=288 [00:09:36]tlvbuf is 014EE290 [00:09:36]SAM_PROTO_ClearQueue [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 09 00 00 [00:09:36]Write to MH i2c: E2 08 00 1C 0C 80 09 00 00 00 00 00 00 9A [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [00:09:36]RAPDU: 90 00 [00:09:36]wFMCommunicate OK [00:09:36]SAM_PROTO_ClearQueue done [00:09:36]KKMCreateOFDPacket [00:09:36]OFDProtocolAddRootSTLVToBuf [00:09:36]FM_MakeSignedData [00:09:36]FM_MakeSignedData [00:09:36]SAM_PROTO_SignData [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 0D 01 02 [00:09:36]Write to MH i2c: E2 08 00 1D 0C 80 0D 01 02 00 00 00 00 A2 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [00:09:36]RAPDU: 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=255 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 BA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [00:09:36]Write to MH i2c: E2 02 01 1E 0C 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 BA 95 66 0E 04 04 00 73 01 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 93 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [00:09:36]RAPDU: 90 00 [00:09:36]wFMCommunicate OK [00:09:36]wFMCommunicate request_size=47 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 0D 02 02 2A 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C2 7B 00 00 35 04 06 00 0D 05 80 7A 6D 48 [00:09:36]Write to MH i2c: E2 32 00 1F 0C 80 0D 02 02 2A 00 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C2 7B 00 00 35 04 06 00 0D 05 80 7A 6D 48 00 00 6A [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [00:09:37]RAPDU: 90 00 [00:09:37]wFMCommunicate OK [00:09:37]wFMCommunicate request_size=4 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 0D 03 02 [00:09:37]Write to MH i2c: E2 08 00 20 0C 80 0D 03 02 00 00 00 00 A7 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 0B 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 0B 00 20 0C 00 9B 46 9E D5 83 3B 71 21 90 00 4C [00:09:37]RAPDU: 9B 46 9E D5 83 3B 71 21 90 00 [00:09:37]wFMCommunicate OK [00:09:37]SAM_PROTO_SignData done [00:09:37]FM_MakeSignedData done [00:09:37]CreateOFDProtocolMessage [00:09:37]wFMCommunicate request_size=4 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 11 00 00 [00:09:37]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:37]Read from MH i2c: E2 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 17 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 02 [00:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:09:37]wFMCommunicate OK [00:09:37]CreateOFDProtocolMessage done [00:09:37]OFDSenderStorePacket 31682 [00:09:37]StoreOFDPacket docnum=31682 [00:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 34 01 00 00 5C CF 2C 01 9B B0 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 BA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C2 7B 00 00 35 04 06 00 0D 05 80 7A 6D 48 9B 46 9E D5 83 3B 71 21 [00:09:37]CheckFolder [00:09:37]dirname=/storage/ofd_packets [00:09:37]CheckFolder done [00:09:37]ProducePacketName [00:09:37]name=ofd_packets/00031682 [00:09:37]NVStorageSaveData ofd_packets/00031682 [00:09:37]File name is /storage/ofd_packets/00031682 [00:09:37]Write 338 bytes [00:09:37]NVStorageSaveData done [00:09:37]OFDSenderStorePacket done [00:09:37]KKMCreateOFDPacket done [00:09:37]NVStorageSaveData kkm_last_timestamp [00:09:37]File name is /storage/kkm_last_timestamp [00:09:37]Write 4 bytes [00:09:37]NVStorageSaveData done [00:09:37]ExternCall_PrintAddStr [00:09:37]wPrintStart [00:09:37]Write to MH i2c: 01 00 00 22 0C 2E [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 07 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 FF 0F 43 [00:09:37]RasterBufferAndPrint [00:09:37]line Счет N : (3)214263 [00:09:37]line ИНН: 02508201610067 [00:09:37]line Контрольно-Кассовый Чек [00:09:37]line ПРОДАЖА [00:09:37]line Товар: 6957531032045 [00:09:37]line Кабель hoco rapid charging X1 type-C 1м [00:09:37]line 1.000 * 271.00 [00:09:37]line = 271.00 [00:09:37]line НДС 12% НСП 1% [00:09:37]line > о реализуемом товаре [00:09:37]line ИТОГО: 271.00 [00:09:37]line НСП 1% : 2.40 [00:09:37]line НДС 12% : 28.78 [00:09:37]line Наличными: 271.00 [00:09:37]line Безнал.: 0.00 [00:09:37]line Место: АЗС № 140 "Партнер Нефть" [00:09:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:09:37]line СНО: Общий режим [00:09:37]line Чек 1 16.07.2024 00:09 [00:09:37]line Смена: 371 ФФД: 1.0 [00:09:37]line ЗНМ: 0300000189 [00:09:37]line РНМ: 0000000000098025 [00:09:37]line Версия ККМ: 001 [00:09:37]line ФМ: 0000000000965389 [00:09:37]line ФД: 31682 [00:09:37]line ФПД: 14317281504584 [00:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T000937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31682&fm=14317281504584&tin=02508201610067®Number=0000000000098025&sum=27100 [00:09:37]line 0 [00:09:37]OFD Sender: Processing packet 31682 [packets to send 6, broken 5] [00:09:37]ProducePacketName [00:09:37]name=ofd_packets/00031682 [00:09:37]OFD Sender: To server: pG, [00:09:37]CommunicateWithHost lk.salyk.kg:30040 [00:09:37]ConnectInit lk.salyk.kg [00:09:37]written 0, free lines is 4095 [00:09:37]Connected sock=10 [00:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 34 01 00 00 5C CF 2C 01 9B B0 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 BA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C2 7B 00 00 35 04 06 00 0D 05 80 7A 6D 48 9B 46 9E D5 83 3B 71 21 [00:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 4C 47 47 00 24 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C2 7B 00 00 F4 03 04 00 4F 66 95 66 B6 04 01 00 00 0D 86 2A C3 FB 34 82 87 [00:09:37]CommunicateWithHost err = 0 [00:09:37]CheckOFDResponse [00:09:37]1017 (14) - 77093643461234 [00:09:37]1041 (16) - 0000000000965389 [00:09:37]1040 (4) - 31682 [00:09:37]1012 (4) - 15.07.2024 18:11 [00:09:37]1206 (1) - 0 [00:09:37]OFD Sender: Remove packet 31682 [00:09:37]ProducePacketName [00:09:37]name=ofd_packets/00031682 [00:09:37]NVStorageDeleteData [00:09:37]Write to MH i2c: 01 00 00 4B 0C 57 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 07 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 DD 0C 47 [00:09:37]RasterBufferAndPrint [00:09:37]line [00:09:37]line [00:09:37]line [00:09:37]line [00:09:37]line [00:09:37]written 0, free lines is 3299 [00:09:37]MH_Cut [00:09:37]Write to MH i2c: D1 01 00 52 0C 01 30 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: D1 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: D1 01 00 [00:09:37]MH_I2C_Read... [00:09:37]Read from MH i2c: D1 01 00 52 0C 00 2F [00:09:37]Write to MH i2c: 01 00 00 53 0C 5F [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:38]OFD Sender: No OFD packet to send [00:09:38]*** Cut start [00:09:38]*** Partial cut [00:09:38]*** CUTSNS_PIN = 1 [00:09:38]*** CUTSNS_PIN = 0 [00:09:38]*** Brake cut motor [00:09:39]Read from MH i2c: 01 [00:09:39]MH_I2C_Read... [00:09:39]*** Stop cut motor [00:09:39]*** Cut end [00:09:39]Read from MH i2c: 01 07 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [00:09:39]process_action close_receipt done [00:09:39]requested_data is exist [00:09:39]produce_requested_data [00:09:39]requested_item fm.sn is exist - process it [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 11 00 00 [00:09:39]Write to MH i2c: E2 08 00 54 0C 80 11 00 00 00 00 00 00 DA [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 17 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 17 00 54 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 35 [00:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:09:39]wFMCommunicate OK [00:09:39]requested_item fd.num is exist - process it [00:09:39]SAM_PROTO_GetFieldsCounters [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 13 00 00 [00:09:39]Write to MH i2c: E2 08 00 55 0C 80 13 00 00 00 00 00 00 DD [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 62 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 62 00 55 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:09:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:39]wFMCommunicate OK [00:09:39]SAM_PROTO_GetFieldsCounters done [00:09:39]requested_item shift.num is exist - process it [00:09:39]requested_item shift.opened is exist - process it [00:09:39]req_shift_opened [00:09:39]FM_GetShiftState [00:09:39]SAM_PROTO_GetShiftState [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 13 01 00 [00:09:39]Write to MH i2c: E2 08 00 56 0C 80 13 01 00 00 00 00 00 DF [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 0E 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 0E 00 56 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 2E [00:09:39]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:09:39]wFMCommunicate OK [00:09:39]SAM_PROTO_GetShiftState done [00:09:39]FM_GetShiftState done [00:09:39]req_shift_opened done [00:09:39]requested_item shift.open_date is exist - process it [00:09:39]req_shift_open_date [00:09:39]req_shift_open_date done [00:09:39]produce_requested_data done [00:09:39]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31682,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [00:09:39]process_action_free close_receipt [00:09:39]json_value_free [00:09:39]json_value_free done [00:09:39]process_json_proto returns [00:09:39]Send response to host [00:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31682,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [00:09:39]free response buf [00:09:39]execute_script done [00:09:39]execute_script returns [00:09:39]free content buf [00:09:39]Sock 9.Close socket [00:09:39]Sock 9.Thread stoped [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]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:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:37]accept exits with 7 [00:50:37]New connection [00:50:37]New thread 3066965348 created [00:50:37]Thread 3066821988 joined [00:50:37]Waiting for new connection... [00:50:37] Sock 7.Parse request [00:50:37]Sock 7.Check first char [00:50:37]Sock 7.First char is OK [00:50:37]request: POST /json_proto HTTP/1.0 [00:50:37]Method: POST [00:50:37]URL: /json_proto [00:50:37]Method is POST - this is cgi request [00:50:37]url: /json_proto [00:50:37]query_string will be loaded in cgi processing [00:50:37]execute_cgi json_proto POST (null) [00:50:37]execute_cgi path=json_proto method=POST [00:50:37]POST find Content-Length [00:50:37]Host: 172.17.39.68:8080 [00:50:37]Content-Length: 623 [00:50:37]Content-Type: application/json [00:50:37] [00:50:37]POST finish read [00:50:37]Found Content-Length = 623 [00:50:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214264", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:37]execute_script... [00:50: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)214264", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:37]POST & json_proto [00:50:37]process_json_proto [00:50:37]json parsed OK: [00:50:37]protocol is kg_v1.0 [00:50:37]action value=close_receipt [00:50:37]process_action close_receipt [00:50:37]cmd_close_receipt [00:50:37]MH_GetDate [00:50:37]Write to MH i2c: F0 00 00 57 0C 52 [00:50:37]Write i2c OK [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: F0 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: F0 09 00 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: F0 09 00 57 0C 00 DF C3 95 66 D6 48 95 66 11 [00:50:37]GetLastDocTimeStamp 1721088577 [00:50:37]current date 1721091039 [00:50:37]FM_GetShiftState [00:50:37]SAM_PROTO_GetShiftState [00:50:37]wFMCommunicate request_size=4 [00:50:37]MH_SAM_APDU [00:50:37]CAPDU: 80 13 01 00 [00:50:37]Write to MH i2c: E2 08 00 58 0C 80 13 01 00 00 00 00 00 E1 [00:50:37]Write i2c OK [00:50:37]MH_I2C_Read... [00:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:37]Read from MH i2c: E2 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: E2 0E 00 [00:50:37]MH_I2C_Read... [00:50:37]Read from MH i2c: E2 0E 00 58 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 30 [00:50:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:50:37]wFMCommunicate OK [00:50:37]SAM_PROTO_GetShiftState done [00:50:37]FM_GetShiftState done [00:50:37]opened in 1721088399 [00:50:37]opened+sec_in_day 1721174799 [00:50:37]quantity*price = 42500 [00:50:37]sum+1 = 42501 [00:50:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 2 16.07.2024 00:50 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31683 ФПД: 203298747193649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005039&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31683&fm=203298747193649&tin=02508201610067®Number=0000000000098025&sum=42500 0 [00:50:38]StoreToDocumentArchive [00:50:38]shift 371 fd 31683 [00:50:38]save to /storage/0371/doc_00031683 [00:50:38]save last doc name /storage/0371/doc_00031683 to /storage/kkm_last_doc_name [00:50:38]save OK [00:50:38]Clear old archive folders... [00:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=267 [00:50:38]tlvbuf is 014EDDA0 [00:50:38]SAM_PROTO_ClearQueue [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 09 00 00 [00:50:38]Write to MH i2c: E2 08 00 65 0C 80 09 00 00 00 00 00 00 E3 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [00:50:38]RAPDU: 90 00 [00:50:38]wFMCommunicate OK [00:50:38]SAM_PROTO_ClearQueue done [00:50:38]KKMCreateOFDPacket [00:50:38]OFDProtocolAddRootSTLVToBuf [00:50:38]FM_MakeSignedData [00:50:38]FM_MakeSignedData [00:50:38]SAM_PROTO_SignData [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 0D 01 02 [00:50:38]Write to MH i2c: E2 08 00 66 0C 80 0D 01 02 00 00 00 00 EB [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [00:50:38]RAPDU: 90 00 [00:50:38]wFMCommunicate OK [00:50:38]wFMCommunicate request_size=255 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 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 DF C3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 [00:50:38]Write to MH i2c: E2 02 01 67 0C 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 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 DF C3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 00 00 E2 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [00:50:38]RAPDU: 90 00 [00:50:38]wFMCommunicate OK [00:50:38]wFMCommunicate request_size=26 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 0D 02 02 15 33 38 39 10 04 04 00 C3 7B 00 00 35 04 06 00 B8 E6 2D 9C 19 31 [00:50:38]Write to MH i2c: E2 1D 00 68 0C 80 0D 02 02 15 00 33 38 39 10 04 04 00 C3 7B 00 00 35 04 06 00 B8 E6 2D 9C 19 31 00 00 02 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [00:50:38]RAPDU: 90 00 [00:50:38]wFMCommunicate OK [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 0D 03 02 [00:50:38]Write to MH i2c: E2 08 00 69 0C 80 0D 03 02 00 00 00 00 F0 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 0B 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 0B 00 69 0C 00 1E F6 50 B0 D9 25 B4 08 90 00 BF [00:50:38]RAPDU: 1E F6 50 B0 D9 25 B4 08 90 00 [00:50:38]wFMCommunicate OK [00:50:38]SAM_PROTO_SignData done [00:50:38]FM_MakeSignedData done [00:50:38]CreateOFDProtocolMessage [00:50:38]wFMCommunicate request_size=4 [00:50:38]MH_SAM_APDU [00:50:38]CAPDU: 80 11 00 00 [00:50:38]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:38]Read from MH i2c: E2 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 17 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4B [00:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:50:38]wFMCommunicate OK [00:50:38]CreateOFDProtocolMessage done [00:50:38]OFDSenderStorePacket 31683 [00:50:38]StoreOFDPacket docnum=31683 [00:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1F 01 00 00 D7 3F 17 01 DB D2 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 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 DF C3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C3 7B 00 00 35 04 06 00 B8 E6 2D 9C 19 31 1E F6 50 B0 D9 25 B4 08 [00:50:38]CheckFolder [00:50:38]dirname=/storage/ofd_packets [00:50:38]CheckFolder done [00:50:38]ProducePacketName [00:50:38]name=ofd_packets/00031683 [00:50:38]NVStorageSaveData ofd_packets/00031683 [00:50:38]File name is /storage/ofd_packets/00031683 [00:50:38]Write 317 bytes [00:50:38]NVStorageSaveData done [00:50:38]OFDSenderStorePacket done [00:50:38]KKMCreateOFDPacket done [00:50:38]NVStorageSaveData kkm_last_timestamp [00:50:38]File name is /storage/kkm_last_timestamp [00:50:38]Write 4 bytes [00:50:38]NVStorageSaveData done [00:50:38]ExternCall_PrintAddStr [00:50:38]wPrintStart [00:50:38]Write to MH i2c: 01 00 00 6B 0C 77 [00:50:38]Write i2c OK [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: 01 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: 01 07 00 [00:50:38]MH_I2C_Read... [00:50:38]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [00:50:38]RasterBufferAndPrint [00:50:38]line Счет N : (3)214264 [00:50:38]line ИНН: 02508201610067 [00:50:38]line Контрольно-Кассовый Чек [00:50:38]line ПРОДАЖА [00:50:38]line Товар: 4700003150486 [00:50:38]line Водка Ороон 0,5 [00:50:38]line 1.000 * 425.00 [00:50:38]line = 425.00 [00:50:38]line НДС 12% НСП 1% [00:50:38]line > о реализуемом товаре [00:50:38]line ИТОГО: 425.00 [00:50:38]line НСП 1% : 3.76 [00:50:38]line НДС 12% : 45.13 [00:50:38]line Наличными: 425.00 [00:50:38]line Безнал.: 0.00 [00:50:38]line Место: АЗС № 140 "Партнер Нефть" [00:50:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:50:38]line СНО: Общий режим [00:50:38]line Чек 2 16.07.2024 00:50 [00:50:38]line Смена: 371 ФФД: 1.0 [00:50:38]line ЗНМ: 0300000189 [00:50:38]line РНМ: 0000000000098025 [00:50:38]line Версия ККМ: 001 [00:50:38]line ФМ: 0000000000965389 [00:50:38]line ФД: 31683 [00:50:38]line ФПД: 203298747193649 [00:50:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005039&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31683&fm=203298747193649&tin=02508201610067®Number=0000000000098025&sum=42500 [00:50:39]line 0 [00:50:39]OFD Sender: Processing packet 31683 [packets to send 6, broken 5] [00:50:39]ProducePacketName [00:50:39]name=ofd_packets/00031683 [00:50:39]OFD Sender: To server: pG, [00:50:39]CommunicateWithHost lk.salyk.kg:30040 [00:50:39]ConnectInit lk.salyk.kg [00:50:39]written 0, free lines is 4095 [00:50:39]Connected sock=10 [00:50:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1F 01 00 00 D7 3F 17 01 DB D2 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 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 DF C3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C3 7B 00 00 35 04 06 00 B8 E6 2D 9C 19 31 1E F6 50 B0 D9 25 B4 08 [00:50:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BE 34 47 00 AB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C3 7B 00 00 F4 03 04 00 ED 6F 95 66 B6 04 01 00 00 46 87 33 AF C1 F2 21 0C [00:50:39]CommunicateWithHost err = 0 [00:50:39]CheckOFDResponse [00:50:39]1017 (14) - 77093643461234 [00:50:39]1041 (16) - 0000000000965389 [00:50:39]1040 (4) - 31683 [00:50:39]1012 (4) - 15.07.2024 18:52 [00:50:39]1206 (1) - 0 [00:50:39]OFD Sender: Remove packet 31683 [00:50:39]ProducePacketName [00:50:39]name=ofd_packets/00031683 [00:50:39]NVStorageDeleteData [00:50:39]Write to MH i2c: 01 00 00 93 0C 9F [00:50:39]Write i2c OK [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: 01 [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: 01 07 00 [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 13 0D C6 [00:50:39]RasterBufferAndPrint [00:50:39]line [00:50:39]line [00:50:39]line [00:50:39]line [00:50:39]line [00:50:39]written 0, free lines is 3354 [00:50:39]MH_Cut [00:50:39]Write to MH i2c: D1 01 00 9A 0C 01 78 [00:50:39]Write i2c OK [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: D1 [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: D1 01 00 [00:50:39]MH_I2C_Read... [00:50:39]Read from MH i2c: D1 01 00 9A 0C 00 77 [00:50:39]Write to MH i2c: 01 00 00 9B 0C A7 [00:50:39]Write i2c OK [00:50:39]MH_I2C_Read... [00:50:40]OFD Sender: No OFD packet to send [00:50:40]*** Cut start [00:50:40]*** Partial cut [00:50:40]*** CUTSNS_PIN = 1 [00:50:40]*** CUTSNS_PIN = 0 [00:50:40]*** Brake cut motor [00:50:41]Read from MH i2c: 01 [00:50:41]MH_I2C_Read... [00:50:41]*** Stop cut motor [00:50:41]*** Cut end [00:50:41]Read from MH i2c: 01 07 00 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [00:50:41]process_action close_receipt done [00:50:41]requested_data is exist [00:50:41]produce_requested_data [00:50:41]requested_item fm.sn is exist - process it [00:50:41]wFMCommunicate request_size=4 [00:50:41]MH_SAM_APDU [00:50:41]CAPDU: 80 11 00 00 [00:50:41]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [00:50:41]Write i2c OK [00:50:41]MH_I2C_Read... [00:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:41]Read from MH i2c: E2 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 17 00 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7D [00:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:50:41]wFMCommunicate OK [00:50:41]requested_item fd.num is exist - process it [00:50:41]SAM_PROTO_GetFieldsCounters [00:50:41]wFMCommunicate request_size=4 [00:50:41]MH_SAM_APDU [00:50:41]CAPDU: 80 13 00 00 [00:50:41]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [00:50:41]Write i2c OK [00:50:41]MH_I2C_Read... [00:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:41]Read from MH i2c: E2 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 62 00 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 62 00 9D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [00:50:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:41]wFMCommunicate OK [00:50:41]SAM_PROTO_GetFieldsCounters done [00:50:41]requested_item shift.num is exist - process it [00:50:41]requested_item shift.opened is exist - process it [00:50:41]req_shift_opened [00:50:41]FM_GetShiftState [00:50:41]SAM_PROTO_GetShiftState [00:50:41]wFMCommunicate request_size=4 [00:50:41]MH_SAM_APDU [00:50:41]CAPDU: 80 13 01 00 [00:50:41]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [00:50:41]Write i2c OK [00:50:41]MH_I2C_Read... [00:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:41]Read from MH i2c: E2 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 0E 00 [00:50:41]MH_I2C_Read... [00:50:41]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 76 [00:50:41]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:50:41]wFMCommunicate OK [00:50:41]SAM_PROTO_GetShiftState done [00:50:41]FM_GetShiftState done [00:50:41]req_shift_opened done [00:50:41]requested_item shift.open_date is exist - process it [00:50:41]req_shift_open_date [00:50:41]req_shift_open_date done [00:50:41]produce_requested_data done [00:50:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31683,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [00:50:41]process_action_free close_receipt [00:50:41]json_value_free [00:50:41]json_value_free done [00:50:41]process_json_proto returns [00:50:41]Send response to host [00:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31683,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [00:50:41]free response buf [00:50:41]execute_script done [00:50:41]execute_script returns [00:50:41]free content buf [00:50:41]Sock 7.Close socket [00:50:41]Sock 7.Thread stoped [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:34]accept exits with 9 [00:56:34]New connection [00:56:34]New thread 3066821988 created [00:56:34]Thread 3066965348 joined [00:56:34]Waiting for new connection... [00:56:34] Sock 9.Parse request [00:56:34]Sock 9.Check first char [00:56:34]Sock 9.First char is OK [00:56:34]request: POST /json_proto HTTP/1.0 [00:56:34]Method: POST [00:56:34]URL: /json_proto [00:56:34]Method is POST - this is cgi request [00:56:34]url: /json_proto [00:56:34]query_string will be loaded in cgi processing [00:56:34]execute_cgi json_proto POST (null) [00:56:34]execute_cgi path=json_proto method=POST [00:56:34]POST find Content-Length [00:56:34]Host: 172.17.39.68:8080 [00:56:34]Content-Length: 937 [00:56:34]Content-Type: application/json [00:56:34] [00:56:34]POST finish read [00:56:34]Found Content-Length = 937 [00:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214265", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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 }]} ,{ "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:34]execute_script... [00:56: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)214265", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \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 }]} ,{ "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:34]POST & json_proto [00:56:34]process_json_proto [00:56:34]json parsed OK: [00:56:34]protocol is kg_v1.0 [00:56:34]action value=close_receipt [00:56:34]process_action close_receipt [00:56:34]cmd_close_receipt [00:56:34]MH_GetDate [00:56:34]Write to MH i2c: F0 00 00 9F 0C 9A [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 09 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 09 00 9F 0C 00 44 C5 95 66 D6 48 95 66 C0 [00:56:34]GetLastDocTimeStamp 1721091039 [00:56:34]current date 1721091396 [00:56:34]FM_GetShiftState [00:56:34]SAM_PROTO_GetShiftState [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 13 01 00 [00:56:34]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0E 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 78 [00:56:34]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_GetShiftState done [00:56:34]FM_GetShiftState done [00:56:34]opened in 1721088399 [00:56:34]opened+sec_in_day 1721174799 [00:56:34]quantity*price = 9500 [00:56:34]sum+1 = 9501 [00:56:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 3 16.07.2024 00:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31684 ФПД: 154229509608814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005636&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31684&fm=154229509608814&tin=02508201610067®Number=0000000000098025&sum=19000 0 [00:56:35]StoreToDocumentArchive [00:56:35]shift 371 fd 31684 [00:56:35]save to /storage/0371/doc_00031684 [00:56:35]save last doc name /storage/0371/doc_00031684 to /storage/kkm_last_doc_name [00:56:35]save OK [00:56:35]Clear old archive folders... [00:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=419 [00:56:35]tlvbuf is 0148AE50 [00:56:35]SAM_PROTO_ClearQueue [00:56:35]wFMCommunicate request_size=4 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 09 00 00 [00:56:35]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:35]Read from MH i2c: E2 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [00:56:35]RAPDU: 90 00 [00:56:35]wFMCommunicate OK [00:56:35]SAM_PROTO_ClearQueue done [00:56:35]KKMCreateOFDPacket [00:56:35]OFDProtocolAddRootSTLVToBuf [00:56:35]FM_MakeSignedData [00:56:35]FM_MakeSignedData [00:56:35]SAM_PROTO_SignData [00:56:35]wFMCommunicate request_size=4 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 0D 01 02 [00:56:35]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:35]Read from MH i2c: E2 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [00:56:35]RAPDU: 90 00 [00:56:35]wFMCommunicate OK [00:56:35]wFMCommunicate request_size=255 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 [00:56:35]Write to MH i2c: E2 02 01 AF 0C 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 00 00 08 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [00:56:36]RAPDU: 90 00 [00:56:36]wFMCommunicate OK [00:56:36]wFMCommunicate request_size=178 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 0D 02 02 AD 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 03 00 00 00 F4 03 04 00 44 C5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C4 7B 00 00 35 04 06 00 8C 45 5B 22 55 6E [00:56:36]Write to MH i2c: E2 B5 00 B0 0C 80 0D 02 02 AD 00 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 03 00 00 00 F4 03 04 00 44 C5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C4 7B 00 00 35 04 06 00 8C 45 5B 22 55 6E 00 00 FD [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [00:56:36]RAPDU: 90 00 [00:56:36]wFMCommunicate OK [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 0D 03 02 [00:56:36]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0B 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0B 00 B1 0C 00 11 DE 91 8E 89 4C C0 8C 90 00 68 [00:56:36]RAPDU: 11 DE 91 8E 89 4C C0 8C 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_SignData done [00:56:36]FM_MakeSignedData done [00:56:36]CreateOFDProtocolMessage [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 11 00 00 [00:56:36]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 93 [00:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:56:36]wFMCommunicate OK [00:56:36]CreateOFDProtocolMessage done [00:56:36]OFDSenderStorePacket 31684 [00:56:36]StoreOFDPacket docnum=31684 [00:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 B7 01 00 00 21 DF AF 01 96 AF 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 03 00 00 00 F4 03 04 00 44 C5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C4 7B 00 00 35 04 06 00 8C 45 5B 22 55 6E 11 DE 91 8E 89 4C C0 8C [00:56:36]CheckFolder [00:56:36]dirname=/storage/ofd_packets [00:56:36]CheckFolder done [00:56:36]ProducePacketName [00:56:36]name=ofd_packets/00031684 [00:56:36]NVStorageSaveData ofd_packets/00031684 [00:56:36]File name is /storage/ofd_packets/00031684 [00:56:36]Write 469 bytes [00:56:36]NVStorageSaveData done [00:56:36]OFDSenderStorePacket done [00:56:36]KKMCreateOFDPacket done [00:56:36]NVStorageSaveData kkm_last_timestamp [00:56:36]File name is /storage/kkm_last_timestamp [00:56:36]Write 4 bytes [00:56:36]NVStorageSaveData done [00:56:36]ExternCall_PrintAddStr [00:56:36]wPrintStart [00:56:36]Write to MH i2c: 01 00 00 B3 0C BF [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 [00:56:36]MH_I2C_Read... [00:56:36]OFD Sender: Processing packet 31684 [packets to send 6, broken 5] [00:56:36]ProducePacketName [00:56:36]name=ofd_packets/00031684 [00:56:36]OFD Sender: To server: pG, [00:56:36]CommunicateWithHost lk.salyk.kg:30040 [00:56:36]ConnectInit lk.salyk.kg [00:56:36]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [00:56:36]RasterBufferAndPrint [00:56:36]line Счет N : (3)214265 [00:56:36]line ИНН: 02508201610067 [00:56:36]line Контрольно-Кассовый Чек [00:56:36]line ПРОДАЖА [00:56:36]line Товар: 4700000480050 [00:56:36]line Напиток Nitro Energy эн green ж/б 0,45л [00:56:36]line 1.000 * 95.00 [00:56:36]line = 95.00 [00:56:36]line НДС 12% НСП 1% [00:56:36]line > о реализуемом товаре [00:56:36]line Товар: 4631150682851 [00:56:36]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [00:56:36]line 1.000 * 95.00 [00:56:36]line = 95.00 [00:56:36]line НДС 12% НСП 1% [00:56:36]line > о реализуемом товаре [00:56:36]line ИТОГО: 190.00 [00:56:36]line НСП 1% : 1.68 [00:56:36]line НДС 12% : 20.18 [00:56:36]line Наличными: 190.00 [00:56:36]line Безнал.: 0.00 [00:56:36]line Место: АЗС № 140 "Партнер Нефть" [00:56:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:56:36]line СНО: Общий режим [00:56:36]line Чек 3 16.07.2024 00:56 [00:56:36]line Смена: 371 ФФД: 1.0 [00:56:36]line ЗНМ: 0300000189 [00:56:36]line РНМ: 0000000000098025 [00:56:36]line Версия ККМ: 001 [00:56:36]line ФМ: 0000000000965389 [00:56:36]line ФД: 31684 [00:56:36]line ФПД: 154229509608814 [00:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005636&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31684&fm=154229509608814&tin=02508201610067®Number=0000000000098025&sum=19000 [00:56:36]line 0 [00:56:36]written 0, free lines is 4095 [00:56:36]Connected sock=10 [00:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 B7 01 00 00 21 DF AF 01 96 AF 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 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 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 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 03 00 00 00 F4 03 04 00 44 C5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C4 7B 00 00 35 04 06 00 8C 45 5B 22 55 6E 11 DE 91 8E 89 4C C0 8C [00:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 48 38 47 00 B8 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C4 7B 00 00 F4 03 04 00 53 71 95 66 B6 04 01 00 00 3B F2 72 36 51 08 F5 17 [00:56:37]CommunicateWithHost err = 0 [00:56:37]CheckOFDResponse [00:56:37]1017 (14) - 77093643461234 [00:56:37]1041 (16) - 0000000000965389 [00:56:37]1040 (4) - 31684 [00:56:37]1012 (4) - 15.07.2024 18:58 [00:56:37]1206 (1) - 0 [00:56:37]OFD Sender: Remove packet 31684 [00:56:37]ProducePacketName [00:56:37]name=ofd_packets/00031684 [00:56:37]NVStorageDeleteData [00:56:37]Write to MH i2c: 01 00 00 E3 0C EF [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 07 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 74 0C 76 [00:56:37]RasterBufferAndPrint [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]written 0, free lines is 3197 [00:56:37]MH_Cut [00:56:37]Write to MH i2c: D1 01 00 EA 0C 01 C8 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 01 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 01 00 EA 0C 00 C7 [00:56:37]Write to MH i2c: 01 00 00 EB 0C F7 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]OFD Sender: No OFD packet to send [00:56:38]*** Cut start [00:56:38]*** Partial cut [00:56:38]*** CUTSNS_PIN = 1 [00:56:38]*** CUTSNS_PIN = 0 [00:56:38]*** Brake cut motor [00:56:38]Read from MH i2c: 01 [00:56:38]MH_I2C_Read... [00:56:38]*** Stop cut motor [00:56:38]*** Cut end [00:56:38]Read from MH i2c: 01 07 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 FF 0F 0C [00:56:38]process_action close_receipt done [00:56:38]requested_data is exist [00:56:38]produce_requested_data [00:56:38]requested_item fm.sn is exist - process it [00:56:38]wFMCommunicate request_size=4 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 11 00 00 [00:56:38]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 17 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 17 00 EC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CD [00:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:56:38]wFMCommunicate OK [00:56:38]requested_item fd.num is exist - process it [00:56:38]SAM_PROTO_GetFieldsCounters [00:56:38]wFMCommunicate request_size=4 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 13 00 00 [00:56:38]Write to MH i2c: E2 08 00 ED 0C 80 13 00 00 00 00 00 00 75 [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 62 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 62 00 ED 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [00:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetFieldsCounters done [00:56:39]requested_item shift.num is exist - process it [00:56:39]requested_item shift.opened is exist - process it [00:56:39]req_shift_opened [00:56:39]FM_GetShiftState [00:56:39]SAM_PROTO_GetShiftState [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 13 01 00 [00:56:39]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C6 [00:56:39]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetShiftState done [00:56:39]FM_GetShiftState done [00:56:39]req_shift_opened done [00:56:39]requested_item shift.open_date is exist - process it [00:56:39]req_shift_open_date [00:56:39]req_shift_open_date done [00:56:39]produce_requested_data done [00:56:39]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31684,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [00:56:39]process_action_free close_receipt [00:56:39]json_value_free [00:56:39]json_value_free done [00:56:39]process_json_proto returns [00:56:39]Send response to host [00:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31684,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [00:56:39]free response buf [00:56:39]execute_script done [00:56:39]execute_script returns [00:56:39]free content buf [00:56:39]Sock 9.Close socket [00:56:39]Sock 9.Thread stoped [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:56]accept exits with 7 [00:59:56]New connection [00:59:56]New thread 3066965348 created [00:59:56]Thread 3066821988 joined [00:59:56]Waiting for new connection... [00:59:56] Sock 7.Parse request [00:59:56]Sock 7.Check first char [00:59:56]Sock 7.First char is OK [00:59:56]request: POST /json_proto HTTP/1.0 [00:59:56]Method: POST [00:59:56]URL: /json_proto [00:59:56]Method is POST - this is cgi request [00:59:56]url: /json_proto [00:59:56]query_string will be loaded in cgi processing [00:59:56]execute_cgi json_proto POST (null) [00:59:56]execute_cgi path=json_proto method=POST [00:59:56]POST find Content-Length [00:59:56]Host: 172.17.39.68:8080 [00:59:56]Content-Length: 628 [00:59:56]Content-Type: application/json [00:59:56] [00:59:56]POST finish read [00:59:56]Found Content-Length = 628 [00:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214266", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [00:59:56]execute_script... [00:59: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)214266", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" ] } } [00:59:56]POST & json_proto [00:59:56]process_json_proto [00:59:56]json parsed OK: [00:59:56]protocol is kg_v1.0 [00:59:56]action value=close_receipt [00:59:56]process_action close_receipt [00:59:56]cmd_close_receipt [00:59:56]MH_GetDate [00:59:56]Write to MH i2c: F0 00 00 EF 0C EA [00:59:56]Write i2c OK [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: F0 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: F0 09 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: F0 09 00 EF 0C 00 0E C6 95 66 D6 48 95 66 DB [00:59:56]GetLastDocTimeStamp 1721091396 [00:59:56]current date 1721091598 [00:59:56]FM_GetShiftState [00:59:56]SAM_PROTO_GetShiftState [00:59:56]wFMCommunicate request_size=4 [00:59:56]MH_SAM_APDU [00:59:56]CAPDU: 80 13 01 00 [00:59:56]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [00:59:56]Write i2c OK [00:59:56]MH_I2C_Read... [00:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:56]Read from MH i2c: E2 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 0E 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C8 [00:59:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [00:59:56]wFMCommunicate OK [00:59:56]SAM_PROTO_GetShiftState done [00:59:56]FM_GetShiftState done [00:59:56]opened in 1721088399 [00:59:56]opened+sec_in_day 1721174799 [00:59:56]quantity*price = 13000 [00:59:56]sum+1 = 13001 [00:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 4 16.07.2024 00:59 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31685 ФПД: 119042582000652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005958&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31685&fm=119042582000652&tin=02508201610067®Number=0000000000098025&sum=13000 0 [00:59:57]StoreToDocumentArchive [00:59:57]shift 371 fd 31685 [00:59:57]save to /storage/0371/doc_00031685 [00:59:57]save last doc name /storage/0371/doc_00031685 to /storage/kkm_last_doc_name [00:59:57]save OK [00:59:57]Clear old archive folders... [00:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:59:57]tlvbuf is 0148B0A0 [00:59:57]SAM_PROTO_ClearQueue [00:59:57]wFMCommunicate request_size=4 [00:59:57]MH_SAM_APDU [00:59:57]CAPDU: 80 09 00 00 [00:59:57]Write to MH i2c: E2 08 00 FD 0C 80 09 00 00 00 00 00 00 7B [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [00:59:57]RAPDU: 90 00 [00:59:57]wFMCommunicate OK [00:59:57]SAM_PROTO_ClearQueue done [00:59:57]KKMCreateOFDPacket [00:59:57]OFDProtocolAddRootSTLVToBuf [00:59:57]FM_MakeSignedData [00:59:57]FM_MakeSignedData [00:59:57]SAM_PROTO_SignData [00:59:57]wFMCommunicate request_size=4 [00:59:57]MH_SAM_APDU [00:59:57]CAPDU: 80 0D 01 02 [00:59:57]Write to MH i2c: E2 08 00 FE 0C 80 0D 01 02 00 00 00 00 83 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [00:59:57]RAPDU: 90 00 [00:59:57]wFMCommunicate OK [00:59:57]wFMCommunicate request_size=255 [00:59:57]MH_SAM_APDU [00:59:57]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 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 04 00 00 00 F4 03 04 00 0E C6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [00:59:57]Write to MH i2c: E2 02 01 FF 0C 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 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 04 00 00 00 F4 03 04 00 0E C6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 E4 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [00:59:57]RAPDU: 90 00 [00:59:57]wFMCommunicate OK [00:59:57]wFMCommunicate request_size=35 [00:59:57]MH_SAM_APDU [00:59:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C5 7B 00 00 35 04 06 00 6C 44 C2 D0 34 0C [00:59:57]Write to MH i2c: E2 26 00 00 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C5 7B 00 00 35 04 06 00 6C 44 C2 D0 34 0C 00 00 44 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]OFD Sender: No OFD packet to send [00:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [00:59:57]RAPDU: 90 00 [00:59:57]wFMCommunicate OK [00:59:57]wFMCommunicate request_size=4 [00:59:57]MH_SAM_APDU [00:59:57]CAPDU: 80 0D 03 02 [00:59:57]Write to MH i2c: E2 08 00 01 0D 80 0D 03 02 00 00 00 00 89 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 0B 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 0B 00 01 0D 00 89 8E 61 CD E8 E8 0E B9 90 00 66 [00:59:57]RAPDU: 89 8E 61 CD E8 E8 0E B9 90 00 [00:59:57]wFMCommunicate OK [00:59:57]SAM_PROTO_SignData done [00:59:57]FM_MakeSignedData done [00:59:57]CreateOFDProtocolMessage [00:59:57]wFMCommunicate request_size=4 [00:59:57]MH_SAM_APDU [00:59:57]CAPDU: 80 11 00 00 [00:59:57]Write to MH i2c: E2 08 00 02 0D 80 11 00 00 00 00 00 00 89 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:57]Read from MH i2c: E2 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 17 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: E2 17 00 02 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E4 [00:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:59:57]wFMCommunicate OK [00:59:57]CreateOFDProtocolMessage done [00:59:57]OFDSenderStorePacket 31685 [00:59:57]StoreOFDPacket docnum=31685 [00:59:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 4F AA 20 01 48 88 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 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 04 00 00 00 F4 03 04 00 0E C6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C5 7B 00 00 35 04 06 00 6C 44 C2 D0 34 0C 89 8E 61 CD E8 E8 0E B9 [00:59:57]CheckFolder [00:59:57]dirname=/storage/ofd_packets [00:59:57]CheckFolder done [00:59:57]ProducePacketName [00:59:57]name=ofd_packets/00031685 [00:59:57]NVStorageSaveData ofd_packets/00031685 [00:59:57]File name is /storage/ofd_packets/00031685 [00:59:57]Write 326 bytes [00:59:57]NVStorageSaveData done [00:59:57]OFDSenderStorePacket done [00:59:57]KKMCreateOFDPacket done [00:59:57]NVStorageSaveData kkm_last_timestamp [00:59:57]File name is /storage/kkm_last_timestamp [00:59:57]Write 4 bytes [00:59:57]NVStorageSaveData done [00:59:57]ExternCall_PrintAddStr [00:59:57]wPrintStart [00:59:57]Write to MH i2c: 01 00 00 03 0D 10 [00:59:57]Write i2c OK [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: 01 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: 01 07 00 [00:59:57]MH_I2C_Read... [00:59:57]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [00:59:57]RasterBufferAndPrint [00:59:57]line Счет N : (3)214266 [00:59:57]line ИНН: 02508201610067 [00:59:57]line Контрольно-Кассовый Чек [00:59:57]line ПРОДАЖА [00:59:57]line Товар: 2000036230011 [00:59:57]line Кофе Латте XL(GABB TRADE) [00:59:57]line 1.000 * 130.00 [00:59:57]line = 130.00 [00:59:57]line НДС 12% НСП 1% [00:59:57]line > о реализуемом товаре [00:59:57]line ИТОГО: 130.00 [00:59:57]line НСП 1% : 1.15 [00:59:57]line НДС 12% : 13.80 [00:59:57]line Наличными: 130.00 [00:59:57]line Безнал.: 0.00 [00:59:57]line Место: АЗС № 140 "Партнер Нефть" [00:59:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:59:57]line СНО: Общий режим [00:59:57]line Чек 4 16.07.2024 00:59 [00:59:57]line Смена: 371 ФФД: 1.0 [00:59:57]line ЗНМ: 0300000189 [00:59:57]line РНМ: 0000000000098025 [00:59:57]line Версия ККМ: 001 [00:59:57]line ФМ: 0000000000965389 [00:59:57]line ФД: 31685 [00:59:57]line ФПД: 119042582000652 [00:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005958&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31685&fm=119042582000652&tin=02508201610067®Number=0000000000098025&sum=13000 [00:59:58]line 0 [00:59:58]OFD Sender: Processing packet 31685 [packets to send 6, broken 5] [00:59:58]ProducePacketName [00:59:58]name=ofd_packets/00031685 [00:59:58]OFD Sender: To server: pG, [00:59:58]CommunicateWithHost lk.salyk.kg:30040 [00:59:58]ConnectInit lk.salyk.kg [00:59:58]written 0, free lines is 4095 [00:59:58]Connected sock=10 [00:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 4F AA 20 01 48 88 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 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 04 00 00 00 F4 03 04 00 0E C6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C5 7B 00 00 35 04 06 00 6C 44 C2 D0 34 0C 89 8E 61 CD E8 E8 0E B9 [00:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 86 81 47 00 FD AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C5 7B 00 00 F4 03 04 00 1C 72 95 66 B6 04 01 00 00 3C A7 32 6B D6 63 E7 F1 [00:59:58]CommunicateWithHost err = 0 [00:59:58]CheckOFDResponse [00:59:58]1017 (14) - 77093643461234 [00:59:58]1041 (16) - 0000000000965389 [00:59:58]1040 (4) - 31685 [00:59:58]1012 (4) - 15.07.2024 19:01 [00:59:58]1206 (1) - 0 [00:59:58]OFD Sender: Remove packet 31685 [00:59:58]ProducePacketName [00:59:58]name=ofd_packets/00031685 [00:59:58]NVStorageDeleteData [00:59:58]Write to MH i2c: 01 00 00 2B 0D 38 [00:59:58]Write i2c OK [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: 01 [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: 01 07 00 [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 00 0D 4C [00:59:58]RasterBufferAndPrint [00:59:58]line [00:59:58]line [00:59:58]line [00:59:58]line [00:59:58]line [00:59:58]written 0, free lines is 3334 [00:59:58]MH_Cut [00:59:58]Write to MH i2c: D1 01 00 32 0D 01 11 [00:59:58]Write i2c OK [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: D1 [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: D1 01 00 [00:59:58]MH_I2C_Read... [00:59:58]Read from MH i2c: D1 01 00 32 0D 00 10 [00:59:58]Write to MH i2c: 01 00 00 33 0D 40 [00:59:58]Write i2c OK [00:59:58]MH_I2C_Read... [00:59:59]OFD Sender: No OFD packet to send [00:59:59]*** Cut start [00:59:59]*** Partial cut [00:59:59]*** CUTSNS_PIN = 1 [00:59:59]*** CUTSNS_PIN = 0 [00:59:59]*** Brake cut motor [01:00:00]Read from MH i2c: 01 [01:00:00]MH_I2C_Read... [01:00:00]*** Stop cut motor [01:00:00]*** Cut end [01:00:00]Read from MH i2c: 01 07 00 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 FF 0F 55 [01:00:00]process_action close_receipt done [01:00:00]requested_data is exist [01:00:00]produce_requested_data [01:00:00]requested_item fm.sn is exist - process it [01:00:00]wFMCommunicate request_size=4 [01:00:00]MH_SAM_APDU [01:00:00]CAPDU: 80 11 00 00 [01:00:00]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [01:00:00]Write i2c OK [01:00:00]MH_I2C_Read... [01:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:00]Read from MH i2c: E2 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 17 00 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 17 00 34 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 16 [01:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:00:00]wFMCommunicate OK [01:00:00]requested_item fd.num is exist - process it [01:00:00]SAM_PROTO_GetFieldsCounters [01:00:00]wFMCommunicate request_size=4 [01:00:00]MH_SAM_APDU [01:00:00]CAPDU: 80 13 00 00 [01:00:00]Write to MH i2c: E2 08 00 35 0D 80 13 00 00 00 00 00 00 BE [01:00:00]Write i2c OK [01:00:00]MH_I2C_Read... [01:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:00]Read from MH i2c: E2 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 62 00 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 62 00 35 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [01:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:00:00]wFMCommunicate OK [01:00:00]SAM_PROTO_GetFieldsCounters done [01:00:00]requested_item shift.num is exist - process it [01:00:00]requested_item shift.opened is exist - process it [01:00:00]req_shift_opened [01:00:00]FM_GetShiftState [01:00:00]SAM_PROTO_GetShiftState [01:00:00]wFMCommunicate request_size=4 [01:00:00]MH_SAM_APDU [01:00:00]CAPDU: 80 13 01 00 [01:00:00]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [01:00:00]Write i2c OK [01:00:00]MH_I2C_Read... [01:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:00]Read from MH i2c: E2 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 0E 00 [01:00:00]MH_I2C_Read... [01:00:00]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0F [01:00:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:00:00]wFMCommunicate OK [01:00:00]SAM_PROTO_GetShiftState done [01:00:00]FM_GetShiftState done [01:00:00]req_shift_opened done [01:00:00]requested_item shift.open_date is exist - process it [01:00:00]req_shift_open_date [01:00:00]req_shift_open_date done [01:00:00]produce_requested_data done [01:00:00]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31685,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:00:00]process_action_free close_receipt [01:00:00]json_value_free [01:00:00]json_value_free done [01:00:00]process_json_proto returns [01:00:00]Send response to host [01:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31685,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:00:00]free response buf [01:00:00]execute_script done [01:00:00]execute_script returns [01:00:00]free content buf [01:00:00]Sock 7.Close socket [01:00:00]Sock 7.Thread stoped [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:50]accept exits with 9 [01:18:50]New connection [01:18:50]New thread 3066821988 created [01:18:50]Thread 3066965348 joined [01:18:50]Waiting for new connection... [01:18:50] Sock 9.Parse request [01:18:50]Sock 9.Check first char [01:18:50]Sock 9.First char is OK [01:18:50]request: POST /json_proto HTTP/1.0 [01:18:50]Method: POST [01:18:50]URL: /json_proto [01:18:50]Method is POST - this is cgi request [01:18:50]url: /json_proto [01:18:50]query_string will be loaded in cgi processing [01:18:50]execute_cgi json_proto POST (null) [01:18:50]execute_cgi path=json_proto method=POST [01:18:50]POST find Content-Length [01:18:50]Host: 172.17.39.68:8080 [01:18:50]Content-Length: 623 [01:18:50]Content-Type: application/json [01:18:50] [01:18:50]POST finish read [01:18:50]Found Content-Length = 623 [01:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214267", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [01:18:50]execute_script... [01:18: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)214267", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [01:18:50]POST & json_proto [01:18:50]process_json_proto [01:18:50]json parsed OK: [01:18:50]protocol is kg_v1.0 [01:18:50]action value=close_receipt [01:18:50]process_action close_receipt [01:18:50]cmd_close_receipt [01:18:50]MH_GetDate [01:18:50]Write to MH i2c: F0 00 00 37 0D 33 [01:18:50]Write i2c OK [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: F0 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: F0 09 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: F0 09 00 37 0D 00 7C CA 95 66 D6 48 95 66 96 [01:18:50]GetLastDocTimeStamp 1721091598 [01:18:50]current date 1721092732 [01:18:50]FM_GetShiftState [01:18:50]SAM_PROTO_GetShiftState [01:18:50]wFMCommunicate request_size=4 [01:18:50]MH_SAM_APDU [01:18:50]CAPDU: 80 13 01 00 [01:18:50]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [01:18:50]Write i2c OK [01:18:50]MH_I2C_Read... [01:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:50]Read from MH i2c: E2 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 11 [01:18:50]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:18:50]wFMCommunicate OK [01:18:50]SAM_PROTO_GetShiftState done [01:18:50]FM_GetShiftState done [01:18:50]opened in 1721088399 [01:18:50]opened+sec_in_day 1721174799 [01:18:50]quantity*price = 14000 [01:18:50]sum+1 = 14001 [01:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 5 16.07.2024 01:18 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31686 ФПД: 196721582173978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T011852&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31686&fm=196721582173978&tin=02508201610067®Number=0000000000098025&sum=14000 0 [01:18:51]StoreToDocumentArchive [01:18:51]shift 371 fd 31686 [01:18:51]save to /storage/0371/doc_00031686 [01:18:51]save last doc name /storage/0371/doc_00031686 to /storage/kkm_last_doc_name [01:18:51]save OK [01:18:51]Clear old archive folders... [01:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:18:51]tlvbuf is 0148B370 [01:18:51]SAM_PROTO_ClearQueue [01:18:51]wFMCommunicate request_size=4 [01:18:51]MH_SAM_APDU [01:18:51]CAPDU: 80 09 00 00 [01:18:51]Write to MH i2c: E2 08 00 45 0D 80 09 00 00 00 00 00 00 C4 [01:18:51]Write i2c OK [01:18:51]MH_I2C_Read... [01:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:51]Read from MH i2c: E2 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [01:18:51]RAPDU: 90 00 [01:18:51]wFMCommunicate OK [01:18:51]SAM_PROTO_ClearQueue done [01:18:51]KKMCreateOFDPacket [01:18:51]OFDProtocolAddRootSTLVToBuf [01:18:51]FM_MakeSignedData [01:18:51]FM_MakeSignedData [01:18:51]SAM_PROTO_SignData [01:18:51]wFMCommunicate request_size=4 [01:18:51]MH_SAM_APDU [01:18:51]CAPDU: 80 0D 01 02 [01:18:51]Write to MH i2c: E2 08 00 46 0D 80 0D 01 02 00 00 00 00 CC [01:18:51]Write i2c OK [01:18:51]MH_I2C_Read... [01:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:51]Read from MH i2c: E2 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [01:18:51]RAPDU: 90 00 [01:18:51]wFMCommunicate OK [01:18:51]wFMCommunicate request_size=255 [01:18:51]MH_SAM_APDU [01:18:51]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 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 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 05 00 00 00 F4 03 04 00 7C CA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [01:18:51]Write to MH i2c: E2 02 01 47 0D 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 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 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 05 00 00 00 F4 03 04 00 7C CA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 15 [01:18:51]Write i2c OK [01:18:51]MH_I2C_Read... [01:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:51]Read from MH i2c: E2 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [01:18:51]RAPDU: 90 00 [01:18:51]wFMCommunicate OK [01:18:51]wFMCommunicate request_size=34 [01:18:51]MH_SAM_APDU [01:18:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C6 7B 00 00 35 04 06 00 B2 EA D0 06 6F 1A [01:18:51]Write to MH i2c: E2 25 00 48 0D 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C6 7B 00 00 35 04 06 00 B2 EA D0 06 6F 1A 00 00 D4 [01:18:51]Write i2c OK [01:18:51]MH_I2C_Read... [01:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:51]Read from MH i2c: E2 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 [01:18:51]MH_I2C_Read... [01:18:51]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [01:18:51]RAPDU: 90 00 [01:18:51]wFMCommunicate OK [01:18:51]wFMCommunicate request_size=4 [01:18:51]MH_SAM_APDU [01:18:51]CAPDU: 80 0D 03 02 [01:18:51]Write to MH i2c: E2 08 00 49 0D 80 0D 03 02 00 00 00 00 D1 [01:18:51]Write i2c OK [01:18:51]MH_I2C_Read... [01:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:52]Read from MH i2c: E2 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 0B 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 0B 00 49 0D 00 F6 58 78 DF A4 A1 C1 06 90 00 83 [01:18:52]RAPDU: F6 58 78 DF A4 A1 C1 06 90 00 [01:18:52]wFMCommunicate OK [01:18:52]SAM_PROTO_SignData done [01:18:52]FM_MakeSignedData done [01:18:52]CreateOFDProtocolMessage [01:18:52]wFMCommunicate request_size=4 [01:18:52]MH_SAM_APDU [01:18:52]CAPDU: 80 11 00 00 [01:18:52]Write to MH i2c: E2 08 00 4A 0D 80 11 00 00 00 00 00 00 D1 [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:52]Read from MH i2c: E2 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 17 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 17 00 4A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2C [01:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:18:52]wFMCommunicate OK [01:18:52]CreateOFDProtocolMessage done [01:18:52]OFDSenderStorePacket 31686 [01:18:52]StoreOFDPacket docnum=31686 [01:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 90 32 1F 01 8F 36 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 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 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 05 00 00 00 F4 03 04 00 7C CA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C6 7B 00 00 35 04 06 00 B2 EA D0 06 6F 1A F6 58 78 DF A4 A1 C1 06 [01:18:52]CheckFolder [01:18:52]dirname=/storage/ofd_packets [01:18:52]CheckFolder done [01:18:52]ProducePacketName [01:18:52]name=ofd_packets/00031686 [01:18:52]NVStorageSaveData ofd_packets/00031686 [01:18:52]File name is /storage/ofd_packets/00031686 [01:18:52]Write 325 bytes [01:18:52]NVStorageSaveData done [01:18:52]OFDSenderStorePacket done [01:18:52]KKMCreateOFDPacket done [01:18:52]NVStorageSaveData kkm_last_timestamp [01:18:52]File name is /storage/kkm_last_timestamp [01:18:52]Write 4 bytes [01:18:52]NVStorageSaveData done [01:18:52]ExternCall_PrintAddStr [01:18:52]wPrintStart [01:18:52]Write to MH i2c: 01 00 00 4B 0D 58 [01:18:52]OFD Sender: Processing packet 31686 [packets to send 6, broken 5] [01:18:52]ProducePacketName [01:18:52]name=ofd_packets/00031686 [01:18:52]OFD Sender: To server: pG, [01:18:52]CommunicateWithHost lk.salyk.kg:30040 [01:18:52]ConnectInit lk.salyk.kg [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [01:18:52]RasterBufferAndPrint [01:18:52]line Счет N : (3)214267 [01:18:52]line ИНН: 02508201610067 [01:18:52]line Контрольно-Кассовый Чек [01:18:52]line ПРОДАЖА [01:18:52]line Товар: 48743587 [01:18:52]line Сигареты Winston XStyle Silver [01:18:52]line 1.000 * 140.00 [01:18:52]line = 140.00 [01:18:52]line НДС 12% НСП 1% [01:18:52]line > о реализуемом товаре [01:18:52]line ИТОГО: 140.00 [01:18:52]line НСП 1% : 1.24 [01:18:52]line НДС 12% : 14.87 [01:18:52]line Наличными: 140.00 [01:18:52]line Безнал.: 0.00 [01:18:52]line Место: АЗС № 140 "Партнер Нефть" [01:18:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:18:52]line СНО: Общий режим [01:18:52]line Чек 5 16.07.2024 01:18 [01:18:52]line Смена: 371 ФФД: 1.0 [01:18:52]line ЗНМ: 0300000189 [01:18:52]line РНМ: 0000000000098025 [01:18:52]line Версия ККМ: 001 [01:18:52]line ФМ: 0000000000965389 [01:18:52]line ФД: 31686 [01:18:52]line ФПД: 196721582173978 [01:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T011852&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31686&fm=196721582173978&tin=02508201610067®Number=0000000000098025&sum=14000 [01:18:52]Connected sock=10 [01:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 90 32 1F 01 8F 36 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 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 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 05 00 00 00 F4 03 04 00 7C CA 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C6 7B 00 00 35 04 06 00 B2 EA D0 06 6F 1A F6 58 78 DF A4 A1 C1 06 [01:18:52]line 0 [01:18:52]written 0, free lines is 4095 [01:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 15 FA 47 00 DB 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 39 36 35 33 38 39 10 04 04 00 C6 7B 00 00 F4 03 04 00 8A 76 95 66 B6 04 01 00 00 F1 52 90 C7 14 D8 77 BC [01:18:52]CommunicateWithHost err = 0 [01:18:52]CheckOFDResponse [01:18:52]1017 (14) - 77093643461234 [01:18:52]1041 (16) - 0000000000965389 [01:18:52]1040 (4) - 31686 [01:18:52]1012 (4) - 15.07.2024 19:20 [01:18:52]1206 (1) - 0 [01:18:52]OFD Sender: Remove packet 31686 [01:18:52]ProducePacketName [01:18:52]name=ofd_packets/00031686 [01:18:52]NVStorageDeleteData [01:18:52]Write to MH i2c: 01 00 00 74 0D 81 [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 DF 0C 73 [01:18:52]RasterBufferAndPrint [01:18:52]line [01:18:52]line [01:18:52]line [01:18:52]line [01:18:52]line [01:18:52]written 0, free lines is 3304 [01:18:52]MH_Cut [01:18:52]Write to MH i2c: D1 01 00 7B 0D 01 5A [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: D1 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: D1 01 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: D1 01 00 7B 0D 00 59 [01:18:52]Write to MH i2c: 01 00 00 7C 0D 89 [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:53]OFD Sender: No OFD packet to send [01:18:53]*** Cut start [01:18:53]*** Partial cut [01:18:53]*** CUTSNS_PIN = 1 [01:18:53]*** CUTSNS_PIN = 0 [01:18:53]*** Brake cut motor [01:18:54]Read from MH i2c: 01 [01:18:54]MH_I2C_Read... [01:18:54]*** Stop cut motor [01:18:54]*** Cut end [01:18:54]Read from MH i2c: 01 07 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [01:18:54]process_action close_receipt done [01:18:54]requested_data is exist [01:18:54]produce_requested_data [01:18:54]requested_item fm.sn is exist - process it [01:18:54]wFMCommunicate request_size=4 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 11 00 00 [01:18:54]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 17 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5F [01:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:18:54]wFMCommunicate OK [01:18:54]requested_item fd.num is exist - process it [01:18:54]SAM_PROTO_GetFieldsCounters [01:18:54]wFMCommunicate request_size=4 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 13 00 00 [01:18:54]Write to MH i2c: E2 08 00 7E 0D 80 13 00 00 00 00 00 00 07 [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 62 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 62 00 7E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [01:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:54]wFMCommunicate OK [01:18:54]SAM_PROTO_GetFieldsCounters done [01:18:54]requested_item shift.num is exist - process it [01:18:54]requested_item shift.opened is exist - process it [01:18:54]req_shift_opened [01:18:54]FM_GetShiftState [01:18:54]SAM_PROTO_GetShiftState [01:18:54]wFMCommunicate request_size=4 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 13 01 00 [01:18:54]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 0E 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 58 [01:18:54]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:18:54]wFMCommunicate OK [01:18:54]SAM_PROTO_GetShiftState done [01:18:54]FM_GetShiftState done [01:18:54]req_shift_opened done [01:18:54]requested_item shift.open_date is exist - process it [01:18:54]req_shift_open_date [01:18:54]req_shift_open_date done [01:18:54]produce_requested_data done [01:18:54]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31686,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:18:54]process_action_free close_receipt [01:18:54]json_value_free [01:18:54]json_value_free done [01:18:54]process_json_proto returns [01:18:54]Send response to host [01:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31686,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:18:54]free response buf [01:18:54]execute_script done [01:18:54]execute_script returns [01:18:54]free content buf [01:18:54]Sock 9.Close socket [01:18:54]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:34]accept exits with 7 [01:23:34]New connection [01:23:34]New thread 3066965348 created [01:23:34]Thread 3066821988 joined [01:23:34]Waiting for new connection... [01:23:34] Sock 7.Parse request [01:23:34]Sock 7.Check first char [01:23:34]Sock 7.First char is OK [01:23:34]request: POST /json_proto HTTP/1.0 [01:23:34]Method: POST [01:23:34]URL: /json_proto [01:23:34]Method is POST - this is cgi request [01:23:34]url: /json_proto [01:23:34]query_string will be loaded in cgi processing [01:23:34]execute_cgi json_proto POST (null) [01:23:34]execute_cgi path=json_proto method=POST [01:23:34]POST find Content-Length [01:23:34]Host: 172.17.39.68:8080 [01:23:34]Content-Length: 928 [01:23:34]Content-Type: application/json [01:23:34] [01:23:34]POST finish read [01:23:34]Found Content-Length = 928 [01:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214268", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.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" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:34]execute_script... [01:23: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)214268", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.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" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:34]POST & json_proto [01:23:34]process_json_proto [01:23:34]json parsed OK: [01:23:34]protocol is kg_v1.0 [01:23:34]action value=close_receipt [01:23:34]process_action close_receipt [01:23:34]cmd_close_receipt [01:23:34]MH_GetDate [01:23:34]Write to MH i2c: F0 00 00 80 0D 7C [01:23:34]Write i2c OK [01:23:34]MH_I2C_Read... [01:23:34]Read from MH i2c: F0 [01:23:34]MH_I2C_Read... [01:23:34]Read from MH i2c: F0 09 00 [01:23:34]MH_I2C_Read... [01:23:34]Read from MH i2c: F0 09 00 80 0D 00 98 CB 95 66 D6 48 95 66 FC [01:23:34]GetLastDocTimeStamp 1721092732 [01:23:34]current date 1721093016 [01:23:34]FM_GetShiftState [01:23:34]SAM_PROTO_GetShiftState [01:23:34]wFMCommunicate request_size=4 [01:23:34]MH_SAM_APDU [01:23:34]CAPDU: 80 13 01 00 [01:23:34]Write to MH i2c: E2 08 00 81 0D 80 13 01 00 00 00 00 00 0B [01:23:34]Write i2c OK [01:23:34]MH_I2C_Read... [01:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:34]Read from MH i2c: E2 [01:23:34]MH_I2C_Read... [01:23:34]Read from MH i2c: E2 0E 00 [01:23:34]MH_I2C_Read... [01:23:34]Read from MH i2c: E2 0E 00 81 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5A [01:23:34]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:23:34]wFMCommunicate OK [01:23:34]SAM_PROTO_GetShiftState done [01:23:34]FM_GetShiftState done [01:23:34]opened in 1721088399 [01:23:34]opened+sec_in_day 1721174799 [01:23:34]quantity*price = 32500 [01:23:34]sum+1 = 32501 [01:23:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 6 16.07.2024 01:23 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31687 ФПД: 254599669748962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T012336&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31687&fm=254599669748962&tin=02508201610067®Number=0000000000098025&sum=33900 0 [01:23:35]StoreToDocumentArchive [01:23:35]shift 371 fd 31687 [01:23:35]save to /storage/0371/doc_00031687 [01:23:35]save last doc name /storage/0371/doc_00031687 to /storage/kkm_last_doc_name [01:23:35]save OK [01:23:35]Clear old archive folders... [01:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=389 [01:23:35]tlvbuf is 01490350 [01:23:35]SAM_PROTO_ClearQueue [01:23:35]wFMCommunicate request_size=4 [01:23:35]MH_SAM_APDU [01:23:35]CAPDU: 80 09 00 00 [01:23:35]Write to MH i2c: E2 08 00 8E 0D 80 09 00 00 00 00 00 00 0D [01:23:35]Write i2c OK [01:23:35]MH_I2C_Read... [01:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:35]Read from MH i2c: E2 [01:23:35]MH_I2C_Read... [01:23:35]Read from MH i2c: E2 03 00 [01:23:35]MH_I2C_Read... [01:23:35]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [01:23:35]RAPDU: 90 00 [01:23:35]wFMCommunicate OK [01:23:35]SAM_PROTO_ClearQueue done [01:23:35]KKMCreateOFDPacket [01:23:35]OFDProtocolAddRootSTLVToBuf [01:23:35]FM_MakeSignedData [01:23:35]FM_MakeSignedData [01:23:35]SAM_PROTO_SignData [01:23:35]wFMCommunicate request_size=4 [01:23:35]MH_SAM_APDU [01:23:35]CAPDU: 80 0D 01 02 [01:23:35]Write to MH i2c: E2 08 00 8F 0D 80 0D 01 02 00 00 00 00 15 [01:23:35]Write i2c OK [01:23:35]MH_I2C_Read... [01:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:35]Read from MH i2c: E2 [01:23:35]MH_I2C_Read... [01:23:35]Read from MH i2c: E2 03 00 [01:23:35]MH_I2C_Read... [01:23:35]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [01:23:35]RAPDU: 90 00 [01:23:35]wFMCommunicate OK [01:23:35]wFMCommunicate request_size=255 [01:23:35]MH_SAM_APDU [01:23:35]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 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 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [01:23:35]Write to MH i2c: E2 02 01 90 0D 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 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 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 F8 [01:23:35]Write i2c OK [01:23:35]MH_I2C_Read... [01:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:36]Read from MH i2c: E2 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 03 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [01:23:36]RAPDU: 90 00 [01:23:36]wFMCommunicate OK [01:23:36]wFMCommunicate request_size=148 [01:23:36]MH_SAM_APDU [01:23:36]CAPDU: 80 0D 02 02 8F 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 06 00 00 00 F4 03 04 00 98 CB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C7 7B 00 00 35 04 06 00 E7 8E 9A E0 14 E2 [01:23:36]Write to MH i2c: E2 97 00 91 0D 80 0D 02 02 8F 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 06 00 00 00 F4 03 04 00 98 CB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C7 7B 00 00 35 04 06 00 E7 8E 9A E0 14 E2 00 00 A5 [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:36]Read from MH i2c: E2 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 03 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [01:23:36]RAPDU: 90 00 [01:23:36]wFMCommunicate OK [01:23:36]wFMCommunicate request_size=4 [01:23:36]MH_SAM_APDU [01:23:36]CAPDU: 80 0D 03 02 [01:23:36]Write to MH i2c: E2 08 00 92 0D 80 0D 03 02 00 00 00 00 1A [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:36]Read from MH i2c: E2 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 0B 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 0B 00 92 0D 00 20 D2 C2 C6 B3 20 BA 8B 90 00 AD [01:23:36]RAPDU: 20 D2 C2 C6 B3 20 BA 8B 90 00 [01:23:36]wFMCommunicate OK [01:23:36]SAM_PROTO_SignData done [01:23:36]FM_MakeSignedData done [01:23:36]CreateOFDProtocolMessage [01:23:36]wFMCommunicate request_size=4 [01:23:36]MH_SAM_APDU [01:23:36]CAPDU: 80 11 00 00 [01:23:36]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:36]Read from MH i2c: E2 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 17 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 75 [01:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:23:36]wFMCommunicate OK [01:23:36]CreateOFDProtocolMessage done [01:23:36]OFDSenderStorePacket 31687 [01:23:36]StoreOFDPacket docnum=31687 [01:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 99 01 00 00 E2 F4 91 01 86 26 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 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 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 06 00 00 00 F4 03 04 00 98 CB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C7 7B 00 00 35 04 06 00 E7 8E 9A E0 14 E2 20 D2 C2 C6 B3 20 BA 8B [01:23:36]CheckFolder [01:23:36]dirname=/storage/ofd_packets [01:23:36]CheckFolder done [01:23:36]ProducePacketName [01:23:36]name=ofd_packets/00031687 [01:23:36]NVStorageSaveData ofd_packets/00031687 [01:23:36]File name is /storage/ofd_packets/00031687 [01:23:36]Write 439 bytes [01:23:36]NVStorageSaveData done [01:23:36]OFDSenderStorePacket done [01:23:36]KKMCreateOFDPacket done [01:23:36]NVStorageSaveData kkm_last_timestamp [01:23:36]File name is /storage/kkm_last_timestamp [01:23:36]Write 4 bytes [01:23:36]NVStorageSaveData done [01:23:36]ExternCall_PrintAddStr [01:23:36]wPrintStart [01:23:36]Write to MH i2c: 01 00 00 94 0D A1 [01:23:36]Write i2c OK [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: 01 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: 01 07 00 [01:23:36]MH_I2C_Read... [01:23:36]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FF 0F B6 [01:23:36]RasterBufferAndPrint [01:23:36]line Счет N : (3)214268 [01:23:36]line ИНН: 02508201610067 [01:23:36]line Контрольно-Кассовый Чек [01:23:36]line ПРОДАЖА [01:23:36]line Товар: 4700001610043 [01:23:36]line Пиво Арпа 1,5л ПЭТ [01:23:36]line 1.000 * 325.00 [01:23:36]line = 325.00 [01:23:36]line НДС 12% НСП 1% [01:23:36]line > о реализуемом товаре [01:23:36]line Товар: 2000053020015 [01:23:36]line Бумажные стаканы 250мл 1шт [01:23:36]line 2.000 * 7.00 [01:23:36]line = 14.00 [01:23:36]line НДС 12% НСП 1% [01:23:36]line > о реализуемом товаре [01:23:36]line ИТОГО: 339.00 [01:23:36]line НСП 1% : 3.00 [01:23:36]line НДС 12% : 36.00 [01:23:36]line Наличными: 339.00 [01:23:36]line Безнал.: 0.00 [01:23:36]line Место: АЗС № 140 "Партнер Нефть" [01:23:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:23:36]line СНО: Общий режим [01:23:36]line Чек 6 16.07.2024 01:23 [01:23:36]line Смена: 371 ФФД: 1.0 [01:23:36]line ЗНМ: 0300000189 [01:23:36]line РНМ: 0000000000098025 [01:23:36]line Версия ККМ: 001 [01:23:36]line ФМ: 0000000000965389 [01:23:36]line ФД: 31687 [01:23:36]line ФПД: 254599669748962 [01:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T012336&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31687&fm=254599669748962&tin=02508201610067®Number=0000000000098025&sum=33900 [01:23:36]OFD Sender: Processing packet 31687 [packets to send 6, broken 5] [01:23:36]ProducePacketName [01:23:36]name=ofd_packets/00031687 [01:23:36]OFD Sender: To server: pG, [01:23:36]CommunicateWithHost lk.salyk.kg:30040 [01:23:36]ConnectInit lk.salyk.kg [01:23:36]line 0 [01:23:36]written 0, free lines is 4095 [01:23:36]Connected sock=10 [01:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 99 01 00 00 E2 F4 91 01 86 26 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 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 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 06 00 00 00 F4 03 04 00 98 CB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C7 7B 00 00 35 04 06 00 E7 8E 9A E0 14 E2 20 D2 C2 C6 B3 20 BA 8B [01:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 25 F3 47 00 E7 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C7 7B 00 00 F4 03 04 00 A7 77 95 66 B6 04 01 00 00 B1 79 97 10 9A 5F 3F 33 [01:23:36]CommunicateWithHost err = 0 [01:23:36]CheckOFDResponse [01:23:36]1017 (14) - 77093643461234 [01:23:36]1041 (16) - 0000000000965389 [01:23:36]1040 (4) - 31687 [01:23:36]1012 (4) - 15.07.2024 19:25 [01:23:36]1206 (1) - 0 [01:23:36]OFD Sender: Remove packet 31687 [01:23:36]ProducePacketName [01:23:36]name=ofd_packets/00031687 [01:23:36]NVStorageDeleteData [01:23:37]Write to MH i2c: 01 00 00 C3 0D D0 [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: 01 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: 01 07 00 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 90 0C 73 [01:23:37]RasterBufferAndPrint [01:23:37]line [01:23:37]line [01:23:37]line [01:23:37]line [01:23:37]line [01:23:37]written 0, free lines is 3223 [01:23:37]MH_Cut [01:23:37]Write to MH i2c: D1 01 00 CA 0D 01 A9 [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: D1 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: D1 01 00 [01:23:37]MH_I2C_Read... [01:23:37]Read from MH i2c: D1 01 00 CA 0D 00 A8 [01:23:37]Write to MH i2c: 01 00 00 CB 0D D8 [01:23:37]Write i2c OK [01:23:37]MH_I2C_Read... [01:23:37]OFD Sender: No OFD packet to send [01:23:37]*** Cut start [01:23:37]*** Partial cut [01:23:37]*** CUTSNS_PIN = 1 [01:23:38]*** CUTSNS_PIN = 0 [01:23:38]*** Brake cut motor [01:23:38]Read from MH i2c: 01 [01:23:38]MH_I2C_Read... [01:23:38]*** Stop cut motor [01:23:38]*** Cut end [01:23:38]Read from MH i2c: 01 07 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FF 0F ED [01:23:38]process_action close_receipt done [01:23:38]requested_data is exist [01:23:38]produce_requested_data [01:23:38]requested_item fm.sn is exist - process it [01:23:38]wFMCommunicate request_size=4 [01:23:38]MH_SAM_APDU [01:23:38]CAPDU: 80 11 00 00 [01:23:38]Write to MH i2c: E2 08 00 CC 0D 80 11 00 00 00 00 00 00 53 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 17 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 17 00 CC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AE [01:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:23:38]wFMCommunicate OK [01:23:38]requested_item fd.num is exist - process it [01:23:38]SAM_PROTO_GetFieldsCounters [01:23:38]wFMCommunicate request_size=4 [01:23:38]MH_SAM_APDU [01:23:38]CAPDU: 80 13 00 00 [01:23:38]Write to MH i2c: E2 08 00 CD 0D 80 13 00 00 00 00 00 00 56 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 62 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 62 00 CD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [01:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:38]wFMCommunicate OK [01:23:38]SAM_PROTO_GetFieldsCounters done [01:23:38]requested_item shift.num is exist - process it [01:23:38]requested_item shift.opened is exist - process it [01:23:38]req_shift_opened [01:23:38]FM_GetShiftState [01:23:38]SAM_PROTO_GetShiftState [01:23:38]wFMCommunicate request_size=4 [01:23:38]MH_SAM_APDU [01:23:38]CAPDU: 80 13 01 00 [01:23:38]Write to MH i2c: E2 08 00 CE 0D 80 13 01 00 00 00 00 00 58 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 [01:23:38]MH_I2C_Read... [01:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:38]Read from MH i2c: E2 0E 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: E2 0E 00 CE 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A7 [01:23:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:23:38]wFMCommunicate OK [01:23:38]SAM_PROTO_GetShiftState done [01:23:38]FM_GetShiftState done [01:23:38]req_shift_opened done [01:23:38]requested_item shift.open_date is exist - process it [01:23:38]req_shift_open_date [01:23:38]req_shift_open_date done [01:23:38]produce_requested_data done [01:23:38]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31687,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:23:38]process_action_free close_receipt [01:23:38]json_value_free [01:23:38]json_value_free done [01:23:38]process_json_proto returns [01:23:38]Send response to host [01:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31687,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:23:38]free response buf [01:23:38]execute_script done [01:23:38]execute_script returns [01:23:38]free content buf [01:23:38]Sock 7.Close socket [01:23:38]Sock 7.Thread stoped [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:33]accept exits with 9 [01:29:33]New connection [01:29:33]New thread 3066821988 created [01:29:33]Thread 3066965348 joined [01:29:33]Waiting for new connection... [01:29:33] Sock 9.Parse request [01:29:33]Sock 9.Check first char [01:29:33]Sock 9.First char is OK [01:29:33]request: POST /json_proto HTTP/1.0 [01:29:33]Method: POST [01:29:33]URL: /json_proto [01:29:33]Method is POST - this is cgi request [01:29:33]url: /json_proto [01:29:33]query_string will be loaded in cgi processing [01:29:33]execute_cgi json_proto POST (null) [01:29:33]execute_cgi path=json_proto method=POST [01:29:33]POST find Content-Length [01:29:33]Host: 172.17.39.68:8080 [01:29:33]Content-Length: 715 [01:29:33]Content-Type: application/json [01:29:33] [01:29:33]POST finish read [01:29:33]Found Content-Length = 715 [01:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214269", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 2.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" ] } } [01:29:33]execute_script... [01:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214269", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 2.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" ] } } [01:29:33]POST & json_proto [01:29:33]process_json_proto [01:29:33]json parsed OK: [01:29:33]protocol is kg_v1.0 [01:29:33]action value=close_receipt [01:29:33]process_action close_receipt [01:29:33]cmd_close_receipt [01:29:33]MH_GetDate [01:29:33]Write to MH i2c: F0 00 00 CF 0D CB [01:29:33]Write i2c OK [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: F0 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: F0 09 00 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: F0 09 00 CF 0D 00 FF CC 95 66 D6 48 95 66 B3 [01:29:33]GetLastDocTimeStamp 1721093016 [01:29:33]current date 1721093375 [01:29:33]FM_GetShiftState [01:29:33]SAM_PROTO_GetShiftState [01:29:33]wFMCommunicate request_size=4 [01:29:33]MH_SAM_APDU [01:29:33]CAPDU: 80 13 01 00 [01:29:33]Write to MH i2c: E2 08 00 D0 0D 80 13 01 00 00 00 00 00 5A [01:29:33]Write i2c OK [01:29:33]MH_I2C_Read... [01:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:33]Read from MH i2c: E2 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: E2 0E 00 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: E2 0E 00 D0 0D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A9 [01:29:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:29:33]wFMCommunicate OK [01:29:33]SAM_PROTO_GetShiftState done [01:29:33]FM_GetShiftState done [01:29:33]opened in 1721088399 [01:29:33]opened+sec_in_day 1721174799 [01:29:33]quantity*price = 13000 [01:29:33]sum+1 = 13001 [01:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 7 16.07.2024 01:29 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31688 ФПД: 210183674149731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T012935&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31688&fm=210183674149731&tin=02508201610067®Number=0000000000098025&sum=13000 0 [01:29:34]StoreToDocumentArchive [01:29:34]shift 371 fd 31688 [01:29:34]save to /storage/0371/doc_00031688 [01:29:34]save last doc name /storage/0371/doc_00031688 to /storage/kkm_last_doc_name [01:29:34]save OK [01:29:34]Clear old archive folders... [01:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=304 [01:29:34]tlvbuf is 01486150 [01:29:34]SAM_PROTO_ClearQueue [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 09 00 00 [01:29:34]Write to MH i2c: E2 08 00 DD 0D 80 09 00 00 00 00 00 00 5C [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [01:29:34]RAPDU: 90 00 [01:29:34]wFMCommunicate OK [01:29:34]SAM_PROTO_ClearQueue done [01:29:34]KKMCreateOFDPacket [01:29:34]OFDProtocolAddRootSTLVToBuf [01:29:34]FM_MakeSignedData [01:29:34]FM_MakeSignedData [01:29:34]SAM_PROTO_SignData [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 0D 01 02 [01:29:34]Write to MH i2c: E2 08 00 DE 0D 80 0D 01 02 00 00 00 00 64 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [01:29:34]RAPDU: 90 00 [01:29:34]wFMCommunicate OK [01:29:34]wFMCommunicate request_size=255 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 07 00 00 00 F4 03 04 00 FF CC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 [01:29:34]Write to MH i2c: E2 02 01 DF 0D 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 07 00 00 00 F4 03 04 00 FF CC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 00 00 44 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [01:29:34]RAPDU: 90 00 [01:29:34]wFMCommunicate OK [01:29:34]wFMCommunicate request_size=63 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C8 7B 00 00 35 04 06 00 BF 29 33 3C 3B 63 [01:29:34]Write to MH i2c: E2 42 00 E0 0D 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C8 7B 00 00 35 04 06 00 BF 29 33 3C 3B 63 00 00 F0 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [01:29:35]RAPDU: 90 00 [01:29:35]wFMCommunicate OK [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 0D 03 02 [01:29:35]Write to MH i2c: E2 08 00 E1 0D 80 0D 03 02 00 00 00 00 69 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 0B 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 0B 00 E1 0D 00 67 EE 90 B5 60 84 FD F2 90 00 D7 [01:29:35]RAPDU: 67 EE 90 B5 60 84 FD F2 90 00 [01:29:35]wFMCommunicate OK [01:29:35]SAM_PROTO_SignData done [01:29:35]FM_MakeSignedData done [01:29:35]CreateOFDProtocolMessage [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 11 00 00 [01:29:35]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 17 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C4 [01:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:29:35]wFMCommunicate OK [01:29:35]CreateOFDProtocolMessage done [01:29:35]OFDSenderStorePacket 31688 [01:29:35]StoreOFDPacket docnum=31688 [01:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 E7 EF 3C 01 F3 F7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 07 00 00 00 F4 03 04 00 FF CC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C8 7B 00 00 35 04 06 00 BF 29 33 3C 3B 63 67 EE 90 B5 60 84 FD F2 [01:29:35]CheckFolder [01:29:35]dirname=/storage/ofd_packets [01:29:35]CheckFolder done [01:29:35]ProducePacketName [01:29:35]name=ofd_packets/00031688 [01:29:35]NVStorageSaveData ofd_packets/00031688 [01:29:35]File name is /storage/ofd_packets/00031688 [01:29:35]Write 354 bytes [01:29:35]NVStorageSaveData done [01:29:35]OFDSenderStorePacket done [01:29:35]KKMCreateOFDPacket done [01:29:35]NVStorageSaveData kkm_last_timestamp [01:29:35]File name is /storage/kkm_last_timestamp [01:29:35]Write 4 bytes [01:29:35]NVStorageSaveData done [01:29:35]ExternCall_PrintAddStr [01:29:35]wPrintStart [01:29:35]Write to MH i2c: 01 00 00 E3 0D F0 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 07 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 FF 0F 05 [01:29:35]RasterBufferAndPrint [01:29:35]line Счет N : (3)214269 [01:29:35]line ИНН: 02508201610067 [01:29:35]line Контрольно-Кассовый Чек [01:29:35]line ПРОДАЖА [01:29:35]line Товар: 4870001571023 [01:29:35]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [01:29:35]line 2.000 * 65.00 [01:29:35]line = 130.00 [01:29:35]line НДС 12% НСП 1% [01:29:35]line > о реализуемом товаре [01:29:35]line ИТОГО: 130.00 [01:29:35]line НСП 1% : 1.15 [01:29:35]line НДС 12% : 13.80 [01:29:35]line Наличными: 130.00 [01:29:35]line Безнал.: 0.00 [01:29:35]line Место: АЗС № 140 "Партнер Нефть" [01:29:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:29:35]line СНО: Общий режим [01:29:35]line Чек 7 16.07.2024 01:29 [01:29:35]line Смена: 371 ФФД: 1.0 [01:29:35]line ЗНМ: 0300000189 [01:29:35]line РНМ: 0000000000098025 [01:29:35]line Версия ККМ: 001 [01:29:35]line ФМ: 0000000000965389 [01:29:35]line ФД: 31688 [01:29:35]line ФПД: 210183674149731 [01:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T012935&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31688&fm=210183674149731&tin=02508201610067®Number=0000000000098025&sum=13000 [01:29:35]line 0 [01:29:35]OFD Sender: Processing packet 31688 [packets to send 6, broken 5] [01:29:35]ProducePacketName [01:29:35]name=ofd_packets/00031688 [01:29:35]OFD Sender: To server: pG, [01:29:35]CommunicateWithHost lk.salyk.kg:30040 [01:29:35]ConnectInit lk.salyk.kg [01:29:35]written 0, free lines is 4095 [01:29:35]Connected sock=10 [01:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 E7 EF 3C 01 F3 F7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 07 00 00 00 F4 03 04 00 FF CC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C8 7B 00 00 35 04 06 00 BF 29 33 3C 3B 63 67 EE 90 B5 60 84 FD F2 [01:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 1C 18 47 00 9C 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 39 36 35 33 38 39 10 04 04 00 C8 7B 00 00 F4 03 04 00 0E 79 95 66 B6 04 01 00 00 C0 FE CF 60 7A BB 00 CC [01:29:35]CommunicateWithHost err = 0 [01:29:35]CheckOFDResponse [01:29:35]1017 (14) - 77093643461234 [01:29:35]1041 (16) - 0000000000965389 [01:29:35]1040 (4) - 31688 [01:29:35]1012 (4) - 15.07.2024 19:31 [01:29:35]1206 (1) - 0 [01:29:35]OFD Sender: Remove packet 31688 [01:29:35]ProducePacketName [01:29:35]name=ofd_packets/00031688 [01:29:35]NVStorageDeleteData [01:29:35]Write to MH i2c: 01 00 00 0C 0E 1A [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 07 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 E5 0C 12 [01:29:35]RasterBufferAndPrint [01:29:35]line [01:29:35]line [01:29:35]line [01:29:35]line [01:29:35]line [01:29:35]written 0, free lines is 3310 [01:29:35]MH_Cut [01:29:35]Write to MH i2c: D1 01 00 13 0E 01 F3 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: D1 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: D1 01 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: D1 01 00 13 0E 00 F2 [01:29:35]Write to MH i2c: 01 00 00 14 0E 22 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:36]OFD Sender: No OFD packet to send [01:29:36]*** Cut start [01:29:36]*** Partial cut [01:29:36]*** CUTSNS_PIN = 1 [01:29:36]*** CUTSNS_PIN = 0 [01:29:36]*** Brake cut motor [01:29:37]Read from MH i2c: 01 [01:29:37]MH_I2C_Read... [01:29:37]*** Stop cut motor [01:29:37]*** Cut end [01:29:37]Read from MH i2c: 01 07 00 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 FF 0F 37 [01:29:37]process_action close_receipt done [01:29:37]requested_data is exist [01:29:37]produce_requested_data [01:29:37]requested_item fm.sn is exist - process it [01:29:37]wFMCommunicate request_size=4 [01:29:37]MH_SAM_APDU [01:29:37]CAPDU: 80 11 00 00 [01:29:37]Write to MH i2c: E2 08 00 15 0E 80 11 00 00 00 00 00 00 9D [01:29:37]Write i2c OK [01:29:37]MH_I2C_Read... [01:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:37]Read from MH i2c: E2 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 17 00 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 17 00 15 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F8 [01:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:29:37]wFMCommunicate OK [01:29:37]requested_item fd.num is exist - process it [01:29:37]SAM_PROTO_GetFieldsCounters [01:29:37]wFMCommunicate request_size=4 [01:29:37]MH_SAM_APDU [01:29:37]CAPDU: 80 13 00 00 [01:29:37]Write to MH i2c: E2 08 00 16 0E 80 13 00 00 00 00 00 00 A0 [01:29:37]Write i2c OK [01:29:37]MH_I2C_Read... [01:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:37]Read from MH i2c: E2 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 62 00 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 62 00 16 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [01:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:37]wFMCommunicate OK [01:29:37]SAM_PROTO_GetFieldsCounters done [01:29:37]requested_item shift.num is exist - process it [01:29:37]requested_item shift.opened is exist - process it [01:29:37]req_shift_opened [01:29:37]FM_GetShiftState [01:29:37]SAM_PROTO_GetShiftState [01:29:37]wFMCommunicate request_size=4 [01:29:37]MH_SAM_APDU [01:29:37]CAPDU: 80 13 01 00 [01:29:37]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [01:29:37]Write i2c OK [01:29:37]MH_I2C_Read... [01:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:37]Read from MH i2c: E2 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 0E 00 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F1 [01:29:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:29:37]wFMCommunicate OK [01:29:37]SAM_PROTO_GetShiftState done [01:29:37]FM_GetShiftState done [01:29:37]req_shift_opened done [01:29:37]requested_item shift.open_date is exist - process it [01:29:37]req_shift_open_date [01:29:37]req_shift_open_date done [01:29:37]produce_requested_data done [01:29:37]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31688,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:29:37]process_action_free close_receipt [01:29:37]json_value_free [01:29:37]json_value_free done [01:29:37]process_json_proto returns [01:29:37]Send response to host [01:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31688,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:29:37]free response buf [01:29:37]execute_script done [01:29:37]execute_script returns [01:29:37]free content buf [01:29:37]Sock 9.Close socket [01:29:37]Sock 9.Thread stoped [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:09]accept exits with 7 [01:30:09]New connection [01:30:09]New thread 3066965348 created [01:30:09]Thread 3066821988 joined [01:30:09]Waiting for new connection... [01:30:09] Sock 7.Parse request [01:30:09]Sock 7.Check first char [01:30:09]Sock 7.First char is OK [01:30:09]request: POST /json_proto HTTP/1.0 [01:30:09]Method: POST [01:30:09]URL: /json_proto [01:30:09]Method is POST - this is cgi request [01:30:09]url: /json_proto [01:30:09]query_string will be loaded in cgi processing [01:30:09]execute_cgi json_proto POST (null) [01:30:09]execute_cgi path=json_proto method=POST [01:30:09]POST find Content-Length [01:30:09]Host: 172.17.39.68:8080 [01:30:09]Content-Length: 738 [01:30:09]Content-Type: application/json [01:30:09] [01:30:09]POST finish read [01:30:09]Found Content-Length = 738 [01:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214270", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [01:30:09]execute_script... [01:30: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)214270", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" ] } } [01:30:09]POST & json_proto [01:30:09]process_json_proto [01:30:09]json parsed OK: [01:30:09]protocol is kg_v1.0 [01:30:09]action value=close_receipt [01:30:09]process_action close_receipt [01:30:09]cmd_close_receipt [01:30:09]MH_GetDate [01:30:09]Write to MH i2c: F0 00 00 18 0E 15 [01:30:09]Write i2c OK [01:30:09]MH_I2C_Read... [01:30:09]Read from MH i2c: F0 [01:30:09]MH_I2C_Read... [01:30:09]Read from MH i2c: F0 09 00 [01:30:09]MH_I2C_Read... [01:30:09]Read from MH i2c: F0 09 00 18 0E 00 23 CD 95 66 D6 48 95 66 22 [01:30:09]GetLastDocTimeStamp 1721093375 [01:30:09]current date 1721093411 [01:30:09]FM_GetShiftState [01:30:09]SAM_PROTO_GetShiftState [01:30:09]wFMCommunicate request_size=4 [01:30:09]MH_SAM_APDU [01:30:09]CAPDU: 80 13 01 00 [01:30:09]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [01:30:09]Write i2c OK [01:30:09]MH_I2C_Read... [01:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:09]Read from MH i2c: E2 [01:30:09]MH_I2C_Read... [01:30:09]Read from MH i2c: E2 0E 00 [01:30:09]MH_I2C_Read... [01:30:09]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F3 [01:30:09]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:30:09]wFMCommunicate OK [01:30:09]SAM_PROTO_GetShiftState done [01:30:09]FM_GetShiftState done [01:30:09]opened in 1721088399 [01:30:09]opened+sec_in_day 1721174799 [01:30:09]quantity*price = 10500 [01:30:09]sum+1 = 10501 [01:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 8 16.07.2024 01:30 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31689 ФПД: 226848158209423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013011&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31689&fm=226848158209423&tin=02508201610067®Number=0000000000098025&sum=10500 0 [01:30:10]StoreToDocumentArchive [01:30:10]shift 371 fd 31689 [01:30:10]save to /storage/0371/doc_00031689 [01:30:10]save last doc name /storage/0371/doc_00031689 to /storage/kkm_last_doc_name [01:30:10]save OK [01:30:10]Clear old archive folders... [01:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=310 [01:30:10]tlvbuf is 0148F570 [01:30:10]SAM_PROTO_ClearQueue [01:30:10]wFMCommunicate request_size=4 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 09 00 00 [01:30:10]Write to MH i2c: E2 08 00 26 0E 80 09 00 00 00 00 00 00 A6 [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:10]Read from MH i2c: E2 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [01:30:10]RAPDU: 90 00 [01:30:10]wFMCommunicate OK [01:30:10]SAM_PROTO_ClearQueue done [01:30:10]KKMCreateOFDPacket [01:30:10]OFDProtocolAddRootSTLVToBuf [01:30:10]FM_MakeSignedData [01:30:10]FM_MakeSignedData [01:30:10]SAM_PROTO_SignData [01:30:10]wFMCommunicate request_size=4 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 0D 01 02 [01:30:10]Write to MH i2c: E2 08 00 27 0E 80 0D 01 02 00 00 00 00 AE [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:10]Read from MH i2c: E2 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [01:30:10]RAPDU: 90 00 [01:30:10]wFMCommunicate OK [01:30:10]wFMCommunicate request_size=255 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 08 00 00 00 F4 03 04 00 23 CD 95 66 0E 04 04 00 73 01 00 [01:30:10]Write to MH i2c: E2 02 01 28 0E 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 08 00 00 00 F4 03 04 00 23 CD 95 66 0E 04 04 00 73 01 00 00 00 7F [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:10]Read from MH i2c: E2 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [01:30:10]RAPDU: 90 00 [01:30:10]wFMCommunicate OK [01:30:10]wFMCommunicate request_size=69 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C9 7B 00 00 35 04 06 00 CE 51 33 E3 55 8F [01:30:10]Write to MH i2c: E2 48 00 29 0E 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C9 7B 00 00 35 04 06 00 CE 51 33 E3 55 8F 00 00 2A [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:10]Read from MH i2c: E2 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [01:30:10]RAPDU: 90 00 [01:30:10]wFMCommunicate OK [01:30:10]wFMCommunicate request_size=4 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 0D 03 02 [01:30:10]Write to MH i2c: E2 08 00 2A 0E 80 0D 03 02 00 00 00 00 B3 [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:10]Read from MH i2c: E2 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 0B 00 [01:30:10]MH_I2C_Read... [01:30:10]Read from MH i2c: E2 0B 00 2A 0E 00 10 EE 91 79 DA 85 F2 DE 90 00 EB [01:30:10]RAPDU: 10 EE 91 79 DA 85 F2 DE 90 00 [01:30:10]wFMCommunicate OK [01:30:10]SAM_PROTO_SignData done [01:30:10]FM_MakeSignedData done [01:30:10]CreateOFDProtocolMessage [01:30:10]wFMCommunicate request_size=4 [01:30:10]MH_SAM_APDU [01:30:10]CAPDU: 80 11 00 00 [01:30:10]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [01:30:10]Write i2c OK [01:30:10]MH_I2C_Read... [01:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:11]Read from MH i2c: E2 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: E2 17 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: E2 17 00 2B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0E [01:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:30:11]wFMCommunicate OK [01:30:11]CreateOFDProtocolMessage done [01:30:11]OFDSenderStorePacket 31689 [01:30:11]StoreOFDPacket docnum=31689 [01:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4A 01 00 00 1C 70 42 01 FD 7D 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 08 00 00 00 F4 03 04 00 23 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C9 7B 00 00 35 04 06 00 CE 51 33 E3 55 8F 10 EE 91 79 DA 85 F2 DE [01:30:11]CheckFolder [01:30:11]dirname=/storage/ofd_packets [01:30:11]CheckFolder done [01:30:11]ProducePacketName [01:30:11]name=ofd_packets/00031689 [01:30:11]NVStorageSaveData ofd_packets/00031689 [01:30:11]File name is /storage/ofd_packets/00031689 [01:30:11]Write 360 bytes [01:30:11]NVStorageSaveData done [01:30:11]OFDSenderStorePacket done [01:30:11]KKMCreateOFDPacket done [01:30:11]NVStorageSaveData kkm_last_timestamp [01:30:11]File name is /storage/kkm_last_timestamp [01:30:11]Write 4 bytes [01:30:11]NVStorageSaveData done [01:30:11]ExternCall_PrintAddStr [01:30:11]wPrintStart [01:30:11]Write to MH i2c: 01 00 00 2C 0E 3A [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 2C 0E 00 00 00 00 00 FF 0F 4F [01:30:11]RasterBufferAndPrint [01:30:11]line Счет N : (3)214270 [01:30:11]line ИНН: 02508201610067 [01:30:11]line Контрольно-Кассовый Чек [01:30:11]line ПРОДАЖА [01:30:11]line Товар: 4870145004982 [01:30:11]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [01:30:11]line 1.000 * 105.00 [01:30:11]line = 105.00 [01:30:11]line НДС 12% НСП 1% [01:30:11]line > о реализуемом товаре [01:30:11]line ИТОГО: 105.00 [01:30:11]line НСП 1% : 0.93 [01:30:11]line НДС 12% : 11.15 [01:30:11]line Наличными: 105.00 [01:30:11]line Безнал.: 0.00 [01:30:11]line Место: АЗС № 140 "Партнер Нефть" [01:30:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:30:11]line СНО: Общий режим [01:30:11]line Чек 8 16.07.2024 01:30 [01:30:11]line Смена: 371 ФФД: 1.0 [01:30:11]line ЗНМ: 0300000189 [01:30:11]line РНМ: 0000000000098025 [01:30:11]line Версия ККМ: 001 [01:30:11]line ФМ: 0000000000965389 [01:30:11]line ФД: 31689 [01:30:11]line ФПД: 226848158209423 [01:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013011&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31689&fm=226848158209423&tin=02508201610067®Number=0000000000098025&sum=10500 [01:30:11]OFD Sender: Processing packet 31689 [packets to send 6, broken 5] [01:30:11]ProducePacketName [01:30:11]name=ofd_packets/00031689 [01:30:11]OFD Sender: To server: pG, [01:30:11]CommunicateWithHost lk.salyk.kg:30040 [01:30:11]ConnectInit lk.salyk.kg [01:30:11]line 0 [01:30:11]written 0, free lines is 4095 [01:30:11]Connected sock=10 [01:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4A 01 00 00 1C 70 42 01 FD 7D 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 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 08 00 00 00 F4 03 04 00 23 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C9 7B 00 00 35 04 06 00 CE 51 33 E3 55 8F 10 EE 91 79 DA 85 F2 DE [01:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3C 07 47 00 DD B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 C9 7B 00 00 F4 03 04 00 32 79 95 66 B6 04 01 00 00 94 69 B5 03 D4 DA 1A F1 [01:30:11]CommunicateWithHost err = 0 [01:30:11]CheckOFDResponse [01:30:11]1017 (14) - 77093643461234 [01:30:11]1041 (16) - 0000000000965389 [01:30:11]1040 (4) - 31689 [01:30:11]1012 (4) - 15.07.2024 19:32 [01:30:11]1206 (1) - 0 [01:30:11]OFD Sender: Remove packet 31689 [01:30:11]ProducePacketName [01:30:11]name=ofd_packets/00031689 [01:30:11]NVStorageDeleteData [01:30:11]Write to MH i2c: 01 00 00 55 0E 63 [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 F7 0C 6D [01:30:11]RasterBufferAndPrint [01:30:11]line [01:30:11]line [01:30:11]line [01:30:11]line [01:30:11]line [01:30:11]written 0, free lines is 3326 [01:30:11]MH_Cut [01:30:11]Write to MH i2c: D1 01 00 5C 0E 01 3C [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D1 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D1 01 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D1 01 00 5C 0E 00 3B [01:30:11]Write to MH i2c: 01 00 00 5D 0E 6B [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:12]OFD Sender: No OFD packet to send [01:30:12]*** Cut start [01:30:12]*** Partial cut [01:30:12]*** CUTSNS_PIN = 1 [01:30:12]*** CUTSNS_PIN = 0 [01:30:12]*** Brake cut motor [01:30:13]Read from MH i2c: 01 [01:30:13]MH_I2C_Read... [01:30:13]*** Stop cut motor [01:30:13]*** Cut end [01:30:13]Read from MH i2c: 01 07 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [01:30:13]process_action close_receipt done [01:30:13]requested_data is exist [01:30:13]produce_requested_data [01:30:13]requested_item fm.sn is exist - process it [01:30:13]wFMCommunicate request_size=4 [01:30:13]MH_SAM_APDU [01:30:13]CAPDU: 80 11 00 00 [01:30:13]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:13]Read from MH i2c: E2 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 17 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 41 [01:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:30:13]wFMCommunicate OK [01:30:13]requested_item fd.num is exist - process it [01:30:13]SAM_PROTO_GetFieldsCounters [01:30:13]wFMCommunicate request_size=4 [01:30:13]MH_SAM_APDU [01:30:13]CAPDU: 80 13 00 00 [01:30:13]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:13]Read from MH i2c: E2 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 62 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 62 00 5F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [01:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 C9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:13]wFMCommunicate OK [01:30:13]SAM_PROTO_GetFieldsCounters done [01:30:13]requested_item shift.num is exist - process it [01:30:13]requested_item shift.opened is exist - process it [01:30:13]req_shift_opened [01:30:13]FM_GetShiftState [01:30:13]SAM_PROTO_GetShiftState [01:30:13]wFMCommunicate request_size=4 [01:30:13]MH_SAM_APDU [01:30:13]CAPDU: 80 13 01 00 [01:30:13]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:13]Read from MH i2c: E2 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 0E 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3A [01:30:13]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:30:13]wFMCommunicate OK [01:30:13]SAM_PROTO_GetShiftState done [01:30:13]FM_GetShiftState done [01:30:13]req_shift_opened done [01:30:13]requested_item shift.open_date is exist - process it [01:30:13]req_shift_open_date [01:30:13]req_shift_open_date done [01:30:13]produce_requested_data done [01:30:13]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31689,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:30:13]process_action_free close_receipt [01:30:13]json_value_free [01:30:13]json_value_free done [01:30:13]process_json_proto returns [01:30:13]Send response to host [01:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31689,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:30:13]free response buf [01:30:13]execute_script done [01:30:13]execute_script returns [01:30:13]free content buf [01:30:13]Sock 7.Close socket [01:30:13]Sock 7.Thread stoped [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]accept exits with 9 [01:32:07]New connection [01:32:07]New thread 3066821988 created [01:32:07]Thread 3066965348 joined [01:32:07]Waiting for new connection... [01:32:07] Sock 9.Parse request [01:32:07]Sock 9.Check first char [01:32:07]Sock 9.First char is OK [01:32:07]request: POST /json_proto HTTP/1.0 [01:32:07]Method: POST [01:32:07]URL: /json_proto [01:32:07]Method is POST - this is cgi request [01:32:07]url: /json_proto [01:32:07]query_string will be loaded in cgi processing [01:32:07]execute_cgi json_proto POST (null) [01:32:07]execute_cgi path=json_proto method=POST [01:32:07]POST find Content-Length [01:32:07]Host: 172.17.39.68:8080 [01:32:07]Content-Length: 631 [01:32:07]Content-Type: application/json [01:32:07] [01:32:07]POST finish read [01:32:07]Found Content-Length = 631 [01:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214271", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:07]execute_script... [01:32: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)214271", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:07]POST & json_proto [01:32:07]process_json_proto [01:32:07]json parsed OK: [01:32:07]protocol is kg_v1.0 [01:32:07]action value=close_receipt [01:32:07]process_action close_receipt [01:32:07]cmd_close_receipt [01:32:07]MH_GetDate [01:32:07]Write to MH i2c: F0 00 00 61 0E 5E [01:32:07]Write i2c OK [01:32:07]MH_I2C_Read... [01:32:07]Read from MH i2c: F0 [01:32:07]MH_I2C_Read... [01:32:07]Read from MH i2c: F0 09 00 [01:32:07]MH_I2C_Read... [01:32:07]Read from MH i2c: F0 09 00 61 0E 00 99 CD 95 66 D6 48 95 66 E1 [01:32:07]GetLastDocTimeStamp 1721093411 [01:32:07]current date 1721093529 [01:32:07]FM_GetShiftState [01:32:07]SAM_PROTO_GetShiftState [01:32:07]wFMCommunicate request_size=4 [01:32:07]MH_SAM_APDU [01:32:07]CAPDU: 80 13 01 00 [01:32:07]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [01:32:07]Write i2c OK [01:32:07]MH_I2C_Read... [01:32:07]OFD Sender: No OFD packet to send [01:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:07]Read from MH i2c: E2 [01:32:07]MH_I2C_Read... [01:32:07]Read from MH i2c: E2 0E 00 [01:32:07]MH_I2C_Read... [01:32:07]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3C [01:32:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:32:07]wFMCommunicate OK [01:32:07]SAM_PROTO_GetShiftState done [01:32:07]FM_GetShiftState done [01:32:07]opened in 1721088399 [01:32:07]opened+sec_in_day 1721174799 [01:32:07]quantity*price = 13800 [01:32:07]sum+1 = 13801 [01:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 9 16.07.2024 01:32 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31690 ФПД: 6337583936965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013209&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31690&fm=6337583936965&tin=02508201610067®Number=0000000000098025&sum=13800 0 [01:32:08]StoreToDocumentArchive [01:32:08]shift 371 fd 31690 [01:32:08]save to /storage/0371/doc_00031690 [01:32:08]save last doc name /storage/0371/doc_00031690 to /storage/kkm_last_doc_name [01:32:08]save OK [01:32:08]Clear old archive folders... [01:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=283 [01:32:08]tlvbuf is 0148FA90 [01:32:08]SAM_PROTO_ClearQueue [01:32:08]wFMCommunicate request_size=4 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 09 00 00 [01:32:08]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [01:32:08]RAPDU: 90 00 [01:32:08]wFMCommunicate OK [01:32:08]SAM_PROTO_ClearQueue done [01:32:08]KKMCreateOFDPacket [01:32:08]OFDProtocolAddRootSTLVToBuf [01:32:08]FM_MakeSignedData [01:32:08]FM_MakeSignedData [01:32:08]SAM_PROTO_SignData [01:32:08]wFMCommunicate request_size=4 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 0D 01 02 [01:32:08]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [01:32:08]RAPDU: 90 00 [01:32:08]wFMCommunicate OK [01:32:08]wFMCommunicate request_size=255 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 99 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 [01:32:08]Write to MH i2c: E2 02 01 71 0E 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 99 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 00 00 C3 [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [01:32:08]RAPDU: 90 00 [01:32:08]wFMCommunicate OK [01:32:08]wFMCommunicate request_size=42 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CA 7B 00 00 35 04 06 00 05 C3 95 70 75 C5 [01:32:08]Write to MH i2c: E2 2D 00 72 0E 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CA 7B 00 00 35 04 06 00 05 C3 95 70 75 C5 00 00 23 [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [01:32:08]RAPDU: 90 00 [01:32:08]wFMCommunicate OK [01:32:08]wFMCommunicate request_size=4 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 0D 03 02 [01:32:08]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 0B 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 0B 00 73 0E 00 E3 69 71 A4 94 99 60 A4 90 00 8F [01:32:08]RAPDU: E3 69 71 A4 94 99 60 A4 90 00 [01:32:08]wFMCommunicate OK [01:32:08]SAM_PROTO_SignData done [01:32:08]FM_MakeSignedData done [01:32:08]CreateOFDProtocolMessage [01:32:08]wFMCommunicate request_size=4 [01:32:08]MH_SAM_APDU [01:32:08]CAPDU: 80 11 00 00 [01:32:08]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:08]Read from MH i2c: E2 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: E2 17 00 [01:32:08]MH_I2C_Read... [01:32:09]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 57 [01:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:32:09]wFMCommunicate OK [01:32:09]CreateOFDProtocolMessage done [01:32:09]OFDSenderStorePacket 31690 [01:32:09]StoreOFDPacket docnum=31690 [01:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 E4 B1 27 01 91 F7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 99 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CA 7B 00 00 35 04 06 00 05 C3 95 70 75 C5 E3 69 71 A4 94 99 60 A4 [01:32:09]CheckFolder [01:32:09]dirname=/storage/ofd_packets [01:32:09]CheckFolder done [01:32:09]ProducePacketName [01:32:09]name=ofd_packets/00031690 [01:32:09]NVStorageSaveData ofd_packets/00031690 [01:32:09]File name is /storage/ofd_packets/00031690 [01:32:09]Write 333 bytes [01:32:09]NVStorageSaveData done [01:32:09]OFDSenderStorePacket done [01:32:09]KKMCreateOFDPacket done [01:32:09]NVStorageSaveData kkm_last_timestamp [01:32:09]File name is /storage/kkm_last_timestamp [01:32:09]Write 4 bytes [01:32:09]NVStorageSaveData done [01:32:09]ExternCall_PrintAddStr [01:32:09]wPrintStart [01:32:09]Write to MH i2c: 01 00 00 75 0E 83 [01:32:09]Write i2c OK [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 07 00 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [01:32:09]RasterBufferAndPrint [01:32:09]line Счет N : (3)214271 [01:32:09]line ИНН: 02508201610067 [01:32:09]line Контрольно-Кассовый Чек [01:32:09]line ПРОДАЖА [01:32:09]line Товар: 4640030092567 [01:32:09]line Сигареты Esse Exchange Summer Red [01:32:09]line 1.000 * 138.00 [01:32:09]line = 138.00 [01:32:09]line НДС 12% НСП 1% [01:32:09]line > о реализуемом товаре [01:32:09]line ИТОГО: 138.00 [01:32:09]line НСП 1% : 1.22 [01:32:09]line НДС 12% : 14.65 [01:32:09]line Наличными: 138.00 [01:32:09]line Безнал.: 0.00 [01:32:09]line Место: АЗС № 140 "Партнер Нефть" [01:32:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:32:09]line СНО: Общий режим [01:32:09]line Чек 9 16.07.2024 01:32 [01:32:09]line Смена: 371 ФФД: 1.0 [01:32:09]line ЗНМ: 0300000189 [01:32:09]line РНМ: 0000000000098025 [01:32:09]line Версия ККМ: 001 [01:32:09]line ФМ: 0000000000965389 [01:32:09]line ФД: 31690 [01:32:09]line ФПД: 6337583936965 [01:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013209&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31690&fm=6337583936965&tin=02508201610067®Number=0000000000098025&sum=13800 [01:32:09]line 0 [01:32:09]OFD Sender: Processing packet 31690 [packets to send 6, broken 5] [01:32:09]ProducePacketName [01:32:09]name=ofd_packets/00031690 [01:32:09]OFD Sender: To server: pG, [01:32:09]CommunicateWithHost lk.salyk.kg:30040 [01:32:09]ConnectInit lk.salyk.kg [01:32:09]written 0, free lines is 4095 [01:32:09]Connected sock=10 [01:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 E4 B1 27 01 91 F7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 99 CD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CA 7B 00 00 35 04 06 00 05 C3 95 70 75 C5 E3 69 71 A4 94 99 60 A4 [01:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 07 C6 47 00 9C 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CA 7B 00 00 F4 03 04 00 A8 79 95 66 B6 04 01 00 00 78 F3 A5 16 19 FF 94 F9 [01:32:09]CommunicateWithHost err = 0 [01:32:09]CheckOFDResponse [01:32:09]1017 (14) - 77093643461234 [01:32:09]1041 (16) - 0000000000965389 [01:32:09]1040 (4) - 31690 [01:32:09]1012 (4) - 15.07.2024 19:34 [01:32:09]1206 (1) - 0 [01:32:09]OFD Sender: Remove packet 31690 [01:32:09]ProducePacketName [01:32:09]name=ofd_packets/00031690 [01:32:09]NVStorageDeleteData [01:32:09]Write to MH i2c: 01 00 00 9E 0E AC [01:32:09]Write i2c OK [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 07 00 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 E1 0C A0 [01:32:09]RasterBufferAndPrint [01:32:09]line [01:32:09]line [01:32:09]line [01:32:09]line [01:32:09]line [01:32:09]written 0, free lines is 3303 [01:32:09]MH_Cut [01:32:09]Write to MH i2c: D1 01 00 A5 0E 01 85 [01:32:09]Write i2c OK [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: D1 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: D1 01 00 [01:32:09]MH_I2C_Read... [01:32:09]Read from MH i2c: D1 01 00 A5 0E 00 84 [01:32:09]Write to MH i2c: 01 00 00 A6 0E B4 [01:32:09]Write i2c OK [01:32:09]MH_I2C_Read... [01:32:10]OFD Sender: No OFD packet to send [01:32:10]*** Cut start [01:32:10]*** Partial cut [01:32:10]*** CUTSNS_PIN = 1 [01:32:10]*** CUTSNS_PIN = 0 [01:32:10]*** Brake cut motor [01:32:11]Read from MH i2c: 01 [01:32:11]MH_I2C_Read... [01:32:11]*** Stop cut motor [01:32:11]*** Cut end [01:32:11]Read from MH i2c: 01 07 00 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [01:32:11]process_action close_receipt done [01:32:11]requested_data is exist [01:32:11]produce_requested_data [01:32:11]requested_item fm.sn is exist - process it [01:32:11]wFMCommunicate request_size=4 [01:32:11]MH_SAM_APDU [01:32:11]CAPDU: 80 11 00 00 [01:32:11]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [01:32:11]Write i2c OK [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 [01:32:11]MH_I2C_Read... [01:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:11]Read from MH i2c: E2 17 00 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8A [01:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:32:11]wFMCommunicate OK [01:32:11]requested_item fd.num is exist - process it [01:32:11]SAM_PROTO_GetFieldsCounters [01:32:11]wFMCommunicate request_size=4 [01:32:11]MH_SAM_APDU [01:32:11]CAPDU: 80 13 00 00 [01:32:11]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [01:32:11]Write i2c OK [01:32:11]MH_I2C_Read... [01:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:11]Read from MH i2c: E2 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 62 00 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 62 00 A8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [01:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:11]wFMCommunicate OK [01:32:11]SAM_PROTO_GetFieldsCounters done [01:32:11]requested_item shift.num is exist - process it [01:32:11]requested_item shift.opened is exist - process it [01:32:11]req_shift_opened [01:32:11]FM_GetShiftState [01:32:11]SAM_PROTO_GetShiftState [01:32:11]wFMCommunicate request_size=4 [01:32:11]MH_SAM_APDU [01:32:11]CAPDU: 80 13 01 00 [01:32:11]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [01:32:11]Write i2c OK [01:32:11]MH_I2C_Read... [01:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:11]Read from MH i2c: E2 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 0E 00 [01:32:11]MH_I2C_Read... [01:32:11]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 83 [01:32:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [01:32:11]wFMCommunicate OK [01:32:11]SAM_PROTO_GetShiftState done [01:32:11]FM_GetShiftState done [01:32:11]req_shift_opened done [01:32:11]requested_item shift.open_date is exist - process it [01:32:11]req_shift_open_date [01:32:11]req_shift_open_date done [01:32:11]produce_requested_data done [01:32:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31690,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [01:32:11]process_action_free close_receipt [01:32:11]json_value_free [01:32:11]json_value_free done [01:32:11]process_json_proto returns [01:32:11]Send response to host [01:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31690,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [01:32:11]free response buf [01:32:11]execute_script done [01:32:11]execute_script returns [01:32:11]free content buf [01:32:11]Sock 9.Close socket [01:32:11]Sock 9.Thread stoped [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:18]accept exits with 7 [02:34:18]New connection [02:34:18]New thread 3066965348 created [02:34:18]Thread 3066821988 joined [02:34:18]Waiting for new connection... [02:34:18] Sock 7.Parse request [02:34:18]Sock 7.Check first char [02:34:18]Sock 7.First char is OK [02:34:18]request: POST /json_proto HTTP/1.0 [02:34:18]Method: POST [02:34:18]URL: /json_proto [02:34:18]Method is POST - this is cgi request [02:34:18]url: /json_proto [02:34:18]query_string will be loaded in cgi processing [02:34:18]execute_cgi json_proto POST (null) [02:34:18]execute_cgi path=json_proto method=POST [02:34:18]POST find Content-Length [02:34:18]Host: 172.17.39.68:8080 [02:34:18]Content-Length: 655 [02:34:18]Content-Type: application/json [02:34:18] [02:34:18]POST finish read [02:34:18]Found Content-Length = 655 [02:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214272", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.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" ] } } [02:34:18]execute_script... [02:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214272", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.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" ] } } [02:34:18]POST & json_proto [02:34:18]process_json_proto [02:34:18]json parsed OK: [02:34:18]protocol is kg_v1.0 [02:34:18]action value=close_receipt [02:34:18]process_action close_receipt [02:34:18]cmd_close_receipt [02:34:18]MH_GetDate [02:34:18]Write to MH i2c: F0 00 00 AA 0E A7 [02:34:18]Write i2c OK [02:34:18]MH_I2C_Read... [02:34:18]Read from MH i2c: F0 [02:34:18]MH_I2C_Read... [02:34:18]Read from MH i2c: F0 09 00 [02:34:18]MH_I2C_Read... [02:34:18]Read from MH i2c: F0 09 00 AA 0E 00 2C DC 95 66 D6 48 95 66 CC [02:34:18]GetLastDocTimeStamp 1721093529 [02:34:18]current date 1721097260 [02:34:18]FM_GetShiftState [02:34:18]SAM_PROTO_GetShiftState [02:34:18]wFMCommunicate request_size=4 [02:34:18]MH_SAM_APDU [02:34:18]CAPDU: 80 13 01 00 [02:34:18]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [02:34:18]Write i2c OK [02:34:18]MH_I2C_Read... [02:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:18]Read from MH i2c: E2 [02:34:18]MH_I2C_Read... [02:34:18]Read from MH i2c: E2 0E 00 [02:34:18]MH_I2C_Read... [02:34:18]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 85 [02:34:18]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:34:18]wFMCommunicate OK [02:34:18]SAM_PROTO_GetShiftState done [02:34:18]FM_GetShiftState done [02:34:18]opened in 1721088399 [02:34:18]opened+sec_in_day 1721174799 [02:34:18]quantity*price = 26000 [02:34:18]sum+1 = 26001 [02:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 10 16.07.2024 02:34 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31691 ФПД: 169764614323383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023420&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31691&fm=169764614323383&tin=02508201610067®Number=0000000000098025&sum=26000 0 [02:34:19]StoreToDocumentArchive [02:34:19]shift 371 fd 31691 [02:34:19]save to /storage/0371/doc_00031691 [02:34:19]save last doc name /storage/0371/doc_00031691 to /storage/kkm_last_doc_name [02:34:19]save OK [02:34:19]Clear old archive folders... [02:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=279 [02:34:19]tlvbuf is 0148A580 [02:34:19]SAM_PROTO_ClearQueue [02:34:19]wFMCommunicate request_size=4 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 09 00 00 [02:34:19]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:34:19]Read from MH i2c: E2 03 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [02:34:19]RAPDU: 90 00 [02:34:19]wFMCommunicate OK [02:34:19]SAM_PROTO_ClearQueue done [02:34:19]KKMCreateOFDPacket [02:34:19]OFDProtocolAddRootSTLVToBuf [02:34:19]FM_MakeSignedData [02:34:19]FM_MakeSignedData [02:34:19]SAM_PROTO_SignData [02:34:19]wFMCommunicate request_size=4 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 0D 01 02 [02:34:19]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [02:34:19]RAPDU: 90 00 [02:34:19]wFMCommunicate OK [02:34:19]wFMCommunicate request_size=255 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0A 00 00 00 F4 03 04 00 2C DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 [02:34:19]Write to MH i2c: E2 02 01 BA 0E 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0A 00 00 00 F4 03 04 00 2C DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 00 00 BA [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [02:34:19]RAPDU: 90 00 [02:34:19]wFMCommunicate OK [02:34:19]wFMCommunicate request_size=38 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CB 7B 00 00 35 04 06 00 9A 66 67 88 3C B7 [02:34:19]Write to MH i2c: E2 29 00 BB 0E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CB 7B 00 00 35 04 06 00 9A 66 67 88 3C B7 00 00 FC [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [02:34:19]RAPDU: 90 00 [02:34:19]wFMCommunicate OK [02:34:19]wFMCommunicate request_size=4 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 0D 03 02 [02:34:19]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 0B 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 0B 00 BC 0E 00 3A 34 6D 6C 3A FE 24 F2 90 00 DB [02:34:19]RAPDU: 3A 34 6D 6C 3A FE 24 F2 90 00 [02:34:19]wFMCommunicate OK [02:34:19]SAM_PROTO_SignData done [02:34:19]FM_MakeSignedData done [02:34:19]CreateOFDProtocolMessage [02:34:19]wFMCommunicate request_size=4 [02:34:19]MH_SAM_APDU [02:34:19]CAPDU: 80 11 00 00 [02:34:19]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:19]Read from MH i2c: E2 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 17 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A0 [02:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:34:19]wFMCommunicate OK [02:34:19]CreateOFDProtocolMessage done [02:34:19]OFDSenderStorePacket 31691 [02:34:19]StoreOFDPacket docnum=31691 [02:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2B 01 00 00 7F 2B 23 01 68 5B 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0A 00 00 00 F4 03 04 00 2C DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CB 7B 00 00 35 04 06 00 9A 66 67 88 3C B7 3A 34 6D 6C 3A FE 24 F2 [02:34:19]CheckFolder [02:34:19]dirname=/storage/ofd_packets [02:34:19]CheckFolder done [02:34:19]ProducePacketName [02:34:19]name=ofd_packets/00031691 [02:34:19]NVStorageSaveData ofd_packets/00031691 [02:34:19]File name is /storage/ofd_packets/00031691 [02:34:19]Write 329 bytes [02:34:19]NVStorageSaveData done [02:34:19]OFDSenderStorePacket done [02:34:19]KKMCreateOFDPacket done [02:34:19]NVStorageSaveData kkm_last_timestamp [02:34:19]File name is /storage/kkm_last_timestamp [02:34:19]Write 4 bytes [02:34:19]NVStorageSaveData done [02:34:19]ExternCall_PrintAddStr [02:34:19]wPrintStart [02:34:19]Write to MH i2c: 01 00 00 BE 0E CC [02:34:19]Write i2c OK [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: 01 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: 01 07 00 [02:34:19]MH_I2C_Read... [02:34:19]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [02:34:19]RasterBufferAndPrint [02:34:19]line Счет N : (3)214272 [02:34:19]line ИНН: 02508201610067 [02:34:19]line Контрольно-Кассовый Чек [02:34:19]line ПРОДАЖА [02:34:19]line Товар: 4700002083914 [02:34:19]line Водка Сары челек 0,35л [02:34:19]line 1.000 * 260.00 [02:34:19]line = 260.00 [02:34:19]line НДС 12% НСП 1% [02:34:19]line > о реализуемом товаре [02:34:19]line ИТОГО: 260.00 [02:34:19]line НСП 1% : 2.30 [02:34:19]line НДС 12% : 27.61 [02:34:19]line Наличными: 260.00 [02:34:19]line Безнал.: 0.00 [02:34:19]line Место: АЗС № 140 "Партнер Нефть" [02:34:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:34:19]line СНО: Общий режим [02:34:19]line Чек 10 16.07.2024 02:34 [02:34:19]line Смена: 371 ФФД: 1.0 [02:34:19]line ЗНМ: 0300000189 [02:34:19]line РНМ: 0000000000098025 [02:34:19]line Версия ККМ: 001 [02:34:19]line ФМ: 0000000000965389 [02:34:19]line ФД: 31691 [02:34:19]line ФПД: 169764614323383 [02:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023420&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31691&fm=169764614323383&tin=02508201610067®Number=0000000000098025&sum=26000 [02:34:20]line 0 [02:34:20]OFD Sender: Processing packet 31691 [packets to send 6, broken 5] [02:34:20]ProducePacketName [02:34:20]name=ofd_packets/00031691 [02:34:20]OFD Sender: To server: pG, [02:34:20]CommunicateWithHost lk.salyk.kg:30040 [02:34:20]ConnectInit lk.salyk.kg [02:34:20]written 0, free lines is 4095 [02:34:20]Connected sock=10 [02:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2B 01 00 00 7F 2B 23 01 68 5B 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0A 00 00 00 F4 03 04 00 2C DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CB 7B 00 00 35 04 06 00 9A 66 67 88 3C B7 3A 34 6D 6C 3A FE 24 F2 [02:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 61 C5 47 00 F8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CB 7B 00 00 F4 03 04 00 3A 88 95 66 B6 04 01 00 00 4D 40 E5 FD BC DD 49 FE [02:34:20]CommunicateWithHost err = 0 [02:34:20]CheckOFDResponse [02:34:20]1017 (14) - 77093643461234 [02:34:20]1041 (16) - 0000000000965389 [02:34:20]1040 (4) - 31691 [02:34:20]1012 (4) - 15.07.2024 20:36 [02:34:20]1206 (1) - 0 [02:34:20]OFD Sender: Remove packet 31691 [02:34:20]ProducePacketName [02:34:20]name=ofd_packets/00031691 [02:34:20]NVStorageDeleteData [02:34:20]Write to MH i2c: 01 00 00 E6 0E F4 [02:34:20]Write i2c OK [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: 01 [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: 01 07 00 [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 02 0D 0A [02:34:20]RasterBufferAndPrint [02:34:20]line [02:34:20]line [02:34:20]line [02:34:20]line [02:34:20]line [02:34:20]written 0, free lines is 3337 [02:34:20]MH_Cut [02:34:20]Write to MH i2c: D1 01 00 ED 0E 01 CD [02:34:20]Write i2c OK [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: D1 [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: D1 01 00 [02:34:20]MH_I2C_Read... [02:34:20]Read from MH i2c: D1 01 00 ED 0E 00 CC [02:34:20]Write to MH i2c: 01 00 00 EE 0E FC [02:34:20]Write i2c OK [02:34:20]MH_I2C_Read... [02:34:21]OFD Sender: No OFD packet to send [02:34:21]*** Cut start [02:34:21]*** Partial cut [02:34:21]*** CUTSNS_PIN = 1 [02:34:21]*** CUTSNS_PIN = 0 [02:34:21]*** Brake cut motor [02:34:22]Read from MH i2c: 01 [02:34:22]MH_I2C_Read... [02:34:22]*** Stop cut motor [02:34:22]*** Cut end [02:34:22]Read from MH i2c: 01 07 00 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [02:34:22]process_action close_receipt done [02:34:22]requested_data is exist [02:34:22]produce_requested_data [02:34:22]requested_item fm.sn is exist - process it [02:34:22]wFMCommunicate request_size=4 [02:34:22]MH_SAM_APDU [02:34:22]CAPDU: 80 11 00 00 [02:34:22]Write to MH i2c: E2 08 00 EF 0E 80 11 00 00 00 00 00 00 77 [02:34:22]Write i2c OK [02:34:22]MH_I2C_Read... [02:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:22]Read from MH i2c: E2 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 17 00 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 17 00 EF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [02:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:34:22]wFMCommunicate OK [02:34:22]requested_item fd.num is exist - process it [02:34:22]SAM_PROTO_GetFieldsCounters [02:34:22]wFMCommunicate request_size=4 [02:34:22]MH_SAM_APDU [02:34:22]CAPDU: 80 13 00 00 [02:34:22]Write to MH i2c: E2 08 00 F0 0E 80 13 00 00 00 00 00 00 7A [02:34:22]Write i2c OK [02:34:22]MH_I2C_Read... [02:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:34:22]Read from MH i2c: E2 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 62 00 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 62 00 F0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [02:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:34:22]wFMCommunicate OK [02:34:22]SAM_PROTO_GetFieldsCounters done [02:34:22]requested_item shift.num is exist - process it [02:34:22]requested_item shift.opened is exist - process it [02:34:22]req_shift_opened [02:34:22]FM_GetShiftState [02:34:22]SAM_PROTO_GetShiftState [02:34:22]wFMCommunicate request_size=4 [02:34:22]MH_SAM_APDU [02:34:22]CAPDU: 80 13 01 00 [02:34:22]Write to MH i2c: E2 08 00 F1 0E 80 13 01 00 00 00 00 00 7C [02:34:22]Write i2c OK [02:34:22]MH_I2C_Read... [02:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:22]Read from MH i2c: E2 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 0E 00 [02:34:22]MH_I2C_Read... [02:34:22]Read from MH i2c: E2 0E 00 F1 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CB [02:34:22]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:34:22]wFMCommunicate OK [02:34:22]SAM_PROTO_GetShiftState done [02:34:22]FM_GetShiftState done [02:34:22]req_shift_opened done [02:34:22]requested_item shift.open_date is exist - process it [02:34:22]req_shift_open_date [02:34:22]req_shift_open_date done [02:34:22]produce_requested_data done [02:34:22]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31691,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:34:22]process_action_free close_receipt [02:34:22]json_value_free [02:34:22]json_value_free done [02:34:22]process_json_proto returns [02:34:22]Send response to host [02:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31691,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:34:22]free response buf [02:34:22]execute_script done [02:34:22]execute_script returns [02:34:22]free content buf [02:34:22]Sock 7.Close socket [02:34:22]Sock 7.Thread stoped [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:01]accept exits with 9 [02:36:01]New connection [02:36:01]New thread 3066821988 created [02:36:01]Thread 3066965348 joined [02:36:01]Waiting for new connection... [02:36:01] Sock 9.Parse request [02:36:01]Sock 9.Check first char [02:36:01]Sock 9.First char is OK [02:36:01]request: POST /json_proto HTTP/1.0 [02:36:01]Method: POST [02:36:01]URL: /json_proto [02:36:01]Method is POST - this is cgi request [02:36:01]url: /json_proto [02:36:01]query_string will be loaded in cgi processing [02:36:01]execute_cgi json_proto POST (null) [02:36:01]execute_cgi path=json_proto method=POST [02:36:01]POST find Content-Length [02:36:01]Host: 172.17.39.68:8080 [02:36:01]Content-Length: 614 [02:36:01]Content-Type: application/json [02:36:01] [02:36:01]POST finish read [02:36:01]Found Content-Length = 614 [02:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214273", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:01]execute_script... [02:36: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)214273", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:01]POST & json_proto [02:36:01]process_json_proto [02:36:01]json parsed OK: [02:36:01]protocol is kg_v1.0 [02:36:01]action value=close_receipt [02:36:01]process_action close_receipt [02:36:01]cmd_close_receipt [02:36:01]MH_GetDate [02:36:01]Write to MH i2c: F0 00 00 F2 0E EF [02:36:01]Write i2c OK [02:36:01]MH_I2C_Read... [02:36:01]Read from MH i2c: F0 [02:36:01]MH_I2C_Read... [02:36:01]Read from MH i2c: F0 09 00 [02:36:01]MH_I2C_Read... [02:36:01]Read from MH i2c: F0 09 00 F2 0E 00 93 DC 95 66 D6 48 95 66 7B [02:36:01]GetLastDocTimeStamp 1721097260 [02:36:01]current date 1721097363 [02:36:01]FM_GetShiftState [02:36:01]SAM_PROTO_GetShiftState [02:36:01]wFMCommunicate request_size=4 [02:36:01]MH_SAM_APDU [02:36:01]CAPDU: 80 13 01 00 [02:36:01]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [02:36:01]Write i2c OK [02:36:01]MH_I2C_Read... [02:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:01]Read from MH i2c: E2 [02:36:01]MH_I2C_Read... [02:36:01]Read from MH i2c: E2 0E 00 [02:36:01]MH_I2C_Read... [02:36:01]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CD [02:36:01]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:36:01]wFMCommunicate OK [02:36:01]SAM_PROTO_GetShiftState done [02:36:01]FM_GetShiftState done [02:36:01]opened in 1721088399 [02:36:01]opened+sec_in_day 1721174799 [02:36:01]quantity*price = 11100 [02:36:01]sum+1 = 11101 [02:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 11 16.07.2024 02:36 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31692 ФПД: 75196422354908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023603&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31692&fm=75196422354908&tin=02508201610067®Number=0000000000098025&sum=11100 0 [02:36:02]StoreToDocumentArchive [02:36:02]shift 371 fd 31692 [02:36:02]save to /storage/0371/doc_00031692 [02:36:02]save last doc name /storage/0371/doc_00031692 to /storage/kkm_last_doc_name [02:36:02]save OK [02:36:02]Clear old archive folders... [02:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=266 [02:36:02]tlvbuf is 01494350 [02:36:02]SAM_PROTO_ClearQueue [02:36:02]wFMCommunicate request_size=4 [02:36:02]MH_SAM_APDU [02:36:02]CAPDU: 80 09 00 00 [02:36:02]Write to MH i2c: E2 08 00 00 0F 80 09 00 00 00 00 00 00 81 [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [02:36:02]RAPDU: 90 00 [02:36:02]wFMCommunicate OK [02:36:02]SAM_PROTO_ClearQueue done [02:36:02]KKMCreateOFDPacket [02:36:02]OFDProtocolAddRootSTLVToBuf [02:36:02]FM_MakeSignedData [02:36:02]FM_MakeSignedData [02:36:02]SAM_PROTO_SignData [02:36:02]wFMCommunicate request_size=4 [02:36:02]MH_SAM_APDU [02:36:02]CAPDU: 80 0D 01 02 [02:36:02]Write to MH i2c: E2 08 00 01 0F 80 0D 01 02 00 00 00 00 89 [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [02:36:02]RAPDU: 90 00 [02:36:02]wFMCommunicate OK [02:36:02]wFMCommunicate request_size=255 [02:36:02]MH_SAM_APDU [02:36:02]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 93 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [02:36:02]Write to MH i2c: E2 02 01 02 0F 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 93 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 87 [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [02:36:02]RAPDU: 90 00 [02:36:02]wFMCommunicate OK [02:36:02]wFMCommunicate request_size=25 [02:36:02]MH_SAM_APDU [02:36:02]CAPDU: 80 0D 02 02 14 38 39 10 04 04 00 CC 7B 00 00 35 04 06 00 44 64 08 0A F7 DC [02:36:02]Write to MH i2c: E2 1C 00 03 0F 80 0D 02 02 14 00 38 39 10 04 04 00 CC 7B 00 00 35 04 06 00 44 64 08 0A F7 DC 00 00 50 [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [02:36:02]RAPDU: 90 00 [02:36:02]wFMCommunicate OK [02:36:02]wFMCommunicate request_size=4 [02:36:02]MH_SAM_APDU [02:36:02]CAPDU: 80 0D 03 02 [02:36:02]Write to MH i2c: E2 08 00 04 0F 80 0D 03 02 00 00 00 00 8E [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 0B 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 0B 00 04 0F 00 A0 BB 55 93 D7 67 64 39 90 00 AD [02:36:02]RAPDU: A0 BB 55 93 D7 67 64 39 90 00 [02:36:02]wFMCommunicate OK [02:36:02]SAM_PROTO_SignData done [02:36:02]FM_MakeSignedData done [02:36:02]CreateOFDProtocolMessage [02:36:02]wFMCommunicate request_size=4 [02:36:02]MH_SAM_APDU [02:36:02]CAPDU: 80 11 00 00 [02:36:02]Write to MH i2c: E2 08 00 05 0F 80 11 00 00 00 00 00 00 8E [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:02]Read from MH i2c: E2 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 17 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: E2 17 00 05 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E9 [02:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:36:02]wFMCommunicate OK [02:36:02]CreateOFDProtocolMessage done [02:36:02]OFDSenderStorePacket 31692 [02:36:02]StoreOFDPacket docnum=31692 [02:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 6E A0 16 01 43 B1 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 93 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CC 7B 00 00 35 04 06 00 44 64 08 0A F7 DC A0 BB 55 93 D7 67 64 39 [02:36:02]CheckFolder [02:36:02]dirname=/storage/ofd_packets [02:36:02]CheckFolder done [02:36:02]ProducePacketName [02:36:02]name=ofd_packets/00031692 [02:36:02]NVStorageSaveData ofd_packets/00031692 [02:36:02]File name is /storage/ofd_packets/00031692 [02:36:02]Write 316 bytes [02:36:02]NVStorageSaveData done [02:36:02]OFDSenderStorePacket done [02:36:02]KKMCreateOFDPacket done [02:36:02]NVStorageSaveData kkm_last_timestamp [02:36:02]File name is /storage/kkm_last_timestamp [02:36:02]Write 4 bytes [02:36:02]NVStorageSaveData done [02:36:02]ExternCall_PrintAddStr [02:36:02]wPrintStart [02:36:02]Write to MH i2c: 01 00 00 06 0F 15 [02:36:02]Write i2c OK [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: 01 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: 01 07 00 [02:36:02]MH_I2C_Read... [02:36:02]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 FF 0F 2A [02:36:02]RasterBufferAndPrint [02:36:02]line Счет N : (3)214273 [02:36:02]line ИНН: 02508201610067 [02:36:02]line Контрольно-Кассовый Чек [02:36:02]line ПРОДАЖА [02:36:02]line Товар: 4870001570071 [02:36:02]line Напиток Pepsi 1л [02:36:02]line 1.000 * 111.00 [02:36:02]line = 111.00 [02:36:02]line НДС 12% НСП 1% [02:36:02]line > о реализуемом товаре [02:36:02]line ИТОГО: 111.00 [02:36:02]line НСП 1% : 0.98 [02:36:02]line НДС 12% : 11.79 [02:36:02]line Наличными: 111.00 [02:36:02]line Безнал.: 0.00 [02:36:02]line Место: АЗС № 140 "Партнер Нефть" [02:36:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:36:02]line СНО: Общий режим [02:36:02]line Чек 11 16.07.2024 02:36 [02:36:02]line Смена: 371 ФФД: 1.0 [02:36:02]line ЗНМ: 0300000189 [02:36:02]line РНМ: 0000000000098025 [02:36:02]line Версия ККМ: 001 [02:36:03]line ФМ: 0000000000965389 [02:36:03]line ФД: 31692 [02:36:03]line ФПД: 75196422354908 [02:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023603&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31692&fm=75196422354908&tin=02508201610067®Number=0000000000098025&sum=11100 [02:36:03]line 0 [02:36:03]OFD Sender: Processing packet 31692 [packets to send 6, broken 5] [02:36:03]ProducePacketName [02:36:03]name=ofd_packets/00031692 [02:36:03]OFD Sender: To server: pG, [02:36:03]CommunicateWithHost lk.salyk.kg:30040 [02:36:03]ConnectInit lk.salyk.kg [02:36:03]written 0, free lines is 4095 [02:36:03]Connected sock=10 [02:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 6E A0 16 01 43 B1 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 93 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CC 7B 00 00 35 04 06 00 44 64 08 0A F7 DC A0 BB 55 93 D7 67 64 39 [02:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 68 18 47 00 1F D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CC 7B 00 00 F4 03 04 00 A2 88 95 66 B6 04 01 00 00 22 39 CB 4F A1 25 8F 8B [02:36:03]CommunicateWithHost err = 0 [02:36:03]CheckOFDResponse [02:36:03]1017 (14) - 77093643461234 [02:36:03]1041 (16) - 0000000000965389 [02:36:03]1040 (4) - 31692 [02:36:03]1012 (4) - 15.07.2024 20:37 [02:36:03]1206 (1) - 0 [02:36:03]OFD Sender: Remove packet 31692 [02:36:03]ProducePacketName [02:36:03]name=ofd_packets/00031692 [02:36:03]NVStorageDeleteData [02:36:03]Write to MH i2c: 01 00 00 2E 0F 3D [02:36:03]Write i2c OK [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: 01 [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: 01 07 00 [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 00 0D 51 [02:36:03]RasterBufferAndPrint [02:36:03]line [02:36:03]line [02:36:03]line [02:36:03]line [02:36:03]line [02:36:03]written 0, free lines is 3334 [02:36:03]MH_Cut [02:36:03]Write to MH i2c: D1 01 00 35 0F 01 16 [02:36:03]Write i2c OK [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: D1 [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: D1 01 00 [02:36:03]MH_I2C_Read... [02:36:03]Read from MH i2c: D1 01 00 35 0F 00 15 [02:36:03]Write to MH i2c: 01 00 00 36 0F 45 [02:36:03]Write i2c OK [02:36:03]MH_I2C_Read... [02:36:04]OFD Sender: No OFD packet to send [02:36:04]*** Cut start [02:36:04]*** Partial cut [02:36:04]*** CUTSNS_PIN = 1 [02:36:04]*** CUTSNS_PIN = 0 [02:36:04]*** Brake cut motor [02:36:05]Read from MH i2c: 01 [02:36:05]MH_I2C_Read... [02:36:05]*** Stop cut motor [02:36:05]*** Cut end [02:36:05]Read from MH i2c: 01 07 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FF 0F 5A [02:36:05]process_action close_receipt done [02:36:05]requested_data is exist [02:36:05]produce_requested_data [02:36:05]requested_item fm.sn is exist - process it [02:36:05]wFMCommunicate request_size=4 [02:36:05]MH_SAM_APDU [02:36:05]CAPDU: 80 11 00 00 [02:36:05]Write to MH i2c: E2 08 00 37 0F 80 11 00 00 00 00 00 00 C0 [02:36:05]Write i2c OK [02:36:05]MH_I2C_Read... [02:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:05]Read from MH i2c: E2 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 17 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 17 00 37 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1B [02:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:36:05]wFMCommunicate OK [02:36:05]requested_item fd.num is exist - process it [02:36:05]SAM_PROTO_GetFieldsCounters [02:36:05]wFMCommunicate request_size=4 [02:36:05]MH_SAM_APDU [02:36:05]CAPDU: 80 13 00 00 [02:36:05]Write to MH i2c: E2 08 00 38 0F 80 13 00 00 00 00 00 00 C3 [02:36:05]Write i2c OK [02:36:05]MH_I2C_Read... [02:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:05]Read from MH i2c: E2 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 62 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 62 00 38 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [02:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:36:05]wFMCommunicate OK [02:36:05]SAM_PROTO_GetFieldsCounters done [02:36:05]requested_item shift.num is exist - process it [02:36:05]requested_item shift.opened is exist - process it [02:36:05]req_shift_opened [02:36:05]FM_GetShiftState [02:36:05]SAM_PROTO_GetShiftState [02:36:05]wFMCommunicate request_size=4 [02:36:05]MH_SAM_APDU [02:36:05]CAPDU: 80 13 01 00 [02:36:05]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [02:36:05]Write i2c OK [02:36:05]MH_I2C_Read... [02:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:05]Read from MH i2c: E2 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 0E 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 14 [02:36:05]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:36:05]wFMCommunicate OK [02:36:05]SAM_PROTO_GetShiftState done [02:36:05]FM_GetShiftState done [02:36:05]req_shift_opened done [02:36:05]requested_item shift.open_date is exist - process it [02:36:05]req_shift_open_date [02:36:05]req_shift_open_date done [02:36:05]produce_requested_data done [02:36:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31692,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:36:05]process_action_free close_receipt [02:36:05]json_value_free [02:36:05]json_value_free done [02:36:05]process_json_proto returns [02:36:05]Send response to host [02:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31692,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:36:05]free response buf [02:36:05]execute_script done [02:36:05]execute_script returns [02:36:05]free content buf [02:36:05]Sock 9.Close socket [02:36:05]Sock 9.Thread stoped [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:43]accept exits with 7 [02:36:43]New connection [02:36:43]New thread 3066965348 created [02:36:43]Thread 3066821988 joined [02:36:43]Waiting for new connection... [02:36:43] Sock 7.Parse request [02:36:43]Sock 7.Check first char [02:36:43]Sock 7.First char is OK [02:36:43]request: POST /json_proto HTTP/1.0 [02:36:43]Method: POST [02:36:43]URL: /json_proto [02:36:43]Method is POST - this is cgi request [02:36:43]url: /json_proto [02:36:43]query_string will be loaded in cgi processing [02:36:43]execute_cgi json_proto POST (null) [02:36:43]execute_cgi path=json_proto method=POST [02:36:43]POST find Content-Length [02:36:43]Host: 172.17.39.68:8080 [02:36:43]Content-Length: 675 [02:36:43]Content-Type: application/json [02:36:43] [02:36:43]POST finish read [02:36:43]Found Content-Length = 675 [02:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214274", "tax_sys" : 0, "items" : [ { "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" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:43]execute_script... [02:36: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)214274", "tax_sys" : 0, "items" : [ { "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" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:43]POST & json_proto [02:36:43]process_json_proto [02:36:43]json parsed OK: [02:36:43]protocol is kg_v1.0 [02:36:43]action value=close_receipt [02:36:43]process_action close_receipt [02:36:43]cmd_close_receipt [02:36:43]MH_GetDate [02:36:43]Write to MH i2c: F0 00 00 3A 0F 38 [02:36:43]Write i2c OK [02:36:43]MH_I2C_Read... [02:36:43]Read from MH i2c: F0 [02:36:43]MH_I2C_Read... [02:36:43]Read from MH i2c: F0 09 00 [02:36:43]MH_I2C_Read... [02:36:43]Read from MH i2c: F0 09 00 3A 0F 00 BD DC 95 66 D6 48 95 66 EE [02:36:43]GetLastDocTimeStamp 1721097363 [02:36:43]current date 1721097405 [02:36:43]FM_GetShiftState [02:36:43]SAM_PROTO_GetShiftState [02:36:43]wFMCommunicate request_size=4 [02:36:43]MH_SAM_APDU [02:36:43]CAPDU: 80 13 01 00 [02:36:43]Write to MH i2c: E2 08 00 3B 0F 80 13 01 00 00 00 00 00 C7 [02:36:43]Write i2c OK [02:36:43]MH_I2C_Read... [02:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:43]Read from MH i2c: E2 [02:36:43]MH_I2C_Read... [02:36:43]Read from MH i2c: E2 0E 00 [02:36:43]MH_I2C_Read... [02:36:43]Read from MH i2c: E2 0E 00 3B 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 16 [02:36:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:36:43]wFMCommunicate OK [02:36:43]SAM_PROTO_GetShiftState done [02:36:43]FM_GetShiftState done [02:36:43]opened in 1721088399 [02:36:43]opened+sec_in_day 1721174799 [02:36:43]quantity*price = 4200 [02:36:43]sum+1 = 4201 [02:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 12 16.07.2024 02:36 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31693 ФПД: 270734469126066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023645&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31693&fm=270734469126066&tin=02508201610067®Number=0000000000098025&sum=4200 0 [02:36:44]StoreToDocumentArchive [02:36:44]shift 371 fd 31693 [02:36:44]save to /storage/0371/doc_00031693 [02:36:44]save last doc name /storage/0371/doc_00031693 to /storage/kkm_last_doc_name [02:36:44]save OK [02:36:44]Clear old archive folders... [02:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=287 [02:36:44]tlvbuf is B6EDD350 [02:36:44]SAM_PROTO_ClearQueue [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 09 00 00 [02:36:44]Write to MH i2c: E2 08 00 48 0F 80 09 00 00 00 00 00 00 C9 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [02:36:44]RAPDU: 90 00 [02:36:44]wFMCommunicate OK [02:36:44]SAM_PROTO_ClearQueue done [02:36:44]KKMCreateOFDPacket [02:36:44]OFDProtocolAddRootSTLVToBuf [02:36:44]FM_MakeSignedData [02:36:44]FM_MakeSignedData [02:36:44]SAM_PROTO_SignData [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 0D 01 02 [02:36:44]Write to MH i2c: E2 08 00 49 0F 80 0D 01 02 00 00 00 00 D1 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [02:36:44]RAPDU: 90 00 [02:36:44]wFMCommunicate OK [02:36:44]wFMCommunicate request_size=255 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 70 17 00 00 00 00 00 37 04 06 00 BC 02 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 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 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 BD DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [02:36:44]Write to MH i2c: E2 02 01 4A 0F 80 0D 02 02 FA 00 03 00 1F 01 1E 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 70 17 00 00 00 00 00 37 04 06 00 BC 02 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 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 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 BD DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 85 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [02:36:44]RAPDU: 90 00 [02:36:44]wFMCommunicate OK [02:36:44]wFMCommunicate request_size=46 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CD 7B 00 00 35 04 06 00 F6 3B 47 DC 57 B2 [02:36:44]Write to MH i2c: E2 31 00 4B 0F 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CD 7B 00 00 35 04 06 00 F6 3B 47 DC 57 B2 00 00 06 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [02:36:44]RAPDU: 90 00 [02:36:44]wFMCommunicate OK [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 0D 03 02 [02:36:44]Write to MH i2c: E2 08 00 4C 0F 80 0D 03 02 00 00 00 00 D6 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 0B 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 0B 00 4C 0F 00 71 AD E1 1B 81 17 00 63 90 00 EC [02:36:44]RAPDU: 71 AD E1 1B 81 17 00 63 90 00 [02:36:44]wFMCommunicate OK [02:36:44]SAM_PROTO_SignData done [02:36:44]FM_MakeSignedData done [02:36:44]CreateOFDProtocolMessage [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 11 00 00 [02:36:44]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:45]Read from MH i2c: E2 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: E2 17 00 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 31 [02:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:36:45]wFMCommunicate OK [02:36:45]CreateOFDProtocolMessage done [02:36:45]OFDSenderStorePacket 31693 [02:36:45]StoreOFDPacket docnum=31693 [02:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 EC 5C 2B 01 A0 22 5A 03 01 00 03 00 1F 01 1E 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 70 17 00 00 00 00 00 37 04 06 00 BC 02 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 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 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 BD DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CD 7B 00 00 35 04 06 00 F6 3B 47 DC 57 B2 71 AD E1 1B 81 17 00 63 [02:36:45]CheckFolder [02:36:45]dirname=/storage/ofd_packets [02:36:45]CheckFolder done [02:36:45]ProducePacketName [02:36:45]name=ofd_packets/00031693 [02:36:45]NVStorageSaveData ofd_packets/00031693 [02:36:45]File name is /storage/ofd_packets/00031693 [02:36:45]Write 337 bytes [02:36:45]NVStorageSaveData done [02:36:45]OFDSenderStorePacket done [02:36:45]KKMCreateOFDPacket done [02:36:45]NVStorageSaveData kkm_last_timestamp [02:36:45]File name is /storage/kkm_last_timestamp [02:36:45]Write 4 bytes [02:36:45]NVStorageSaveData done [02:36:45]ExternCall_PrintAddStr [02:36:45]wPrintStart [02:36:45]Write to MH i2c: 01 00 00 4E 0F 5D [02:36:45]Write i2c OK [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 07 00 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FF 0F 72 [02:36:45]RasterBufferAndPrint [02:36:45]line Счет N : (3)214274 [02:36:45]line ИНН: 02508201610067 [02:36:45]line Контрольно-Кассовый Чек [02:36:45]line ПРОДАЖА [02:36:45]line Товар: 2000053020015 [02:36:45]line Бумажные стаканы 250мл 1шт [02:36:45]line 6.000 * 7.00 [02:36:45]line = 42.00 [02:36:45]line НДС 12% НСП 1% [02:36:45]line > о реализуемом товаре [02:36:45]line ИТОГО: 42.00 [02:36:45]line НСП 1% : 0.37 [02:36:45]line НДС 12% : 4.46 [02:36:45]line Наличными: 42.00 [02:36:45]line Безнал.: 0.00 [02:36:45]line Место: АЗС № 140 "Партнер Нефть" [02:36:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:36:45]line СНО: Общий режим [02:36:45]line Чек 12 16.07.2024 02:36 [02:36:45]line Смена: 371 ФФД: 1.0 [02:36:45]line ЗНМ: 0300000189 [02:36:45]line РНМ: 0000000000098025 [02:36:45]line Версия ККМ: 001 [02:36:45]line ФМ: 0000000000965389 [02:36:45]line ФД: 31693 [02:36:45]line ФПД: 270734469126066 [02:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023645&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31693&fm=270734469126066&tin=02508201610067®Number=0000000000098025&sum=4200 [02:36:45]line 0 [02:36:45]OFD Sender: Processing packet 31693 [packets to send 6, broken 5] [02:36:45]ProducePacketName [02:36:45]name=ofd_packets/00031693 [02:36:45]OFD Sender: To server: pG, [02:36:45]CommunicateWithHost lk.salyk.kg:30040 [02:36:45]ConnectInit lk.salyk.kg [02:36:45]written 0, free lines is 4095 [02:36:45]Connected sock=10 [02:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 EC 5C 2B 01 A0 22 5A 03 01 00 03 00 1F 01 1E 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 70 17 00 00 00 00 00 37 04 06 00 BC 02 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 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 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 BD DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CD 7B 00 00 35 04 06 00 F6 3B 47 DC 57 B2 71 AD E1 1B 81 17 00 63 [02:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DF 3F 47 00 B0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CD 7B 00 00 F4 03 04 00 CC 88 95 66 B6 04 01 00 00 53 1E A5 46 6A D7 4D 52 [02:36:45]CommunicateWithHost err = 0 [02:36:45]CheckOFDResponse [02:36:45]1017 (14) - 77093643461234 [02:36:45]1041 (16) - 0000000000965389 [02:36:45]1040 (4) - 31693 [02:36:45]1012 (4) - 15.07.2024 20:38 [02:36:45]1206 (1) - 0 [02:36:45]OFD Sender: Remove packet 31693 [02:36:45]ProducePacketName [02:36:45]name=ofd_packets/00031693 [02:36:45]NVStorageDeleteData [02:36:45]Write to MH i2c: 01 00 00 77 0F 86 [02:36:45]Write i2c OK [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 07 00 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 D1 0C 6A [02:36:45]RasterBufferAndPrint [02:36:45]line [02:36:45]line [02:36:45]line [02:36:45]line [02:36:45]line [02:36:45]written 0, free lines is 3287 [02:36:45]MH_Cut [02:36:45]Write to MH i2c: D1 01 00 7E 0F 01 5F [02:36:45]Write i2c OK [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: D1 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: D1 01 00 [02:36:45]MH_I2C_Read... [02:36:45]Read from MH i2c: D1 01 00 7E 0F 00 5E [02:36:45]Write to MH i2c: 01 00 00 7F 0F 8E [02:36:45]Write i2c OK [02:36:45]MH_I2C_Read... [02:36:46]OFD Sender: No OFD packet to send [02:36:46]*** Cut start [02:36:46]*** Partial cut [02:36:46]*** CUTSNS_PIN = 1 [02:36:46]*** CUTSNS_PIN = 0 [02:36:46]*** Brake cut motor [02:36:47]Read from MH i2c: 01 [02:36:47]*** Stop cut motor [02:36:47]*** Cut end [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: 01 07 00 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [02:36:47]process_action close_receipt done [02:36:47]requested_data is exist [02:36:47]produce_requested_data [02:36:47]requested_item fm.sn is exist - process it [02:36:47]wFMCommunicate request_size=4 [02:36:47]MH_SAM_APDU [02:36:47]CAPDU: 80 11 00 00 [02:36:47]Write to MH i2c: E2 08 00 80 0F 80 11 00 00 00 00 00 00 09 [02:36:47]Write i2c OK [02:36:47]MH_I2C_Read... [02:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:47]Read from MH i2c: E2 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 17 00 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 17 00 80 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 64 [02:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:36:47]wFMCommunicate OK [02:36:47]requested_item fd.num is exist - process it [02:36:47]SAM_PROTO_GetFieldsCounters [02:36:47]wFMCommunicate request_size=4 [02:36:47]MH_SAM_APDU [02:36:47]CAPDU: 80 13 00 00 [02:36:47]Write to MH i2c: E2 08 00 81 0F 80 13 00 00 00 00 00 00 0C [02:36:47]Write i2c OK [02:36:47]MH_I2C_Read... [02:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:47]Read from MH i2c: E2 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 62 00 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 62 00 81 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [02:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:36:47]wFMCommunicate OK [02:36:47]SAM_PROTO_GetFieldsCounters done [02:36:47]requested_item shift.num is exist - process it [02:36:47]requested_item shift.opened is exist - process it [02:36:47]req_shift_opened [02:36:47]FM_GetShiftState [02:36:47]SAM_PROTO_GetShiftState [02:36:47]wFMCommunicate request_size=4 [02:36:47]MH_SAM_APDU [02:36:47]CAPDU: 80 13 01 00 [02:36:47]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [02:36:47]Write i2c OK [02:36:47]MH_I2C_Read... [02:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:47]Read from MH i2c: E2 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 0E 00 [02:36:47]MH_I2C_Read... [02:36:47]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5D [02:36:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:36:47]wFMCommunicate OK [02:36:47]SAM_PROTO_GetShiftState done [02:36:47]FM_GetShiftState done [02:36:47]req_shift_opened done [02:36:47]requested_item shift.open_date is exist - process it [02:36:47]req_shift_open_date [02:36:47]req_shift_open_date done [02:36:47]produce_requested_data done [02:36:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31693,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:36:47]process_action_free close_receipt [02:36:47]json_value_free [02:36:47]json_value_free done [02:36:47]process_json_proto returns [02:36:47]Send response to host [02:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31693,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:36:47]free response buf [02:36:47]execute_script done [02:36:47]execute_script returns [02:36:47]free content buf [02:36:47]Sock 7.Close socket [02:36:47]Sock 7.Thread stoped [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:38]accept exits with 9 [02:37:38]New connection [02:37:38]New thread 3066821988 created [02:37:38]Thread 3066965348 joined [02:37:38]Waiting for new connection... [02:37:38] Sock 9.Parse request [02:37:38]Sock 9.Check first char [02:37:38]Sock 9.First char is OK [02:37:38]request: POST /json_proto HTTP/1.0 [02:37:38]Method: POST [02:37:38]URL: /json_proto [02:37:38]Method is POST - this is cgi request [02:37:38]url: /json_proto [02:37:38]query_string will be loaded in cgi processing [02:37:38]execute_cgi json_proto POST (null) [02:37:38]execute_cgi path=json_proto method=POST [02:37:38]POST find Content-Length [02:37:38]Host: 172.17.39.68:8080 [02:37:38]Content-Length: 614 [02:37:38]Content-Type: application/json [02:37:38] [02:37:38]POST finish read [02:37:38]Found Content-Length = 614 [02:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214275", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:37:38]execute_script... [02:37: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)214275", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:37:38]POST & json_proto [02:37:38]process_json_proto [02:37:38]json parsed OK: [02:37:38]protocol is kg_v1.0 [02:37:38]action value=close_receipt [02:37:38]process_action close_receipt [02:37:38]cmd_close_receipt [02:37:38]MH_GetDate [02:37:38]Write to MH i2c: F0 00 00 83 0F 81 [02:37:38]Write i2c OK [02:37:38]MH_I2C_Read... [02:37:38]Read from MH i2c: F0 [02:37:38]MH_I2C_Read... [02:37:38]Read from MH i2c: F0 09 00 [02:37:38]MH_I2C_Read... [02:37:38]Read from MH i2c: F0 09 00 83 0F 00 F4 DC 95 66 D6 48 95 66 6E [02:37:38]GetLastDocTimeStamp 1721097405 [02:37:38]current date 1721097460 [02:37:38]FM_GetShiftState [02:37:38]SAM_PROTO_GetShiftState [02:37:38]wFMCommunicate request_size=4 [02:37:38]MH_SAM_APDU [02:37:38]CAPDU: 80 13 01 00 [02:37:38]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [02:37:38]Write i2c OK [02:37:38]MH_I2C_Read... [02:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:37:38]Read from MH i2c: E2 [02:37:38]MH_I2C_Read... [02:37:38]Read from MH i2c: E2 0E 00 [02:37:38]MH_I2C_Read... [02:37:38]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5F [02:37:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:37:38]wFMCommunicate OK [02:37:38]SAM_PROTO_GetShiftState done [02:37:38]FM_GetShiftState done [02:37:38]opened in 1721088399 [02:37:38]opened+sec_in_day 1721174799 [02:37:38]quantity*price = 11100 [02:37:38]sum+1 = 11101 [02:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 13 16.07.2024 02:37 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31694 ФПД: 37889788311180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31694&fm=37889788311180&tin=02508201610067®Number=0000000000098025&sum=11100 0 [02:37:39]StoreToDocumentArchive [02:37:39]shift 371 fd 31694 [02:37:39]save to /storage/0371/doc_00031694 [02:37:39]save last doc name /storage/0371/doc_00031694 to /storage/kkm_last_doc_name [02:37:39]save OK [02:37:39]Clear old archive folders... [02:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=266 [02:37:39]tlvbuf is 0148D750 [02:37:39]SAM_PROTO_ClearQueue [02:37:39]wFMCommunicate request_size=4 [02:37:39]MH_SAM_APDU [02:37:39]CAPDU: 80 09 00 00 [02:37:39]Write to MH i2c: E2 08 00 91 0F 80 09 00 00 00 00 00 00 12 [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [02:37:39]RAPDU: 90 00 [02:37:39]wFMCommunicate OK [02:37:39]SAM_PROTO_ClearQueue done [02:37:39]KKMCreateOFDPacket [02:37:39]OFDProtocolAddRootSTLVToBuf [02:37:39]FM_MakeSignedData [02:37:39]FM_MakeSignedData [02:37:39]SAM_PROTO_SignData [02:37:39]wFMCommunicate request_size=4 [02:37:39]MH_SAM_APDU [02:37:39]CAPDU: 80 0D 01 02 [02:37:39]Write to MH i2c: E2 08 00 92 0F 80 0D 01 02 00 00 00 00 1A [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [02:37:39]RAPDU: 90 00 [02:37:39]wFMCommunicate OK [02:37:39]wFMCommunicate request_size=255 [02:37:39]MH_SAM_APDU [02:37:39]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F4 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [02:37:39]Write to MH i2c: E2 02 01 93 0F 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F4 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 7B [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [02:37:39]RAPDU: 90 00 [02:37:39]wFMCommunicate OK [02:37:39]wFMCommunicate request_size=25 [02:37:39]MH_SAM_APDU [02:37:39]CAPDU: 80 0D 02 02 14 38 39 10 04 04 00 CE 7B 00 00 35 04 06 00 22 75 E7 5F 76 8C [02:37:39]Write to MH i2c: E2 1C 00 94 0F 80 0D 02 02 14 00 38 39 10 04 04 00 CE 7B 00 00 35 04 06 00 22 75 E7 5F 76 8C 00 00 35 [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [02:37:39]RAPDU: 90 00 [02:37:39]wFMCommunicate OK [02:37:39]wFMCommunicate request_size=4 [02:37:39]MH_SAM_APDU [02:37:39]CAPDU: 80 0D 03 02 [02:37:39]Write to MH i2c: E2 08 00 95 0F 80 0D 03 02 00 00 00 00 1F [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 0B 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 0B 00 95 0F 00 81 6D 77 86 A8 CB 61 FC 90 00 DB [02:37:39]RAPDU: 81 6D 77 86 A8 CB 61 FC 90 00 [02:37:39]wFMCommunicate OK [02:37:39]SAM_PROTO_SignData done [02:37:39]FM_MakeSignedData done [02:37:39]CreateOFDProtocolMessage [02:37:39]wFMCommunicate request_size=4 [02:37:39]MH_SAM_APDU [02:37:39]CAPDU: 80 11 00 00 [02:37:39]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:37:39]Read from MH i2c: E2 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 17 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7A [02:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:37:39]wFMCommunicate OK [02:37:39]CreateOFDProtocolMessage done [02:37:39]OFDSenderStorePacket 31694 [02:37:39]StoreOFDPacket docnum=31694 [02:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 8E E6 16 01 87 89 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F4 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CE 7B 00 00 35 04 06 00 22 75 E7 5F 76 8C 81 6D 77 86 A8 CB 61 FC [02:37:39]CheckFolder [02:37:39]dirname=/storage/ofd_packets [02:37:39]CheckFolder done [02:37:39]ProducePacketName [02:37:39]name=ofd_packets/00031694 [02:37:39]NVStorageSaveData ofd_packets/00031694 [02:37:39]File name is /storage/ofd_packets/00031694 [02:37:39]Write 316 bytes [02:37:39]NVStorageSaveData done [02:37:39]OFDSenderStorePacket done [02:37:39]KKMCreateOFDPacket done [02:37:39]NVStorageSaveData kkm_last_timestamp [02:37:39]File name is /storage/kkm_last_timestamp [02:37:39]Write 4 bytes [02:37:39]NVStorageSaveData done [02:37:39]ExternCall_PrintAddStr [02:37:39]wPrintStart [02:37:39]Write to MH i2c: 01 00 00 97 0F A6 [02:37:39]Write i2c OK [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: 01 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: 01 07 00 [02:37:39]MH_I2C_Read... [02:37:39]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [02:37:39]RasterBufferAndPrint [02:37:39]line Счет N : (3)214275 [02:37:39]line ИНН: 02508201610067 [02:37:39]line Контрольно-Кассовый Чек [02:37:39]line ПРОДАЖА [02:37:39]line Товар: 4870001570071 [02:37:39]line Напиток Pepsi 1л [02:37:39]line 1.000 * 111.00 [02:37:39]line = 111.00 [02:37:39]line НДС 12% НСП 1% [02:37:39]line > о реализуемом товаре [02:37:39]line ИТОГО: 111.00 [02:37:39]line НСП 1% : 0.98 [02:37:39]line НДС 12% : 11.79 [02:37:39]line Наличными: 111.00 [02:37:39]line Безнал.: 0.00 [02:37:39]line Место: АЗС № 140 "Партнер Нефть" [02:37:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:37:39]line СНО: Общий режим [02:37:39]line Чек 13 16.07.2024 02:37 [02:37:39]line Смена: 371 ФФД: 1.0 [02:37:39]line ЗНМ: 0300000189 [02:37:39]line РНМ: 0000000000098025 [02:37:39]line Версия ККМ: 001 [02:37:39]line ФМ: 0000000000965389 [02:37:39]line ФД: 31694 [02:37:39]line ФПД: 37889788311180 [02:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31694&fm=37889788311180&tin=02508201610067®Number=0000000000098025&sum=11100 [02:37:40]line 0 [02:37:40]OFD Sender: Processing packet 31694 [packets to send 6, broken 5] [02:37:40]ProducePacketName [02:37:40]name=ofd_packets/00031694 [02:37:40]OFD Sender: To server: pG, [02:37:40]CommunicateWithHost lk.salyk.kg:30040 [02:37:40]ConnectInit lk.salyk.kg [02:37:40]written 0, free lines is 4095 [02:37:40]Connected sock=10 [02:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 8E E6 16 01 87 89 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F4 DC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CE 7B 00 00 35 04 06 00 22 75 E7 5F 76 8C 81 6D 77 86 A8 CB 61 FC [02:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 06 A8 47 00 B8 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CE 7B 00 00 F4 03 04 00 03 89 95 66 B6 04 01 00 00 01 07 D6 CF B0 E8 77 75 [02:37:40]CommunicateWithHost err = 0 [02:37:40]CheckOFDResponse [02:37:40]1017 (14) - 77093643461234 [02:37:40]1041 (16) - 0000000000965389 [02:37:40]1040 (4) - 31694 [02:37:40]1012 (4) - 15.07.2024 20:39 [02:37:40]1206 (1) - 0 [02:37:40]OFD Sender: Remove packet 31694 [02:37:40]ProducePacketName [02:37:40]name=ofd_packets/00031694 [02:37:40]NVStorageDeleteData [02:37:40]Write to MH i2c: 01 00 00 BF 0F CE [02:37:40]Write i2c OK [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: 01 [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: 01 07 00 [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FD 0C DE [02:37:40]RasterBufferAndPrint [02:37:40]line [02:37:40]line [02:37:40]line [02:37:40]line [02:37:40]line [02:37:40]written 0, free lines is 3331 [02:37:40]MH_Cut [02:37:40]Write to MH i2c: D1 01 00 C6 0F 01 A7 [02:37:40]Write i2c OK [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: D1 [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: D1 01 00 [02:37:40]MH_I2C_Read... [02:37:40]Read from MH i2c: D1 01 00 C6 0F 00 A6 [02:37:40]Write to MH i2c: 01 00 00 C7 0F D6 [02:37:40]Write i2c OK [02:37:40]MH_I2C_Read... [02:37:41]OFD Sender: No OFD packet to send [02:37:41]*** Cut start [02:37:41]*** Partial cut [02:37:41]*** CUTSNS_PIN = 1 [02:37:41]*** CUTSNS_PIN = 0 [02:37:41]*** Brake cut motor [02:37:42]Read from MH i2c: 01 [02:37:42]MH_I2C_Read... [02:37:42]*** Stop cut motor [02:37:42]*** Cut end [02:37:42]Read from MH i2c: 01 07 00 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [02:37:42]process_action close_receipt done [02:37:42]requested_data is exist [02:37:42]produce_requested_data [02:37:42]requested_item fm.sn is exist - process it [02:37:42]wFMCommunicate request_size=4 [02:37:42]MH_SAM_APDU [02:37:42]CAPDU: 80 11 00 00 [02:37:42]Write to MH i2c: E2 08 00 C8 0F 80 11 00 00 00 00 00 00 51 [02:37:42]Write i2c OK [02:37:42]MH_I2C_Read... [02:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:37:42]Read from MH i2c: E2 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 17 00 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 17 00 C8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AC [02:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:37:42]wFMCommunicate OK [02:37:42]requested_item fd.num is exist - process it [02:37:42]SAM_PROTO_GetFieldsCounters [02:37:42]wFMCommunicate request_size=4 [02:37:42]MH_SAM_APDU [02:37:42]CAPDU: 80 13 00 00 [02:37:42]Write to MH i2c: E2 08 00 C9 0F 80 13 00 00 00 00 00 00 54 [02:37:42]Write i2c OK [02:37:42]MH_I2C_Read... [02:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:37:42]Read from MH i2c: E2 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 62 00 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 62 00 C9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [02:37:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:37:42]wFMCommunicate OK [02:37:42]SAM_PROTO_GetFieldsCounters done [02:37:42]requested_item shift.num is exist - process it [02:37:42]requested_item shift.opened is exist - process it [02:37:42]req_shift_opened [02:37:42]FM_GetShiftState [02:37:42]SAM_PROTO_GetShiftState [02:37:42]wFMCommunicate request_size=4 [02:37:42]MH_SAM_APDU [02:37:42]CAPDU: 80 13 01 00 [02:37:42]Write to MH i2c: E2 08 00 CA 0F 80 13 01 00 00 00 00 00 56 [02:37:42]Write i2c OK [02:37:42]MH_I2C_Read... [02:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:37:42]Read from MH i2c: E2 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 0E 00 [02:37:42]MH_I2C_Read... [02:37:42]Read from MH i2c: E2 0E 00 CA 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A5 [02:37:42]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:37:42]wFMCommunicate OK [02:37:42]SAM_PROTO_GetShiftState done [02:37:42]FM_GetShiftState done [02:37:42]req_shift_opened done [02:37:42]requested_item shift.open_date is exist - process it [02:37:42]req_shift_open_date [02:37:42]req_shift_open_date done [02:37:42]produce_requested_data done [02:37:42]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31694,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:37:42]process_action_free close_receipt [02:37:42]json_value_free [02:37:42]json_value_free done [02:37:42]process_json_proto returns [02:37:42]Send response to host [02:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31694,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:37:42]free response buf [02:37:42]execute_script done [02:37:42]execute_script returns [02:37:42]free content buf [02:37:42]Sock 9.Close socket [02:37:42]Sock 9.Thread stoped [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:20]accept exits with 7 [02:38:20]New connection [02:38:20]New thread 3066965348 created [02:38:20]Thread 3066821988 joined [02:38:20]Waiting for new connection... [02:38:20] Sock 7.Parse request [02:38:20]Sock 7.Check first char [02:38:20]Sock 7.First char is OK [02:38:20]request: POST /json_proto HTTP/1.0 [02:38:20]Method: POST [02:38:20]URL: /json_proto [02:38:20]Method is POST - this is cgi request [02:38:20]url: /json_proto [02:38:20]query_string will be loaded in cgi processing [02:38:20]execute_cgi json_proto POST (null) [02:38:20]execute_cgi path=json_proto method=POST [02:38:20]POST find Content-Length [02:38:20]Host: 172.17.39.68:8080 [02:38:20]Content-Length: 647 [02:38:20]Content-Type: application/json [02:38:20] [02:38:20]POST finish read [02:38:20]Found Content-Length = 647 [02:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214276", "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" : 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" ] } } [02:38:20]execute_script... [02: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)214276", "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" : 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" ] } } [02:38:20]POST & json_proto [02:38:20]process_json_proto [02:38:20]json parsed OK: [02:38:20]protocol is kg_v1.0 [02:38:20]action value=close_receipt [02:38:20]process_action close_receipt [02:38:20]cmd_close_receipt [02:38:20]MH_GetDate [02:38:20]Write to MH i2c: F0 00 00 CB 0F C9 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: F0 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: F0 09 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: F0 09 00 CB 0F 00 1E DD 95 66 D6 48 95 66 E1 [02:38:20]GetLastDocTimeStamp 1721097460 [02:38:20]current date 1721097502 [02:38:20]FM_GetShiftState [02:38:20]SAM_PROTO_GetShiftState [02:38:20]wFMCommunicate request_size=4 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 13 01 00 [02:38:20]Write to MH i2c: E2 08 00 CC 0F 80 13 01 00 00 00 00 00 58 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 0E 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 0E 00 CC 0F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A7 [02:38:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:38:20]wFMCommunicate OK [02:38:20]SAM_PROTO_GetShiftState done [02:38:20]FM_GetShiftState done [02:38:20]opened in 1721088399 [02:38:20]opened+sec_in_day 1721174799 [02:38:20]quantity*price = 4000 [02:38:20]sum+1 = 4001 [02:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 14 16.07.2024 02:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31695 ФПД: 58187524193389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023822&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31695&fm=58187524193389&tin=02508201610067®Number=0000000000098025&sum=4000 0 [02:38:21]StoreToDocumentArchive [02:38:21]shift 371 fd 31695 [02:38:21]save to /storage/0371/doc_00031695 [02:38:21]save last doc name /storage/0371/doc_00031695 to /storage/kkm_last_doc_name [02:38:21]save OK [02:38:21]Clear old archive folders... [02:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=278 [02:38:21]tlvbuf is 01490620 [02:38:21]SAM_PROTO_ClearQueue [02:38:21]wFMCommunicate request_size=4 [02:38:21]MH_SAM_APDU [02:38:21]CAPDU: 80 09 00 00 [02:38:21]Write to MH i2c: E2 08 00 D9 0F 80 09 00 00 00 00 00 00 5A [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 [02:38:21]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:21]Read from MH i2c: E2 03 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [02:38:21]RAPDU: 90 00 [02:38:21]wFMCommunicate OK [02:38:21]SAM_PROTO_ClearQueue done [02:38:21]KKMCreateOFDPacket [02:38:21]OFDProtocolAddRootSTLVToBuf [02:38:21]FM_MakeSignedData [02:38:21]FM_MakeSignedData [02:38:21]SAM_PROTO_SignData [02:38:21]wFMCommunicate request_size=4 [02:38:21]MH_SAM_APDU [02:38:21]CAPDU: 80 0D 01 02 [02:38:21]Write to MH i2c: E2 08 00 DA 0F 80 0D 01 02 00 00 00 00 62 [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 [02:38:21]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:21]Read from MH i2c: E2 03 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [02:38:21]RAPDU: 90 00 [02:38:21]wFMCommunicate OK [02:38:21]wFMCommunicate request_size=255 [02:38:21]MH_SAM_APDU [02:38:21]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 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 0E 00 00 00 F4 03 04 00 1E DD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [02:38:21]Write to MH i2c: E2 02 01 DB 0F 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 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 0E 00 00 00 F4 03 04 00 1E DD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 D5 [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:21]Read from MH i2c: E2 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [02:38:21]RAPDU: 90 00 [02:38:21]wFMCommunicate OK [02:38:21]wFMCommunicate request_size=37 [02:38:21]MH_SAM_APDU [02:38:21]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CF 7B 00 00 35 04 06 00 34 EB D6 B5 BC 6D [02:38:21]Write to MH i2c: E2 28 00 DC 0F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CF 7B 00 00 35 04 06 00 34 EB D6 B5 BC 6D 00 00 E1 [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:21]Read from MH i2c: E2 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [02:38:21]RAPDU: 90 00 [02:38:21]wFMCommunicate OK [02:38:21]wFMCommunicate request_size=4 [02:38:21]MH_SAM_APDU [02:38:21]CAPDU: 80 0D 03 02 [02:38:21]Write to MH i2c: E2 08 00 DD 0F 80 0D 03 02 00 00 00 00 67 [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:22]Read from MH i2c: E2 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: E2 0B 00 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: E2 0B 00 DD 0F 00 3B 85 72 AB C2 76 51 5B 90 00 29 [02:38:22]RAPDU: 3B 85 72 AB C2 76 51 5B 90 00 [02:38:22]wFMCommunicate OK [02:38:22]SAM_PROTO_SignData done [02:38:22]FM_MakeSignedData done [02:38:22]CreateOFDProtocolMessage [02:38:22]wFMCommunicate request_size=4 [02:38:22]MH_SAM_APDU [02:38:22]CAPDU: 80 11 00 00 [02:38:22]Write to MH i2c: E2 08 00 DE 0F 80 11 00 00 00 00 00 00 67 [02:38:22]Write i2c OK [02:38:22]MH_I2C_Read... [02:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:22]Read from MH i2c: E2 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: E2 17 00 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: E2 17 00 DE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C2 [02:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:38:22]wFMCommunicate OK [02:38:22]CreateOFDProtocolMessage done [02:38:22]OFDSenderStorePacket 31695 [02:38:22]StoreOFDPacket docnum=31695 [02:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 BC 43 22 01 32 DD 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 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 0E 00 00 00 F4 03 04 00 1E DD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CF 7B 00 00 35 04 06 00 34 EB D6 B5 BC 6D 3B 85 72 AB C2 76 51 5B [02:38:22]CheckFolder [02:38:22]dirname=/storage/ofd_packets [02:38:22]CheckFolder done [02:38:22]ProducePacketName [02:38:22]name=ofd_packets/00031695 [02:38:22]NVStorageSaveData ofd_packets/00031695 [02:38:22]File name is /storage/ofd_packets/00031695 [02:38:22]Write 328 bytes [02:38:22]NVStorageSaveData done [02:38:22]OFDSenderStorePacket done [02:38:22]KKMCreateOFDPacket done [02:38:22]NVStorageSaveData kkm_last_timestamp [02:38:22]File name is /storage/kkm_last_timestamp [02:38:22]Write 4 bytes [02:38:22]NVStorageSaveData done [02:38:22]ExternCall_PrintAddStr [02:38:22]wPrintStart [02:38:22]Write to MH i2c: 01 00 00 DF 0F EE [02:38:22]Write i2c OK [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 07 00 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [02:38:22]RasterBufferAndPrint [02:38:22]line Счет N : (3)214276 [02:38:22]line ИНН: 02508201610067 [02:38:22]line Контрольно-Кассовый Чек [02:38:22]line ПРОДАЖА [02:38:22]line Товар: 4700000310036 [02:38:22]line Вода Жалалабат 27 0,5л [02:38:22]line 1.000 * 40.00 [02:38:22]line = 40.00 [02:38:22]line НДС 12% НСП 1% [02:38:22]line > о реализуемом товаре [02:38:22]line ИТОГО: 40.00 [02:38:22]line НСП 1% : 0.35 [02:38:22]line НДС 12% : 4.25 [02:38:22]line Наличными: 40.00 [02:38:22]line Безнал.: 0.00 [02:38:22]line Место: АЗС № 140 "Партнер Нефть" [02:38:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:38:22]line СНО: Общий режим [02:38:22]line Чек 14 16.07.2024 02:38 [02:38:22]line Смена: 371 ФФД: 1.0 [02:38:22]line ЗНМ: 0300000189 [02:38:22]line РНМ: 0000000000098025 [02:38:22]line Версия ККМ: 001 [02:38:22]line ФМ: 0000000000965389 [02:38:22]line ФД: 31695 [02:38:22]line ФПД: 58187524193389 [02:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023822&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31695&fm=58187524193389&tin=02508201610067®Number=0000000000098025&sum=4000 [02:38:22]line 0 [02:38:22]OFD Sender: Processing packet 31695 [packets to send 6, broken 5] [02:38:22]ProducePacketName [02:38:22]name=ofd_packets/00031695 [02:38:22]OFD Sender: To server: pG, [02:38:22]CommunicateWithHost lk.salyk.kg:30040 [02:38:22]ConnectInit lk.salyk.kg [02:38:22]written 0, free lines is 4095 [02:38:22]Connected sock=10 [02:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 BC 43 22 01 32 DD 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 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 0E 00 00 00 F4 03 04 00 1E DD 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CF 7B 00 00 35 04 06 00 34 EB D6 B5 BC 6D 3B 85 72 AB C2 76 51 5B [02:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A3 CB 47 00 BE 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 CF 7B 00 00 F4 03 04 00 2D 89 95 66 B6 04 01 00 00 BB F7 36 4A 40 87 2B B6 [02:38:22]CommunicateWithHost err = 0 [02:38:22]CheckOFDResponse [02:38:22]1017 (14) - 77093643461234 [02:38:22]1041 (16) - 0000000000965389 [02:38:22]1040 (4) - 31695 [02:38:22]1012 (4) - 15.07.2024 20:40 [02:38:22]1206 (1) - 0 [02:38:22]OFD Sender: Remove packet 31695 [02:38:22]ProducePacketName [02:38:22]name=ofd_packets/00031695 [02:38:22]NVStorageDeleteData [02:38:22]Write to MH i2c: 01 00 00 07 10 17 [02:38:22]Write i2c OK [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 07 00 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: 01 07 00 07 10 00 00 00 00 00 FE 0C 28 [02:38:22]RasterBufferAndPrint [02:38:22]line [02:38:22]line [02:38:22]line [02:38:22]line [02:38:22]line [02:38:22]written 0, free lines is 3332 [02:38:22]MH_Cut [02:38:22]Write to MH i2c: D1 01 00 0E 10 01 F0 [02:38:22]Write i2c OK [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: D1 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: D1 01 00 [02:38:22]MH_I2C_Read... [02:38:22]Read from MH i2c: D1 01 00 0E 10 00 EF [02:38:22]Write to MH i2c: 01 00 00 0F 10 1F [02:38:22]Write i2c OK [02:38:22]MH_I2C_Read... [02:38:23]OFD Sender: No OFD packet to send [02:38:23]*** Cut start [02:38:23]*** Partial cut [02:38:23]*** CUTSNS_PIN = 1 [02:38:23]*** CUTSNS_PIN = 0 [02:38:23]*** Brake cut motor [02:38:24]Read from MH i2c: 01 [02:38:24]MH_I2C_Read... [02:38:24]*** Stop cut motor [02:38:24]*** Cut end [02:38:24]Read from MH i2c: 01 07 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 FF 0F 34 [02:38:24]process_action close_receipt done [02:38:24]requested_data is exist [02:38:24]produce_requested_data [02:38:24]requested_item fm.sn is exist - process it [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 11 00 00 [02:38:24]Write to MH i2c: E2 08 00 10 10 80 11 00 00 00 00 00 00 9A [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 17 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 17 00 10 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F5 [02:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:38:24]wFMCommunicate OK [02:38:24]requested_item fd.num is exist - process it [02:38:24]SAM_PROTO_GetFieldsCounters [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 13 00 00 [02:38:24]Write to MH i2c: E2 08 00 11 10 80 13 00 00 00 00 00 00 9D [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 62 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 62 00 11 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [02:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 CF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:24]wFMCommunicate OK [02:38:24]SAM_PROTO_GetFieldsCounters done [02:38:24]requested_item shift.num is exist - process it [02:38:24]requested_item shift.opened is exist - process it [02:38:24]req_shift_opened [02:38:24]FM_GetShiftState [02:38:24]SAM_PROTO_GetShiftState [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 13 01 00 [02:38:24]Write to MH i2c: E2 08 00 12 10 80 13 01 00 00 00 00 00 9F [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 0E 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 0E 00 12 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EE [02:38:24]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:38:24]wFMCommunicate OK [02:38:24]SAM_PROTO_GetShiftState done [02:38:24]FM_GetShiftState done [02:38:24]req_shift_opened done [02:38:24]requested_item shift.open_date is exist - process it [02:38:24]req_shift_open_date [02:38:24]req_shift_open_date done [02:38:24]produce_requested_data done [02:38:24]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31695,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:38:24]process_action_free close_receipt [02:38:24]json_value_free [02:38:24]json_value_free done [02:38:24]process_json_proto returns [02:38:24]Send response to host [02:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31695,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:38:24]free response buf [02:38:24]execute_script done [02:38:24]execute_script returns [02:38:24]free content buf [02:38:24]Sock 7.Close socket [02:38:24]Sock 7.Thread stoped [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [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:49]accept exits with 9 [02:52:49]New connection [02:52:49]New thread 3066821988 created [02:52:49]Thread 3066965348 joined [02:52:49]Waiting for new connection... [02:52:49] Sock 9.Parse request [02:52:49]Sock 9.Check first char [02:52:49]Sock 9.First char is OK [02:52:49]request: POST /json_proto HTTP/1.0 [02:52:49]Method: POST [02:52:49]URL: /json_proto [02:52:49]Method is POST - this is cgi request [02:52:49]url: /json_proto [02:52:49]query_string will be loaded in cgi processing [02:52:49]execute_cgi json_proto POST (null) [02:52:49]execute_cgi path=json_proto method=POST [02:52:49]POST find Content-Length [02:52:49]Host: 172.17.39.68:8080 [02:52:49]Content-Length: 907 [02:52:49]Content-Type: application/json [02:52:49] [02:52:49]POST finish read [02:52:49]Found Content-Length = 907 [02:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214277", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:49]execute_script... [02:52: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)214277", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:49]POST & json_proto [02:52:49]process_json_proto [02:52:49]json parsed OK: [02:52:49]protocol is kg_v1.0 [02:52:49]action value=close_receipt [02:52:49]process_action close_receipt [02:52:49]cmd_close_receipt [02:52:49]MH_GetDate [02:52:49]Write to MH i2c: F0 00 00 13 10 12 [02:52:49]Write i2c OK [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: F0 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: F0 09 00 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: F0 09 00 13 10 00 83 E0 95 66 D6 48 95 66 92 [02:52:49]GetLastDocTimeStamp 1721097502 [02:52:49]current date 1721098371 [02:52:49]FM_GetShiftState [02:52:49]SAM_PROTO_GetShiftState [02:52:49]wFMCommunicate request_size=4 [02:52:49]MH_SAM_APDU [02:52:49]CAPDU: 80 13 01 00 [02:52:49]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [02:52:49]Write i2c OK [02:52:49]MH_I2C_Read... [02:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:49]Read from MH i2c: E2 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: E2 0E 00 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F0 [02:52:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:52:49]wFMCommunicate OK [02:52:49]SAM_PROTO_GetShiftState done [02:52:49]FM_GetShiftState done [02:52:49]opened in 1721088399 [02:52:49]opened+sec_in_day 1721174799 [02:52:49]quantity*price = 15000 [02:52:49]sum+1 = 15001 [02:52:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082504 Водка Белое золото 0,24л 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 15 16.07.2024 02:52 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31696 ФПД: 91412749685926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T025251&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31696&fm=91412749685926&tin=02508201610067®Number=0000000000098025&sum=35000 0 [02:52:50]StoreToDocumentArchive [02:52:50]shift 371 fd 31696 [02:52:50]save to /storage/0371/doc_00031696 [02:52:50]save last doc name /storage/0371/doc_00031696 to /storage/kkm_last_doc_name [02:52:50]save OK [02:52:50]Clear old archive folders... [02:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=381 [02:52:50]tlvbuf is 01485770 [02:52:50]SAM_PROTO_ClearQueue [02:52:50]wFMCommunicate request_size=4 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 09 00 00 [02:52:50]Write to MH i2c: E2 08 00 21 10 80 09 00 00 00 00 00 00 A3 [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 21 10 00 90 00 A5 [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]SAM_PROTO_ClearQueue done [02:52:50]KKMCreateOFDPacket [02:52:50]OFDProtocolAddRootSTLVToBuf [02:52:50]FM_MakeSignedData [02:52:50]FM_MakeSignedData [02:52:50]SAM_PROTO_SignData [02:52:50]wFMCommunicate request_size=4 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 0D 01 02 [02:52:50]Write to MH i2c: E2 08 00 22 10 80 0D 01 02 00 00 00 00 AB [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 22 10 00 90 00 A6 [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]wFMCommunicate request_size=255 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 [02:52:50]Write to MH i2c: E2 02 01 23 10 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 3E [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]wFMCommunicate request_size=140 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 83 E0 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D0 7B 00 00 35 04 06 00 53 23 B0 79 14 A6 [02:52:51]Write to MH i2c: E2 8F 00 24 10 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 83 E0 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D0 7B 00 00 35 04 06 00 53 23 B0 79 14 A6 00 00 48 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:51]Read from MH i2c: E2 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 03 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [02:52:51]RAPDU: 90 00 [02:52:51]wFMCommunicate OK [02:52:51]wFMCommunicate request_size=4 [02:52:51]MH_SAM_APDU [02:52:51]CAPDU: 80 0D 03 02 [02:52:51]Write to MH i2c: E2 08 00 25 10 80 0D 03 02 00 00 00 00 B0 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:51]Read from MH i2c: E2 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 0B 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 0B 00 25 10 00 BC D8 AE AF 7D D3 B8 8A 90 00 34 [02:52:51]RAPDU: BC D8 AE AF 7D D3 B8 8A 90 00 [02:52:51]wFMCommunicate OK [02:52:51]SAM_PROTO_SignData done [02:52:51]FM_MakeSignedData done [02:52:51]CreateOFDProtocolMessage [02:52:51]wFMCommunicate request_size=4 [02:52:51]MH_SAM_APDU [02:52:51]CAPDU: 80 11 00 00 [02:52:51]Write to MH i2c: E2 08 00 26 10 80 11 00 00 00 00 00 00 B0 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:51]Read from MH i2c: E2 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 17 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 17 00 26 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0B [02:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:52:51]wFMCommunicate OK [02:52:51]CreateOFDProtocolMessage done [02:52:51]OFDSenderStorePacket 31696 [02:52:51]StoreOFDPacket docnum=31696 [02:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 1D 9A 89 01 91 9B 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 83 E0 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D0 7B 00 00 35 04 06 00 53 23 B0 79 14 A6 BC D8 AE AF 7D D3 B8 8A [02:52:51]CheckFolder [02:52:51]dirname=/storage/ofd_packets [02:52:51]CheckFolder done [02:52:51]ProducePacketName [02:52:51]name=ofd_packets/00031696 [02:52:51]NVStorageSaveData ofd_packets/00031696 [02:52:51]File name is /storage/ofd_packets/00031696 [02:52:51]Write 431 bytes [02:52:51]NVStorageSaveData done [02:52:51]OFDSenderStorePacket done [02:52:51]KKMCreateOFDPacket done [02:52:51]NVStorageSaveData kkm_last_timestamp [02:52:51]File name is /storage/kkm_last_timestamp [02:52:51]Write 4 bytes [02:52:51]NVStorageSaveData done [02:52:51]ExternCall_PrintAddStr [02:52:51]wPrintStart [02:52:51]Write to MH i2c: 01 00 00 27 10 37 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 07 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 07 00 27 10 00 00 00 00 00 FF 0F 4C [02:52:51]RasterBufferAndPrint [02:52:51]line Счет N : (3)214277 [02:52:51]line ИНН: 02508201610067 [02:52:51]line Контрольно-Кассовый Чек [02:52:51]line ПРОДАЖА [02:52:51]line Товар: 4600721021627 [02:52:51]line Пиво БАД 0,5л ст [02:52:51]line 1.000 * 150.00 [02:52:51]line = 150.00 [02:52:51]line НДС 12% НСП 1% [02:52:51]line > о реализуемом товаре [02:52:51]line Товар: 4700002082504 [02:52:51]line Водка Белое золото 0,24л [02:52:51]line 1.000 * 200.00 [02:52:51]line = 200.00 [02:52:51]line НДС 12% НСП 1% [02:52:51]line > о реализуемом товаре [02:52:51]line ИТОГО: 350.00 [02:52:51]line НСП 1% : 3.10 [02:52:51]line НДС 12% : 37.17 [02:52:51]line Наличными: 350.00 [02:52:51]line Безнал.: 0.00 [02:52:51]line Место: АЗС № 140 "Партнер Нефть" [02:52:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:52:51]line СНО: Общий режим [02:52:51]line Чек 15 16.07.2024 02:52 [02:52:51]line Смена: 371 ФФД: 1.0 [02:52:51]line ЗНМ: 0300000189 [02:52:51]line РНМ: 0000000000098025 [02:52:51]line Версия ККМ: 001 [02:52:51]line ФМ: 0000000000965389 [02:52:51]line ФД: 31696 [02:52:51]line ФПД: 91412749685926 [02:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T025251&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31696&fm=91412749685926&tin=02508201610067®Number=0000000000098025&sum=35000 [02:52:51]line 0 [02:52:51]OFD Sender: Processing packet 31696 [packets to send 6, broken 5] [02:52:51]ProducePacketName [02:52:51]name=ofd_packets/00031696 [02:52:51]OFD Sender: To server: pG, [02:52:51]CommunicateWithHost lk.salyk.kg:30040 [02:52:51]ConnectInit lk.salyk.kg [02:52:51]written 0, free lines is 4095 [02:52:51]Connected sock=7 [02:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 1D 9A 89 01 91 9B 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 83 E0 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D0 7B 00 00 35 04 06 00 53 23 B0 79 14 A6 BC D8 AE AF 7D D3 B8 8A [02:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A4 22 47 00 6A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D0 7B 00 00 F4 03 04 00 92 8C 95 66 B6 04 01 00 00 44 E1 2A 21 A3 0A 9A 72 [02:52:51]CommunicateWithHost err = 0 [02:52:51]CheckOFDResponse [02:52:51]1017 (14) - 77093643461234 [02:52:51]1041 (16) - 0000000000965389 [02:52:51]1040 (4) - 31696 [02:52:51]1012 (4) - 15.07.2024 20:54 [02:52:51]1206 (1) - 0 [02:52:51]OFD Sender: Remove packet 31696 [02:52:51]ProducePacketName [02:52:51]name=ofd_packets/00031696 [02:52:51]NVStorageDeleteData [02:52:52]Write to MH i2c: 01 00 00 55 10 65 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: 01 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: 01 07 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: 01 07 00 55 10 00 00 00 00 00 AF 0C 27 [02:52:52]RasterBufferAndPrint [02:52:52]line [02:52:52]line [02:52:52]line [02:52:52]line [02:52:52]line [02:52:52]written 0, free lines is 3254 [02:52:52]MH_Cut [02:52:52]Write to MH i2c: D1 01 00 5C 10 01 3E [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: D1 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: D1 01 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: D1 01 00 5C 10 00 3D [02:52:52]Write to MH i2c: 01 00 00 5D 10 6D [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]OFD Sender: No OFD packet to send [02:52:52]*** Cut start [02:52:52]*** Partial cut [02:52:52]*** CUTSNS_PIN = 1 [02:52:52]*** CUTSNS_PIN = 0 [02:52:53]*** Brake cut motor [02:52:53]Read from MH i2c: 01 [02:52:53]MH_I2C_Read... [02:52:53]*** Stop cut motor [02:52:53]*** Cut end [02:52:53]Read from MH i2c: 01 07 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 FF 0F 82 [02:52:53]process_action close_receipt done [02:52:53]requested_data is exist [02:52:53]produce_requested_data [02:52:53]requested_item fm.sn is exist - process it [02:52:53]wFMCommunicate request_size=4 [02:52:53]MH_SAM_APDU [02:52:53]CAPDU: 80 11 00 00 [02:52:53]Write to MH i2c: E2 08 00 5E 10 80 11 00 00 00 00 00 00 E8 [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:53]Read from MH i2c: E2 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 17 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 17 00 5E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 43 [02:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:52:53]wFMCommunicate OK [02:52:53]requested_item fd.num is exist - process it [02:52:53]SAM_PROTO_GetFieldsCounters [02:52:53]wFMCommunicate request_size=4 [02:52:53]MH_SAM_APDU [02:52:53]CAPDU: 80 13 00 00 [02:52:53]Write to MH i2c: E2 08 00 5F 10 80 13 00 00 00 00 00 00 EB [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:53]Read from MH i2c: E2 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 62 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 62 00 5F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [02:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:52:53]wFMCommunicate OK [02:52:53]SAM_PROTO_GetFieldsCounters done [02:52:53]requested_item shift.num is exist - process it [02:52:53]requested_item shift.opened is exist - process it [02:52:53]req_shift_opened [02:52:53]FM_GetShiftState [02:52:53]SAM_PROTO_GetShiftState [02:52:53]wFMCommunicate request_size=4 [02:52:53]MH_SAM_APDU [02:52:53]CAPDU: 80 13 01 00 [02:52:53]Write to MH i2c: E2 08 00 60 10 80 13 01 00 00 00 00 00 ED [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:53]Read from MH i2c: E2 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 0E 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 0E 00 60 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3C [02:52:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [02:52:53]wFMCommunicate OK [02:52:53]SAM_PROTO_GetShiftState done [02:52:53]FM_GetShiftState done [02:52:53]req_shift_opened done [02:52:53]requested_item shift.open_date is exist - process it [02:52:53]req_shift_open_date [02:52:53]req_shift_open_date done [02:52:53]produce_requested_data done [02:52:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31696,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [02:52:53]process_action_free close_receipt [02:52:53]json_value_free [02:52:53]json_value_free done [02:52:53]process_json_proto returns [02:52:53]Send response to host [02:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31696,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [02:52:53]free response buf [02:52:53]execute_script done [02:52:53]execute_script returns [02:52:53]free content buf [02:52:53]Sock 9.Close socket [02:52:53]Sock 9.Thread stoped [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send